nd-x86.la i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -Wall -Wsign-compare -Wl,-O1 -Wl,--as-needed -o .libs/Gperf-simple Gperf-simple.o ../src/.libs/libunwind-x86.so creating Gperf-simple depbase=`echo Lperf-simple.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \ if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DNDEBUG -O2 -march=pentium-m -pipe -Wall -Wsign-compare -MT Lperf-simple.o -MD -MP -MF "$depbase.Tpo" -c -o Lperf-simple.o Lperf-simple.c; \ then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -Wall -Wsign-compare -Wl,-O1 -Wl,--as-needed -o Lperf-simple Lperf-simple.o ../src/libunwind-x86.la i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -Wall -Wsign-compare -Wl,-O1 -Wl,--as-needed -o .libs/Lperf-simple Lperf-simple.o ../src/.libs/libunwind-x86.so Lperf-simple.o: In function `measure_unwind': Lperf-simple.c:(.text+0x69): undefined reference to `_ULx86_init_local' Lperf-simple.c:(.text+0xa4): undefined reference to `_ULx86_step' Lperf-simple.o: In function `measure_init': Lperf-simple.c:(.text+0x485): undefined reference to `_ULx86_init_local' Lperf-simple.c:(.text+0x5f9): undefined reference to `_ULx86_init_local' Lperf-simple.o: In function `main': Lperf-simple.c:(.text+0x777): undefined reference to `_ULx86_local_addr_space' Lperf-simple.c:(.text+0x77f): undefined reference to `_ULx86_set_caching_policy' Lperf-simple.c:(.text+0x797): undefined reference to `_ULx86_local_addr_space' Lperf-simple.c:(.text+0x79f): undefined reference to `_ULx86_set_caching_policy' Lperf-simple.c:(.text+0x7b7): undefined reference to `_ULx86_local_addr_space' Lperf-simple.c:(.text+0x7bf): undefined reference to `_ULx86_set_caching_policy' collect2: ld returned 1 exit status
Created attachment 128707 [details] libunwind-0.98.5.ebuild w/ --as-needed fix I actually made a patch, but as it turns out, all that was required was running eautoreconf. One thing I can't figure out though: why is the slot set to 7 in this ebuild?
Same here with --ad-needed. @Thomas Thanks for the updated ebuild, worked well for me. Also with 0.98.6 version.
fixed in cvs.