Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174557 - sys-power/powersave-0.15.11 fails with --as-needed
Summary: sys-power/powersave-0.15.11 fails with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2007-04-14 08:07 UTC by Peter Avramucz
Modified: 2007-04-17 22:11 UTC (History)
0 users

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


Attachments
should be applied to 'libpower/Makefile' (libpower-Makefile.patch,345 bytes, patch)
2007-04-16 09:16 UTC, Peter Avramucz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Avramucz 2007-04-14 08:07:14 UTC
Message:

i686-pc-linux-gnu-gcc -O2 -pipe -march=athlon64 -msse3 -Wl,--hash-style=both -Wl,--as-needed -o .libs/link_libpowersave link_libpowersave-link_libpowersave.o  ../../libpower/.libs/libpowersave.so -lm /usr/lib/liblazy.so /usr/lib/libdbus-1.so
../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_free_string'
../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_get_property_string'
../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_get_property_int'
../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_get_property_bool'
../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_hal_find_device_by_capability'
../../libpower/.libs/libpowersave.so: undefined reference to `liblazy_free_strlist'
collect2: ld returned 1 exit status
make[3]: *** [link_libpowersave] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-power/powersave-0.15.11/work/powersave-0.15.11/testsuite/linktests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-power/powersave-0.15.11/work/powersave-0.15.11/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-power/powersave-0.15.11/work/powersave-0.15.11'
make: *** [all] Error 2

Without --as-needed, it works.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-14 08:37:52 UTC
Want to contribute a patch for it? :)

see http://www.gentoo.org/proj/en/qa/asneeded.xml for how to do so.
Comment 2 Peter Avramucz 2007-04-16 09:16:35 UTC
Created attachment 116406 [details, diff]
should be applied to 'libpower/Makefile'
Comment 3 Peter Avramucz 2007-04-16 09:17:29 UTC
I have created a "patch", however, I'm not sure, that this is the best method.
The LIBS varible should be modified somehow with autotools/autoconf, not? :-/
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-17 22:11:30 UTC
Thank you very much! I have improved your patch a bit and committed it to the tree.

Nice to see people participate :)