public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems with collect2, linking libgcc twice causing duplicate symbols
@ 2005-09-21  7:53 dj.athens
  0 siblings, 0 replies; only message in thread
From: dj.athens @ 2005-09-21  7:53 UTC (permalink / raw)
  To: gcc-help

Hi all,

I'm trying to compile OpenSSH 0.9.8 with gcc 3.4.3 (64-bit) on a HP-UX.11i
and collect2 utility is doing something odd (as fas as I can tell). It is
linking libgcc twice (I guess because of the millicode routines unusual
calling convention) which is causing my compilation to fail miserably with
the following:

Loading
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/libgcc.a[_muldi3.o]:
ld: Duplicate symbol "__muldi3" in files
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/libgcc.a[_muldi3.o]
and
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/libgcc.a[_muldi3.o]

.
. <continues with tens of dozens similar erros>
.

The collect2 utility is invoked as follows:

Reading specs from
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/specs
Configured with: /usr1/cpt2k4p/gcc-3.4.3/configure
--prefix=/vobs/prod/tools/gnu/gcc/HP-UX.11 --enable-threads=posix
--disable-shared --disable-nls --enable-languages=c --enable-libstdcxx-v3
--with-as=/vobs/prod/opensource/binutils/HP-UX.11/bin/as
--with-ar=/vobs/prod/opensource/binutils/HP-UX.11/bin/ar
--with-ranlib=/vobs/prod/opensource/binutils/HP-UX.11/bin/ranlib
Thread model: posix
gcc version 3.4.3
 /vobs/prod/tools/gnu/gcc/HP-UX.11/libexec/gcc/hppa64-hp-hpux11.11/3.4.3/collect2
+Accept TypeMismatch -z -E -b -o libcrypto.sl.0.9.8
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/crtbeginS.o
-L. -L/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3
-L/usr/ccs/bin -L/usr/ccs/lib/pa20_64 -L/opt/langtools/lib/pa20_64
-L/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/../../..
-t -B symbolic +vnocompatwarnings -z +s +h libcrypto.sl.0.9.8 +forceload
libcrypto.a -ldl -lgcc /usr/lib/pa20_64/milli.a -lgcc
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/crtendS.o
Loading
/vobs/prod/tools/gnu/gcc/HP-UX.11/lib/gcc/hppa64-hp-hpux11.11/3.4.3/crtbeginS.o:

How could I avoid these duplicate symbols? I can post the whole
compilation output if needed.

br,

Jussi Mononen


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-21  7:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-21  7:53 Problems with collect2, linking libgcc twice causing duplicate symbols dj.athens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).