Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366407 - www-plugins/gnash-0.8.9 links against the wrong version of boost
Summary: www-plugins/gnash-0.8.9 links against the wrong version of boost
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 23:52 UTC by William Throwe
Modified: 2012-11-22 03:28 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,428.33 KB, text/plain)
2011-05-07 23:53 UTC, William Throwe
Details
build.log for gnash-0.8.9 (www-plugins:gnash-0.8.9:20110616-205347.log.gz,34.35 KB, application/gzip)
2011-06-16 21:04 UTC, Jonathan Geisler
Details
build.log for gnash-0.8.10-r1 (build.log,60.83 KB, text/plain)
2012-03-04 07:19 UTC, Geoff Madden
Details
Patch to remove boost version mangling (_gnash-master-boost-m4.diff,1.43 KB, patch)
2012-11-07 11:57 UTC, David E. Narváez
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Throwe 2011-05-07 23:52:01 UTC
checking for boost header... -I/usr/include/boost-1_46
checking for Boost libraries... -L/usr/lib64 -lboost_thread-1_42 -lboost_program_options-1_42

$ eselect boost list
Available boost versions:
  [1]   boost-1.42/default
  [2]   boost-1.46/default *

$ ldd /usr/lib64/gnash/libgnashcore-0.8.9.so | grep boost
        libboost_thread-mt-1_42.so.1.42.0 => /usr/lib64/libboost_thread-mt-1_42.so.1.42.0 (0x00007fd06d50b000)

Reproducible: Always




$ emerge --info gnash
Portage 2.2.0_alpha31 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-gentoo-2.0.2
Timestamp of tree: Sat, 07 May 2011 06:45:01 +0000
app-shells/bash:          4.2_p8-r1
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo wthrowe
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.netnitco.net http://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/wthrowe"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi afs alsa amd64 berkdb bindist bzip2 cairo caps cdr cli cracklib crypt cxx dbus dri dvd dvdr emacs fortran gd gdbm gimp gpm gtk iconv jpeg kerberos latex mmx modules mudflap multilib ncurses nptl nptlonly opengl openmp pam pcre perl png pppd python readline session smp sse sse2 ssl ssse3 sysfs system-sqlite tcpd truetype unicode xorg xscreensaver zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-plugins/gnash-0.8.9 was built with the following:
USE="agg cairo dbus ffmpeg gtk (multilib) nsplugin opengl python sdl-sound ssl (-aqua) -cygnal -doc -fbcon -gnome -gstreamer -kde (-kdeenablefinal) (-lirc) -mysql -nls -openvg -sdl -ssh -test -vaapi"
Comment 1 William Throwe 2011-05-07 23:53:03 UTC
Created attachment 272445 [details]
build.log
Comment 2 Jonathan Geisler 2011-06-16 21:01:47 UTC
I think I have a similar error, but since I have different versions of the boost libraries, I get a different result.  I have versions 1.41 and 1.42 of boost installed and eselect has 1.42 set.  When I compile gnash, it has trouble linking the binary because it can't find the proper function.  I'm assuming that gnash is compiling against one version of boost and linking against the other?  I'm attaching my build log for further verification.
Comment 3 Jonathan Geisler 2011-06-16 21:04:59 UTC
Created attachment 277295 [details]
build.log for gnash-0.8.9

This is gzipped to fit under the size restrictions.
Comment 4 Jonathan Geisler 2011-06-16 21:24:40 UTC
I tried to change the version of boost to 1.41 instead of 1.42 and came up with the same error.  If you look closely at the configure script results, you can see that it is indeed picking the two versions for build and linking differently.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-06-16 21:52:12 UTC
The workaround is to unmerge all except the latest version of boost. The problem is in the macros/boost.m4 file, but I have not yet had time to investigate more closely.
Comment 6 Conway S. Smith 2011-06-25 20:20:15 UTC
I was seeing this as well, although in my case I had:
$ eselect boost list
Available boost versions:
  [1]   boost-1.37/default
  [2]   boost-1.42/default
  [3]   boost-1.46/default *

And in my build log:
checking for the Boost Version...
checking for boost header... -I/usr/X11R6/include/boost-1_46
-I/usr/include/boost-1_46
checking for Boost libraries... -L/usr/lib64 -lboost_thread-1_37 -lboost_program_options-1_37

And the build fails w/ several undefined references to `boost::program_options::options_description::.

I did emerge -vac \<boost-1.45, unmerging 1.37.0-r1 & 1.42.0-r2 (nothing I have merged depends on the older versions), and then gnash built & merged as expected.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-06 19:52:08 UTC
*** Bug 402263 has been marked as a duplicate of this bug. ***
Comment 8 Geoff Madden 2012-03-03 08:57:41 UTC
I also have a problem with gnash-0.8.10-r1,in that in the configure it's looking for GLES2 glu.h.   A search doesn't reveal that opengles is included into portage.
Which is creating the problem,I have /usr/include/GL/glu.h but this appears to be not the right one.
Any suggestions how we can get around this one
Geoff

make[2]: Entering directory `/var/tmp/portage/www-plugins/gnash-0.8.10-r1/work/gnash-0.8.10/librender'
  CXX    libgnashrender_la-Renderer_ogl.lo
In file included from opengl/Renderer_ogl.cpp:24:0:
opengl/Renderer_ogl.h:46:21: fatal error: GL/glu.h: No such file or directory
compilation terminated.
make[2]: *** [libgnashrender_la-Renderer_ogl.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.10-r1/work/gnash-0.8.10/librender'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-plugins/gnash-0.8.10-r1/work/gnash-0.8.10'
make: *** [all] Error 2
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-03-03 11:39:53 UTC
(In reply to comment #8)
Please don't comment on this bug with other issues unrelated to the boost problem. Your issue is bug 406727.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-03-03 11:46:18 UTC
sorry, I meant bug 406641
Comment 11 Geoff Madden 2012-03-04 07:19:21 UTC
Created attachment 304183 [details]
build.log for gnash-0.8.10-r1
Comment 12 Geoff Madden 2012-03-04 07:36:48 UTC
(In reply to comment #10)
> sorry, I meant bug 406641
Noted Christopher,in future I'll try deeper searches,though I really didn't think that mesa may have been the hassle,I was searching for GLSE2.
Ignore my latest addition,this occurred last night bynot being able to access the server,causing me to send off today without any other checks.
Geoff
Comment 13 Laurent G. 2012-03-10 11:49:37 UTC
Hi,

I am reluctant to open another account to lay one bug in a bug-tracker.
So could any one with an account on the bug-tracker for gnash tell it that a m4 script exists that handles boost correctly (as we can guess from libcmis using it and not having problem with this in emerging).

http://github.com/tsuna/boost.m4

I took a look on gnash own boost.m4 : its hack on headers works, so we get latest boost ; but for libs it gets lost. We can not just 

boost is heavy to merge/quickpkg/unmerge/re-emerge

Thanks in advance.
Comment 14 David E. Narváez 2012-11-07 11:57:32 UTC
Created attachment 328666 [details, diff]
Patch to remove boost version mangling

Is this bug valid now that boost is unslotted? Anyhow, the attached patch removes the fancy handling of the boost version, since it should only need to find the include and lib symlinks.