[lokisetup] More compile problems

Stéphane Peter megastep at megastep.org
Wed Aug 28 01:51:23 EDT 2002

I don't see were you found out that libintl is part of binutils, but it
is actually part of the GNU gettext package (this is the i18n library).

I have seen this error many times with some versions of gcc (mostly on
Mandrake 8.x systems actually). However it doesn't happen on older
Redhat. Thus it has to do with the mix of flags passed on the linking
line of setup, as we try to selectively statically link most libraries.
The solution is to fix the configure scripts to have a combination of
flags that work with all linkers, but I'm too lazy for that ;-)

Le mar 27/08/2002 à 22:31, Loren Osborn a écrit :
> Ugh... more compile problems... and I'm tempted to blame gcc 3.1.1.  I
> pasted the error below:
> /usr/local/bin/gcc -o setup log.o install_log.o detect.o plugins.o
> network.o install.o copy.o file.o loki_launchurl.o main.o console_ui.o
> dialog_ui.o plugins/libplugins.a dialog/libdialog.a
> /home/loren/src/loki_setup/../loki_setupdb/x86/libsetupdb.a
> plugins/libplugins.a dialog/libdialog.a
> /home/loren/src/loki_setup/../loki_setupdb/x86/libsetupdb.a
> -L/usr/local/lib -L/usr/X11R6/lib /usr/local/lib/libxml.a  -lintl -lz
> -lm  -lncurses -static
> /usr/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
> /usr/src/RPM/BUILD/glibc-2.2.4/intl/dcigettext.c:662: multiple
> definition of `_nl_find_msg'
> /usr/lib/libintl.a(dcigettext.o)(.text+0x540): first defined here
> /usr//bin/ld: Warning: size of symbol `_nl_find_msg' changed from 1289
> to 1345 in dcigettext.o
> collect2: ld returned 1 exit status
> make: *** [setup] Error 1
> As the thought of recompiling libc turned my stomach (I did that myself
> back when libc6 first came out), I instead did some research, and found
> that libintl.a is part of binutils:  So I went to recompile binutils...
> gcc 3.1.1's linker decided to prohibit me from building binutils, since
> "'mktemp' is dangerous":
> /usr/local/bin/gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g
> -O2 -o size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a
> ../libiberty/libiberty.a
> /usr//bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
> /usr//bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
> /usr//bin/ld: Dwarf Error: Could not find abbrev number 117.
> bucomm.o: In function `make_tempname':
> bucomm.o(.text+0x422): the use of `mktemp' is dangerous, better use
> `mkstemp'
> collect2: ld returned 1 exit status
> make[3]: *** [size] Error 1
> I don't exactly feel comfortable changing binutils just to install
> loki-setup... Any ideas?
> Thanks in advance,
> -Loren
Stephane Peter
Sr. Software Engineer
Codehost, Inc.

More information about the Lokisetup mailing list