Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 138106

Summary: app-text/pinfo-0.6.9: fix for LDFLAGS="-Wl,--as-needed"
Product: Gentoo Linux Reporter: TGL <tom.gl>
Component: Current packagesAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: files/pinfo-0.6.9-as-needed.patch
pinfo-0.6.9-ebuild.patch

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!