From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9653 invoked by alias); 16 Feb 2014 07:49:33 -0000 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 Received: (qmail 9639 invoked by uid 89); 16 Feb 2014 07:49:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,T_FRT_FREE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Feb 2014 07:49:31 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WEwTf-0000Sa-KL from Thomas_Schwinge@mentor.com ; Sat, 15 Feb 2014 23:49:27 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 15 Feb 2014 23:49:27 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Sun, 16 Feb 2014 07:49:26 +0000 From: Thomas Schwinge To: Yao Qi CC: , Subject: Re: [PATCH 3/3] Find and link with -lmachuser -lhurduser In-Reply-To: <1391759958-972-4-git-send-email-yao@codesourcery.com> References: <1391759958-972-1-git-send-email-yao@codesourcery.com> <1391759958-972-4-git-send-email-yao@codesourcery.com> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Sun, 16 Feb 2014 07:49:00 -0000 Message-ID: <87a9drv6o6.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2014-02/txt/msg00513.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1474 Hi! On Fri, 7 Feb 2014 15:59:18 +0800, Yao Qi wrote: > I see this link error when build native gdb for hurd. >=20 > /home/yao/Software/hurd-toolchain/bin/../lib/gcc/i686-pc-gnu/4.8.0/../../= ../../i686-pc-gnu/bin/ld: gnu-nat.o: undefined reference to symbol 'mach_po= rt_destroy' > /home/yao/Software/hurd-toolchain/bin/../lib/gcc/i686-pc-gnu/4.8.0/../../= ../../i686-pc-gnu/bin/ld: note: 'mach_port_destroy' is defined in DSO > /home/yao/Software/hurd-toolchain/bin/../i686-pc-gnu/libc/lib/libmachuser= .so.1 so try adding it to the linker command line > /home/yao/Software/hurd-toolchain/bin/../i686-pc-gnu/libc/lib/libmachuser= .so.1: > could not read symbols: Invalid operation >=20 > This patch is to find and link GDB with -lmachuser and -lhurduser. > * configure.ac: Invoke AC_SEARCH_LIBS to search libmachuser and > libhurduser. This should (currently) not be needed, for these two libraries are (currently) considered to be part of libc. ( and the thread starting at have some discussion about this.) Can you please post your toolchain's libc.so file (that is, the text file of a few lines, not the binary libc.so.0.3). Am I assuming correctly that this is a i686-pc-gnu toolchain that I once provided you with? Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQEcBAEBAgAGBQJTAG15AAoJEK3/DN1sMFFtn+gH/jtV9UGj4eafJEI7eu5SPB7N K3SxFoPIeUP6nTk6TmqESzEsbVWOH+VesdSGBEypQDXyYiooaEVMbzCRiHq4guva I2FPMPjW1mShU9e4vFeeO0kjHK5Zhr+iz7UxeAsGFDcKS0MGDm00gOnx6op9cxHP tZQi+PwyOqZytEc7ABuipeeM6Mf95TGngWCIl9gwNXEjK4U+FnWFAxHXUzESiNdo c939so73ETqhD2kKVfBhVpz0yZ6M21mMjU7Qf7tf0x7TlNkdSOuArQ6TOoBdXa+r G+Oi9EQfefn/Q5X3wVGi9qJbNpq3aK94y/ePYczaQ5whTlDbi9ikOkMR6JjjQPM= =evhi -----END PGP SIGNATURE----- --=-=-=--