This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/3] Find and link with -lmachuser -lhurduser


Hi!

On Fri, 7 Feb 2014 15:59:18 +0800, Yao Qi <yao@codesourcery.com> wrote:
> I see this link error when build native gdb for hurd.
> 
> /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_port_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
> 
> 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.
(<http://www.gnu.org/software/hurd/open_issues/libmachuser_libhurduser_rpc_stubs.html>
and the thread starting at
<http://news.gmane.org/find-root.php?message_id=%3C20110329220143.GB5425%40const.famille.thibault.fr%3E>
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ÃÃe,
 Thomas

Attachment: pgp6awFV8pnyd.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]