Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138106 - app-text/pinfo-0.6.9: fix for LDFLAGS="-Wl,--as-needed"
Summary: app-text/pinfo-0.6.9: fix for LDFLAGS="-Wl,--as-needed"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-06-26 13:42 UTC by TGL
Modified: 2006-06-26 16:55 UTC (History)
0 users

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


Attachments
files/pinfo-0.6.9-as-needed.patch (pinfo-0.6.9-as-needed.patch,534 bytes, patch)
2006-06-26 13:43 UTC, TGL
Details | Diff
pinfo-0.6.9-ebuild.patch (pinfo-0.6.9-ebuild.patch,638 bytes, patch)
2006-06-26 13:43 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2006-06-26 13:42:23 UTC
Here is a patch to make latest pinfo compile with --as-needed.  The problem was a LDFLAGS/LIBS confusion in an autoconf macro.  Using the right variable fixes the gcc arguments order, and makes -lncursew not being ignored.


Error log (config.log) was: 
configure:10145: checking if curses is usable
configure:10174: i686-pc-linux-gnu-gcc -o conftest -march=pentium-m -O2 -pipe -ggdb -I/usr/include   -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -L/usr/lib -lncursesw conftest.c  >&5
/var/tmp/portage/pinfo-0.6.9/temp/ccARM0Nt.o: In function `main':
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:37: undefined reference to `initscr'
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:38: undefined reference to `printw'
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:39: undefined reference to `stdscr'
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:39: undefined reference to `wrefresh'
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:40: undefined reference to `stdscr'
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:40: undefined reference to `wgetch'
/var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:41: undefined reference to `endwin'
collect2: ld returned 1 exit status
Comment 1 TGL 2006-06-26 13:43:14 UTC
Created attachment 90206 [details, diff]
files/pinfo-0.6.9-as-needed.patch
Comment 2 TGL 2006-06-26 13:43:32 UTC
Created attachment 90207 [details, diff]
pinfo-0.6.9-ebuild.patch
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2006-06-26 16:55:13 UTC
Fixed in Portage with no revision bump. Thanks for reporting this!