Hi! On Fri, 7 Feb 2014 15:59:18 +0800, Yao Qi 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. ( 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üße, Thomas