From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31710 invoked by alias); 6 Dec 2001 17:20:31 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31688 invoked from network); 6 Dec 2001 17:20:30 -0000 Received: from unknown (HELO boreas.ricardo-us.com) (199.178.221.2) by sources.redhat.com with SMTP; 6 Dec 2001 17:20:30 -0000 Received: from ricardo-us.com (icarus.ricardo-us.com [172.20.16.40]) by boreas.ricardo-us.com (AIX4.3/8.9.3/8.8.8) with ESMTP id LAA24310; Thu, 6 Dec 2001 11:20:26 -0600 Message-ID: <3C0FA8DA.945EEA50@ricardo-us.com> Date: Thu, 06 Dec 2001 09:20:00 -0000 From: Robert Boehne Organization: Ricardo Software X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: David Edelsohn CC: gcc@gcc.gnu.org Subject: Re: AIX g++ 3.0.2 Undefined symbol: virtual thunk to... References: <200112042103.QAA23310@makai.watson.ibm.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00286.txt.bz2 David Edelsohn wrote: > > >>>>> Robert Boehne writes: > > Robert> I've got a bit of a problem here, and I suspect it might be due to > Robert> the fact I'm using gcc configured without shared libraries. > Robert> I could find no mention of "virtual thunk" (only non-virtual thunk) > Robert> in gnats, and I couldnt' find anything to suggest (to me) that > Robert> the two problem reports were related. > > Robert> Any ideas? What is a "thunk"? > > GCC does not generate thunks for AIX. > > David David: Now I'm baffled. If g++ isn't generating them, how do they get into my object code? Doing an nm of this library I get 68 lines that match "thunk". nm ./sigc++/.libs/libsigc.a | c++filt | grep thunk 000000001004b668 t .non-virtual thunk to std::iostream::~iostream() 0000000020010e48 d virtual thunk to std::strstream::~strstream() 0000000020010ca4 d virtual thunk to SigC::Object::~Object() 0000000020010c98 d virtual thunk to SigC::Object::~Object() Are you saying that some other compiler is generating these? My suspicion is that it is related to having a compiler configured with "--disable-shared --disable-threads" so I'm working on re-bootstrapping gcc with "--enable-threads=posix --enable-shared". I'm not sure what a "thunk" is so the link error doesn't help me much. Thanks, Robert boreas::/icarus/tempsig++/ibm43 (84)% dump -H ./sigc++/.libs/libsigc.a ./sigc++/.libs/libsigc.a[libsigc-1.1.so.0]: ***Loader Section*** Loader Header Information VERSION# #SYMtableENT #RELOCent LENidSTR 0x00000001 0x000000c1 0x00001053 0x0000008f #IMPfilID OFFidSTR LENstrTBL OFFstrTBL 0x00000002 0x0000d61c 0x000013ff 0x0000d6ab ***Import File Strings*** INDEX PATH BASE MEMBER 0 /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.0.2:/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.0.2/../../..:/usr/lib:/lib 1 libc.a shr.o boreas::/icarus/tempsig++/ibm43 (85)% g++ -v Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.0.2/specs Configured with: /boreas/gcc-3.0.2/configure --prefix=/usr/local --disable-threads --enable-languages=c,c++ --without-gnu-ld --with-gnu-as --infodir=/net/InHouse/emacs/20.7/info --disable-shared --enable-static Thread model: single gcc version 3.0.2 -- Robert Boehne Software Engineer Ricardo Software Chicago Technical Center TEL: (630)789-0003 x. 238 FAX: (630)789-0127 email: rboehne@ricardo-us.com