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

Bug 370941

Summary: net-print/gutenprint-5.2.6 fails to compile
Product: Gentoo Linux Reporter: Thomas <tg42>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: graham
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info gutenprint
build.log
build.log

Description Thomas 2011-06-09 22:04:30 UTC
When trying to emerge net-print/gutenprint-5.2.6, the build failed with the error message

LC_ALL= LANG= LANGUAGE= STP_MODULE_PATH=../../src/main/.libs:../../src/main STP_DATA_PATH=../../src/xml STP_LOCALEDIR=../../src/cups/catalog ./cups-genppd.5.2  -l C -p ppd/C
/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/cups/.libs/cups-genppd.5.2: symbol lookup error: ../../src/main/.libs/print-escp2.so: undefined symbol: stpi_data_path

This happens due to LD_LIBRARY_PATH being
/usr/lib:/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/main/.libs
Thus the old libgutenprint.so.2 is taken from /usr/lib

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =net-print/gutenprint-5.2.6

Actual Results:  
Build fails


Workaround: remove old libgutenprint* from /usr/lib
Comment 1 Thomas 2011-06-09 22:08:10 UTC
Created attachment 276427 [details]
emerge --info gutenprint
Comment 2 Rafał Mużyło 2011-06-10 00:21:48 UTC
No, that kind of error usually comes from wrong order of dependent libs in Makefile.am.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-10 14:51:06 UTC
Please attach the entire build log.
Comment 4 Thomas 2011-06-10 18:08:06 UTC
Created attachment 276559 [details]
build.log
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-11 14:57:34 UTC
Comment on attachment 276559 [details]
build.log

Please set LANG=C - not everyone reads German.
Comment 6 Dennis Schridde 2011-09-05 11:02:43 UTC
Created attachment 285605 [details]
build.log

I think I am experiencing the same or at least a very similar issue:
make[5]: Leaving directory `/var/tmp/portage/net-print/gutenprint-5.2.7/work/gutenprint-5.2.7/src/cups'
LC_ALL= LANG= LANGUAGE= STP_MODULE_PATH=../../src/main/.libs:../../src/main STP_DATA_PATH=../../src/xml ./cups-genppd.5.2  -l C -p ppd/C
./var/tmp/portage/net-print/gutenprint-5.2.7/work/gutenprint-5.2.7/src/cups/.libs/cups-genppd.5.2: symbol lookup error: /var/tmp/portage/net-print/gutenprint-5.2.7/work/gutenprint-5.2.7/src/cups/.libs/cups-genppd.5.2: undefined symbol: stp
_parameter_has_category_value

Please reopen.
Comment 7 marek wojciechowski 2011-09-05 16:27:57 UTC
The same here for 5.2.7
Comment 8 Gary E. Miller 2011-09-06 17:14:47 UTC
Same here on 5.2.7.  Please reopen.
Comment 9 Gary E. Miller 2011-09-06 18:44:21 UTC
There is an easy work around:
    emerge --unmerge gutenprint
    emerge gutenprint