Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182450 - sys-libs/libunwind fails with LDFLAGS --as-needed
Summary: sys-libs/libunwind fails with LDFLAGS --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2007-06-18 12:42 UTC by Hanno Böck
Modified: 2008-10-14 09:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libunwind-0.98.5.ebuild w/ --as-needed fix (libunwind-0.98.5.ebuild,689 bytes, text/plain)
2007-08-20 18:24 UTC, Thomas S. Howard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2007-06-18 12:42:24 UTC
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
Comment 1 Thomas S. Howard 2007-08-20 18:24:28 UTC
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?
Comment 2 Piotr Szymaniak 2008-07-01 21:29:08 UTC
Same here with --ad-needed.

@Thomas
Thanks for the updated ebuild, worked well for me. Also with 0.98.6 version.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-10-14 09:58:37 UTC
fixed in cvs.