"/usr/bin/../lib/libgcc_s.so.1: undefined reference to `dl_iterate_phdrfree"

Mike Frysinger vapier at gentoo.org
Sat Dec 10 15:25:52 UTC 2005


On Sat, Dec 10, 2005 at 01:54:46PM +0100, Thomas Lundquist wrote:
> /usr/bin/../lib/libgcc_s.so.1: undefined reference to `dl_iterate_phdr'

i fixed this in the snapshot already, but you can find attached a patch
i wrote for Gentoo for 0.9.28 ... should work ;)
-mike
-------------- next part --------------
dl_iterate_phdr is only defined when generating GNU code, so ...

taken from upstream svn

--- uclibc/ldso/ldso/Makefile
+++ uclibc/ldso/ldso/Makefile
@@ -43,6 +43,7 @@
 XXFLAGS+= -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \
 	-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
 	-fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
+XXFLAGS += -D_GNU_SOURCE
 
 # BEWARE!!! At least mips* will die if -O0 is used!!!
 XXFLAGS:=$(XXFLAGS:-O0=-O1)


More information about the uClibc mailing list