Hi all,

first of all, sorry for possible double post, I just didn't get any
answers from gcc-help-mailing list.

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 far 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



Reply via email to