From owner-freebsd-hackers Wed Sep 11 12:59:46 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA24944 for hackers-outgoing; Wed, 11 Sep 1996 12:59:46 -0700 (PDT) Received: from gatekeeper.ctron.com (ctron.com [134.141.197.25]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA24938 for ; Wed, 11 Sep 1996 12:59:41 -0700 (PDT) Received: (from news@localhost) by gatekeeper.ctron.com (8.6.12/8.6.9) id PAA24905; Wed, 11 Sep 1996 15:58:22 -0400 Received: from stealth.ctron.com(134.141.5.107) by gatekeeper via smap (V1.3mjr) id sma024879; Wed Sep 11 15:57:57 1996 Received: from thoth.ctron.com by stealth.ctron.com (4.1/SMI-4.1) id AB18055; Wed, 11 Sep 96 15:55:15 EDT Received: from thoth (localhost [127.0.0.1]) by thoth.ctron.com (8.6.12/8.6.12) with SMTP id PAA05975; Wed, 11 Sep 1996 15:59:06 -0400 Message-Id: <32371A09.451E@ctron.com> Date: Wed, 11 Sep 1996 15:59:05 -0400 From: Alexander Seth Jones Organization: Cabletron Systems, Inc. X-Mailer: Mozilla 3.0b5aGold (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: Terry Lambert Cc: hackers@freefall.freebsd.org Subject: Re: shared libg++2.7.2 References: <199609111816.LAA05138@phaeton.artisoft.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert wrote: > > > Anyone gotten the libg++2.7.2 libraries built shared? I keep getting > > this error: > > > > ld: No reference to __DYNAMIC > > > > Where should this be defined? > > Are you sure this is what it says exactly? > > "no reference to" means no one imports the symbol. > > Typically, this would mean you are linking against the wrong ctr0; > try explicitly referencing it on the ld line instead of letting the > compiler call the ld for you. This is probably just a config bug > in the GCC distribution. > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. Well, I'm getting a little further along... It does seem as though there's a problem with the GCC distribution of 2.7.2.1. It won't make shared libs for libg++2.7.2 out of the box. I end up doing: ld -Bshareable -o libxxx.so.2.7.2 /usr/lib/c++rt0.o `cat piclist` and this works fine; the ld error goes away. But, there seems to be another problem. When compiling exceptioni.cc from the stdc++ lib, I get the following warning from the assembler: /var/tmp/cc000339.s: Assembler messages: /var/tmp/cc000339.s:603: Warning: GOT relocation burb: `___EXCEPTION_TABLE__' should be global and I then create the shared lib as above. But linking just a little program that cout's "hi", core dumps in __register_exceptions before main is called. I know the exception handling code is sketchy right now, but ... Any compiler gurus care to offer some insight? Is this a compiler problem, an assembler problem, or has anyone actually gotten the libs built shared and I'm doing something outlandishly dumb? I'd like to see if other people are running into this problem before I report it to the GNU people. -- Alex Jones | ajones@ctron.com Cabletron Systems, Inc. Durham, NH USA 03824