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

Bug 235004

Summary: hugin-0.7.0_rc2 fails with --as-needed
Product: Gentoo Linux Reporter: Ștefan Talpalaru <stefantalpalaru>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: minor CC: maekke
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Ștefan Talpalaru 2008-08-17 11:07:36 UTC
The libpng, libjpeg and libtiff libraries are not linked when LDFLAGS="-Wl,--as-needed". With an empty LDFLAGS it compiles just fine.

(...)
Linking CXX executable matchpoint
[ 41%] Building CXX object src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/MyProgressDialog.o
/var/tmp/portage/media-gfx/hugin-0.7.0_rc2/work/hugin_build/src/foreign/vigra/vigra_impex/libhuginvigraimpex.so: undefined reference to `Imf::RgbaInputFile::RgbaInputFile(char const*, int)'
/var/tmp/portage/media-gfx/hugin-0.7.0_rc2/work/hugin_build/src/foreign/vigra/vigra_impex/libhuginvigraimpex.so: undefined reference to `png_create_read_struct'
(...)


Reproducible: Always

Steps to Reproduce:
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2008-08-17 16:46:38 UTC
Last as-needed bug on upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=1729682&group_id=77506&atid=550443
Comment 2 Markus Meier gentoo-dev 2008-08-17 17:31:23 UTC
Stefan, could you please test the attached patch in this link?
http://sourceforge.net/tracker/index.php?func=detail&aid=1979840&group_id=77506&atid=550443
Comment 3 Ștefan Talpalaru 2008-08-18 08:32:27 UTC
The patch works.
Comment 4 Markus Meier gentoo-dev 2008-08-18 16:38:57 UTC
patch added, thanks for testing and reporting!
you may resync and remerge hugin in a few hours.