Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180381 - media-gfx/hugin-0.6.1 fails w/ --as-needed
Summary: media-gfx/hugin-0.6.1 fails w/ --as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2007-05-30 19:29 UTC by Krzysztof Nowicki
Modified: 2007-12-16 14:22 UTC (History)
2 users (show)

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

hugin-0.6.1-link.patch (hugin-0.6.1-link.patch,1.19 KB, patch)
2007-05-30 19:31 UTC, Krzysztof Nowicki
Details | Diff
hugin-0.6.1.ebuild.patch (hugin-0.6.1.ebuild.patch,718 bytes, patch)
2007-05-30 19:32 UTC, Krzysztof Nowicki
Details | Diff
hugin-0.6.1-as-needed.patch (hugin-0.6.1-as-needed.patch,629 bytes, patch)
2007-06-01 20:29 UTC, Krzysztof Nowicki
Details | Diff
hugin-0.6.1.ebuild.patch (hugin-0.6.1.ebuild.patch,723 bytes, patch)
2007-06-01 20:32 UTC, Krzysztof Nowicki
Details | Diff
hugin-0.7_beta4-as-needed.patch (hugin-0.7_beta4-as-needed.patch,655 bytes, patch)
2007-06-01 20:33 UTC, Krzysztof Nowicki
Details | Diff
hugin-0.7_beta4.ebuild.patch (hugin-0.7_beta4.ebuild.patch,747 bytes, patch)
2007-06-01 20:34 UTC, Krzysztof Nowicki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Nowicki 2007-05-30 19:29:04 UTC
Trying to compile media-gfx/hugin-0.6.1 results in a link error:

/bin/sh ../../libtool --mode=link x86_64-pc-linux-gnu-g++ -DHasJPEG -DHasPNG -DHasTIFF -DHasZLIB -DHasPANO -pthread -I/usr/include -DINSTALL_XRC_DIR=\"/usr/share/hugin/xrc\" -DINSTALL_LOCA
LE_DIR=\"/usr/share/locale\" -Os -pipe -march=nocona -fno-ident -L/usr/lib64 -pthread -Wl,--as-needed -Wl,--hash-style=both -Wl,-O1 -L/usr/X11R6/lib64 -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6
-lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -ljpeg -lpng -ltiff -lz -lpano12 -lboost_thread-gcc-mt -Wl,--as-needed -Wl,-
-hash-style=both -Wl,-O1 -o nona_gui  nona_gui.o  ../../src/Panorama/ ../../src/common/ ../../src/jhead/ ../../src/foreign/vigra_impex/libvigra_impex.l
a ../../src/hugin/ ../../src/vigra_ext/
mkdir .libs
x86_64-pc-linux-gnu-g++ -DHasJPEG -DHasPNG -DHasTIFF -DHasZLIB -DHasPANO -pthread -I/usr/include -DINSTALL_XRC_DIR=\"/usr/share/hugin/xrc\" -DINSTALL_LOCALE_DIR=\"/usr/share/locale\" -Os -
pipe -march=nocona -fno-ident -pthread -Wl,--as-needed -Wl,--hash-style=both -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,-O1 -o nona_gui nona_gui.o  -L/usr/lib64 -L/usr/X11R6/lib64 -
lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -lboost_thread-gcc-mt ../../src/Panorama
/.libs/libpanorama.a /usr/lib64/ ../../src/common/.libs/libcommon.a ../../src/jhead/.libs/libjhead.a ../../src/foreign/vigra_impex/.libs/libvigra_impex.a /usr/lib64/
 /usr/lib64/ -lm -lc /usr/lib64/ -lz ../../src/hugin/.libs/libhuginwxutils.a ../../src/vigra_ext/.libs/libvigra_ext.a
