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>
Severity: minor CC: maekke
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
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/ 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/ 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:
Comment 2 Markus Meier gentoo-dev 2008-08-17 17:31:23 UTC
Stefan, could you please test the attached patch in this link?
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.