From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13226 invoked by alias); 22 Oct 2007 04:11:08 -0000 Received: (qmail 13215 invoked by uid 22791); 22 Oct 2007 04:11:07 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 22 Oct 2007 04:11:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id CD84D2AA4E6; Mon, 22 Oct 2007 00:11:02 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MXjUSO1Dy5cX; Mon, 22 Oct 2007 00:11:02 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 8C14A2AA4CB; Mon, 22 Oct 2007 00:11:02 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 5216DE7AC8; Sun, 21 Oct 2007 21:11:00 -0700 (PDT) Date: Mon, 22 Oct 2007 04:17:00 -0000 From: Joel Brobecker To: Ulrich Weigand Cc: gdb-patches@sourceware.org Subject: Re: [0/8] solib handler rework Message-ID: <20071022041100.GC764@adacore.com> References: <200710192131.l9JLVYuv002496@d12av02.megacenter.de.ibm.com> <20071022032134.GA764@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071022032134.GA764@adacore.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00485.txt.bz2 > But there was a glitch: solib-pa64.c builds fine, but then > I have unresolved symbol issues: > > /usr/ccs/bin/ld: Unsatisfied symbols: > dlgetmodinfo (first referenced in libgdb.a(solib-pa64.o)) (code) > dlgetname (first referenced in libgdb.a(solib-pa64.o)) (code) More info on this: I managed to find an old 64bit GCC-3.2 compiler from HP, and it allowed me to actually verify to my astonishment that GDB does in fact build in 64-bit mode. The dependency on libdl is indirect: % chatr /lib/pa20_64/libc.2 [...] shared library list: libdl.1 I found libdl.1 to be in /usr/lib/pa20_64, and it indeed exports the symbol that we were missing: % nm /usr/lib/pa20_64/libdl.1| grep dlgetname 4000000000001110 T dlgetname Whereas, if you inspect the 32bit version: % chatr /lib/libc.2 [...] shared library list: dynamic /usr/lib/libdld.2 libdld does not export the symbols that we're missing (or we wouldn't have our link issue :-). So it looks like adding -lxpdl is only needed for 32bit builds. Now, onto testing... -- Joel