Summary: | dev-libs/pslib: breaks with forced --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | TeX project <tex> |
Status: | RESOLVED FIXED | ||
Severity: | QA | CC: | printing |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.gentoo.org/proj/en/qa/asneeded.xml | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
dev-php5/pecl-ps config.log
Patch to add a check for pow in libm.so to configure.in Patch to pslib-0.4.1.ebuild to apply pslib-lm.patch and rebuild configure.in |
Description
Diego Elio Pettenò (RETIRED)
2008-11-30 11:24:42 UTC
Created attachment 173856 [details]
dev-php5/pecl-ps config.log
Created attachment 179282 [details, diff]
Patch to add a check for pow in libm.so to configure.in
The root problem appears to be that libps.so calls pow(double, double), but does not link to libm.so. This patch modifies configure.in to use AC_CHECK_LIB to check for pow in libm.so, and, if found, add -lm to the library line.
There is a stray assignment of -lm to an unused variable in one of the sub-Makefiles, but this configure change is preferred since it correctly handles systems where pow is part of libc.
Created attachment 179283 [details, diff] Patch to pslib-0.4.1.ebuild to apply pslib-lm.patch and rebuild configure.in Attachment #179282 [details, diff] is the first patch to an autotools file in this ebuild, so the ebuild will need to call eautoreconf to regenerate configure after the patch is applied. This attachment modifies the ebuild to do so. fixed in 0.4.1-r1, thanks |