Date: Thu, 6 May 1999 23:17:35 +0100 From: Mark Ovens <marko@uk.radan.com> To: Doug White <dwhite@resnet.uoregon.edu> Cc: FreeBSD-questions <questions@freebsd.org> Subject: Re: gcc differences between aout & ELF Message-ID: <19990506231735.G255@marder-1> In-Reply-To: <19990506213653.B255@marder-1>; from Mark Ovens on Thu, May 06, 1999 at 09:36:53PM %2B0100 References: <19990505235002.C2189@marder-1> <Pine.BSF.4.03.9905061058240.25986-100000@resnet.uoregon.edu> <19990506213653.B255@marder-1>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <strstream.h>'' and ``#include <iostream.h>'', 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990506231735.G255>