Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235004 - hugin-0.7.0_rc2 fails with --as-needed
Summary: hugin-0.7.0_rc2 fails with --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: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-08-17 11:07 UTC by Ștefan Talpalaru
Modified: 2008-08-18 16:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.