From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14090 invoked by alias); 6 Dec 2001 17:45:25 -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 14046 invoked from network); 6 Dec 2001 17:45:22 -0000 Received: from unknown (HELO igw3.watson.ibm.com) (198.81.209.18) by sources.redhat.com with SMTP; 6 Dec 2001 17:45:22 -0000 Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id fB6HigT151126; Thu, 6 Dec 2001 12:44:42 -0500 Received: from makai.watson.ibm.com (makai.watson.ibm.com [9.2.216.144]) by sp1n293en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id fB6HigU27216; Thu, 6 Dec 2001 12:44:42 -0500 Received: from watson.ibm.com (localhost [127.0.0.1]) by makai.watson.ibm.com (AIX4.3/8.9.3/8.9.3/01-10-2000) with ESMTP id MAA26192; Thu, 6 Dec 2001 12:44:42 -0500 Message-Id: <200112061744.MAA26192@makai.watson.ibm.com> To: Robert Boehne cc: gcc@gcc.gnu.org Subject: Re: AIX g++ 3.0.2 Undefined symbol: virtual thunk to... In-Reply-To: Message from Robert Boehne of "Thu, 06 Dec 2001 11:20:26 CST." <3C0FA8DA.945EEA50@ricardo-us.com> Date: Thu, 06 Dec 2001 09:55:00 -0000 From: David Edelsohn X-SW-Source: 2001-12/txt/msg00289.txt.bz2 >>>>> Robert Boehne writes: Robert> Now I'm baffled. If g++ isn't generating them, how do they get Robert> into my object code? Doing an nm of this library I get 68 lines Robert> that match "thunk". Robert> nm ./sigc++/.libs/libsigc.a | c++filt | grep thunk Robert> 000000001004b668 t .non-virtual thunk to std::iostream::~iostream() Robert> Robert> 0000000020010e48 d virtual thunk to std::strstream::~strstream() Robert> 0000000020010ca4 d virtual thunk to SigC::Object::~Object() Robert> 0000000020010c98 d virtual thunk to Robert> SigC::Object::~Object() Robert> Are you saying that some other compiler is generating these? Robert> My suspicion is that it is related to having a compiler configured Robert> with "--disable-shared --disable-threads" so I'm working on Robert> re-bootstrapping gcc with "--enable-threads=posix --enable-shared". Robert> I'm not sure what a "thunk" is so the link error doesn't help Robert> me much. I do not know what a virtual thunk is. Thunks are described on many websites. It is a piece of code to fix up the "this" pointer for multiple inheritance. Maybe some part of GCC is not obeying #ifdef ASM_OUTPUT_MI_THUNK. David