Summary: | sys-power/nut-2.2.2 fails with -Wl,--as-needed - ./.libs/libupsclient.so: undefined reference to `TLSv1_client_method' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexey Shvetsov <alexxy> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | betelgeuse, dhp_gentoo, flameeyes |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
build.log
nut-2.2.2-as-needed.patch |
Description
Alexey Shvetsov
2008-07-14 15:13:54 UTC
Created attachment 160350 [details]
build.log
Please test these variations: LDFLAGS="-Wl,-O1 -Wl,--sort-common" LDFLAGS="-Wl,-O1" And tell me if either of them solves the problems. look like removing LDFLAGS solves this issue (In reply to comment #2) > Please test these variations: > LDFLAGS="-Wl,-O1 -Wl,--sort-common" > LDFLAGS="-Wl,-O1" > > And tell me if either of them solves the problems. > sed -i "s/-Wl,--as-needed//" ${S}/clients/Makefile just before emake in src_compile() should suffice Created attachment 162115 [details, diff]
nut-2.2.2-as-needed.patch
this patch allowed me to compile it with USE="usb hal ssl xml".
nut's autofoo would need some more cleaning/simplification though.
does the patch work ? can we merge it in portage ? *** Bug 248438 has been marked as a duplicate of this bug. *** Yes - the patch works successfully for me. 2.4.1 contains the fix. |