../../src/Panorama/.libs/libpanorama.a(Stitcher1.o): In function `void vigra_ext::transformImageInternMT<vigra::ConstBasicImageIterator<unsigned int, unsigned int**>, vigra::StandardConstV
alueAccessor<unsigned int>, vigra::BasicImageIterator<unsigned int, unsigned int**>, vigra::StandardValueAccessor<unsigned int>, PTools::Transform, vigra::BasicImageIterator<unsigned char,
 unsigned char**>, vigra::StandardValueAccessor<unsigned char>, vigra_ext::interp_nearest>(vigra::triple<vigra::ConstBasicImageIterator<unsigned int, unsigned int**>, vigra::ConstBasicImag
eIterator<unsigned int, unsigned int**>, vigra::StandardConstValueAccessor<unsigned int> >, vigra::triple<vigra::BasicImageIterator<unsigned int, unsigned int**>, vigra::BasicImageIterator
<unsigned int, unsigned int**>, vigra::StandardValueAccessor<unsigned int> >, std::pair<vigra::BasicImageIterator<unsigned char, unsigned char**>, vigra::StandardValueAccessor<unsigned cha
r> >, PTools::Transform&, vigra::Diff2D, vigra_ext::interp_nearest, bool, utils::MultiProgressDisplay&)':
ssorIjEEN6PTools9TransformENS8_IhPPhEENSA_IhEENS_14interp_nearestEEEvNS1_6tripleIT_SK_T0_EENSJ_IT1_SN_T2_EESt4pairIT4_T5_ERT3_NS1_6Diff2DET6_bRN5utils20MultiProgressDisplayE[void vigra_ext
::transformImageInternMT<vigra::ConstBasicImageIterator<unsigned int, unsigned int**>, vigra::StandardConstValueAccessor<unsigned int>, vigra::BasicImageIterator<unsigned int, unsigned int
**>, vigra::StandardValueAccessor<unsigned int>, PTools::Transform, vigra::BasicImageIterator<unsigned char, unsigned char**>, vigra::StandardValueAccessor<unsigned char>, vigra_ext::inter
p_nearest>(vigra::triple<vigra::ConstBasicImageIterator<unsigned int, unsigned int**>, vigra::ConstBasicImageIterator<unsigned int, unsigned int**>, vigra::StandardConstValueAccessor<unsig
ned int> >, vigra::triple<vigra::BasicImageIterator<unsigned int, unsigned int**>, vigra::BasicImageIterator<unsigned int, unsigned int**>, vigra::StandardValueAccessor<unsigned int> >, st
d::pair<vigra::BasicImageIterator<unsigned char, unsigned char**>, vigra::StandardValueAccessor<unsigned char> >, PTools::Transform&, vigra::Diff2D, vigra_ext::interp_nearest, bool, utils:
:MultiProgressDisplay&)]+0x124): undefined reference to `boost::thread_group::thread_group()'


The problem could be related to the --as-needed flag.
Comment 1 Krzysztof Nowicki 2007-05-30 19:29:30 UTC
ionadh ~ # emerge --info
Portage (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.20-morph9 x86_64)
System uname: 2.6.20-morph9 x86_64 Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 28 May 2007 17:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20-r2
CFLAGS="-Os -pipe -march=nocona -fno-ident"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-Os -pipe -march=nocona -fno-ident"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=both -Wl,-O1"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTDIR_OVERLAY="/usr/portage/local/layman/initng /usr/portage/local/layman/hanno-xgl /usr/portage/local/layman/xeffects /usr/portage/local/layman/arcon-portage /usr/local/portage /usr/portage/local/minefield"
USE="X a52 aac acpi alsa amd64 amr apache2 arts bash-completion berkdb bitmap-fonts bzip2 cairo cddb cdr cli crypt css cups dbus divx dri dts dvb dvd dvdr dvdread eds emacs emboss emerald encode esd exif fam fbcon fbsplash ffmpeg firefox flac fortran gif gimp glitz gmedia gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility kipi libg++ mad matroska midi mikmod mmap mp3 mpeg mudflap musepack mysql ncurses newspr nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline realmedia reflection rtc samba sdl session skey slang smp spell spl splash ssl subversion svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vorbis webdav wifi wma wmf wmp x264 xforms xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical cron daemon dev dllaunch envparser find fstat history idleprobe initctl interactive iparser last limit logfile netprobe ngc4 pause pidfile reload renice rlparser simple_launcher stcmd stdout suid syncron syslog unneeded provide ctrlaltdel fmon ngcs nge" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="vesa nv"
Comment 2 Krzysztof Nowicki 2007-05-30 19:31:59 UTC
Created attachment 120718 [details, diff]

The problem can be fixed by changing the link command line by moving -lboost_thread-gcc-mt to the end.

Proposed patch
Comment 3 Krzysztof Nowicki 2007-05-30 19:32:53 UTC
Created attachment 120720 [details, diff]

Related ebuild patch.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-05-31 15:39:18 UTC
(In reply to comment #2)
> Created an attachment (id=120718) [edit]
> hugin-0.6.1-link.patch

Maybe the proper solution would be to use LIBADD? Also please submit this patch upstream and post the link here.
Comment 5 Krzysztof Nowicki 2007-06-01 20:28:36 UTC
I found a much cleaner solution of this problem, that addresses the issue right at the root point. The same problem is also observed on 0.7_beta4. I also renamed the patch according to the cause of the problem. Patches follow.
Comment 6 Krzysztof Nowicki 2007-06-01 20:29:43 UTC
Created attachment 120889 [details, diff]

Patch for hugin-0.6.1
Comment 7 Krzysztof Nowicki 2007-06-01 20:32:18 UTC
Created attachment 120890 [details, diff]

Related ebuild patch.
Comment 8 Krzysztof Nowicki 2007-06-01 20:33:17 UTC
Created attachment 120891 [details, diff]

Patch for hugin 0.7_beta4
Comment 9 Krzysztof Nowicki 2007-06-01 20:34:33 UTC
Created attachment 120892 [details, diff]

Related ebuild patch.

Reelevant patch also reported upstream.
Comment 11 Markus Meier gentoo-dev 2007-12-03 16:42:21 UTC
applied, thanks for the patches!
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2007-12-16 14:22:40 UTC
marked 0.6.1-r2 stable on amd64 because current stable did not build (tried without asneeded too)