From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5893 invoked by alias); 21 Sep 2005 07:53:19 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 5781 invoked by uid 22791); 21 Sep 2005 07:53:05 -0000 Received: from mailbox.surfeu.fi (HELO surfeu.fi) (213.173.154.4) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 21 Sep 2005 07:53:05 +0000 Received: from [213.173.154.9] (HELO surfeu.fi) by surfeu.fi (CommuniGate Pro SMTP 3.4.1) with SMTP id 153914135 for gcc-help@gcc.gnu.org; Wed, 21 Sep 2005 10:53:03 +0300 Received: from 195.237.145.107 (proxying for unknown) (SquirrelMail authenticated user dj.athens) by webmail.surfeu.fi with HTTP; Wed, 21 Sep 2005 10:53:02 +0300 (EEST) Message-ID: <48219.195.237.145.107.1127289182.squirrel@webmail.surfeu.fi> Date: Wed, 21 Sep 2005 07:53:00 -0000 Subject: Problems with collect2, linking libgcc twice causing duplicate symbols From: To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-09/txt/msg00132.txt.bz2 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] . . . 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