This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with collect2, linking libgcc twice causing duplicate symbols

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:

ld: Duplicate symbol "__muldi3" in files

. <continues with tens of dozens similar erros>

The collect2 utility is invoked as follows:

Reading specs from
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
Thread model: posix
gcc version 3.4.3
+Accept TypeMismatch -z -E -b -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
-t -B symbolic +vnocompatwarnings -z +s +h +forceload
libcrypto.a -ldl -lgcc /usr/lib/pa20_64/milli.a -lgcc

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


Jussi Mononen

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]