From owner-freebsd-questions Thu May 6 15:18:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tele-post-20.mail.demon.net (tele-post-20.mail.demon.net [194.217.242.20]) by hub.freebsd.org (Postfix) with ESMTP id 74BE215C80 for ; Thu, 6 May 1999 15:17:53 -0700 (PDT) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by tele-post-20.mail.demon.net with smtp (Exim 2.12 #2) id 10fWSj-0006vo-0K; Thu, 6 May 1999 22:17:50 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from marder-1. (rasnt-2 [193.114.228.212]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id XAA01355; Thu, 6 May 1999 23:17:42 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id XAA04021; Thu, 6 May 1999 23:17:35 +0100 (BST) (envelope-from marko) Date: Thu, 6 May 1999 23:17:35 +0100 From: Mark Ovens To: Doug White Cc: FreeBSD-questions Subject: Re: gcc differences between aout & ELF Message-ID: <19990506231735.G255@marder-1> References: <19990505235002.C2189@marder-1> <19990506213653.B255@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990506213653.B255@marder-1>; from Mark Ovens on Thu, May 06, 1999 at 09:36:53PM +0100 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 06, 1999 at 09:36:53PM +0100, Mark Ovens wrote: > The problem is that symbols defined in libstdc++ are being redefined > in libgcc. This is the sort of output I'm getting (the linker is > run from a script, not a Makefile): > > linking PCOMPILE for OPL/autopcc > /usr/local/lib/gcc-lib/i386-unknown-freebsd3.0/2.8.1/libgcc.a(exception.o): In function `bad_cast type_info function': > > /tmp/usr/ports/lang/gcc28/work/gcc-2.8.1/./cp/exception.cc(.text+0x0): multiple definition of `terminate(void)' > > /usr/lib/libstdc++.a(exceptioni.o)(.text+0x128): first defined here > > /usr/libexec/elf/ld: Warning: size of symbol `terminate__Fv' changed from 65 to 12 in exception.o > I've got rid of the above errors :-) In another thread, egcs-1.1.2, there was mention of similar errors and a fix of symlinking libstdc++ to libgcc. I did this, after renaming libstdc++, and it worked. The errors below still occur. The source files contain ``#include '' and ``#include '', which is where all the definitions are. I just don't know which lib to link in. With 2.2.8 I had ``-lC'' as one of the linker options, but under 3.1 that gives the error about "can't open -lC". I bet that is the problem. Where is libC in 3.1? > and: > > /usr/marko/libopt/libutc.a(utc_string.o): In function `UTC_String::operator<<(short const &)': > utc_string.o(.text+0x13d5): undefined reference to `ios virtual table' > utc_string.o(.text+0x1427): undefined reference to `ostream::ios virtual table' > utc_string.o(.text+0x1431): undefined reference to `ostrstream::ios virtual table' > > libutc.a is an archive built during the compile process. > > Does any of the above tell you anything? and, more importantly, > can you suggest a fix? > > > Doug White > > Internet: dwhite@resnet.uoregon.edu > | FreeBSD: The Power to Serve > http://gladstone.uoregon.edu/~dwhite > | www.freebsd.org > > > > -- > FreeBSD - The Power To Serve http://www.freebsd.org > My Webpage http://www.users.globalnet.co.uk/~markov > _______________________________________________________________ > Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK > CAD/CAM solutions for Sheetmetal Working Industry > mailto:marko@uk.radan.com http://www.radan.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message