'emerge mapnik' fails with: ... x86_64-pc-linux-gnu-g++ -o utils/pgsql2sqlite/pgsql2sqlite utils/pgsql2sqlite/main.o utils/pgsql2sqlite/sqlite.o -Lsrc -L/usr/lib64 -L/usr/lib64/postgresql-8.4/lib64 -lboost_program_options-mt -lboost_thread-mt -lsqlite3 -lpq -lmapnik utils/pgsql2sqlite/main.o: In function `global constructors keyed to _ZN6mapnik14numeric2stringEPKc': main.cpp:(.text+0xd0): undefined reference to `boost::thread_resource_error::thread_resource_error()' collect2: ld returned 1 exit status scons: *** [utils/pgsql2sqlite/pgsql2sqlite] Error 1 scons: building terminated because of errors. * ERROR: sci-geosciences/mapnik-0.6.1-r1 failed: root@lynx:/root(13)# qlist -Iv boost app-admin/eselect-boost-0.3 dev-libs/boost-1.37.0-r1 dev-libs/boost-1.41.0 dev-util/boost-build-1.37.0 dev-util/boost-build-1.41.0 Reproducible: Always root@lynx:/root(14)# emerge --info Portage 2.1.7.11 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32 x86_64) ================================================================= System uname: Linux-2.6.32-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 07 Dec 2009 06:00:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.1.0_beta1 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.3 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.64 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" 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 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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=nocona -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="C" LDFLAGS="-Wl,-O1" LINGUAS="de fr" MAKEOPTS="-j1" 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="/usr/local/portage/layman/n4g /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage/layman/suka /usr/local/portage/layman/zugaina /usr/local/portage/layman/x11 /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac acl acpi administrator afs alsa amd64 amrr ao aotuv apache2 asf aspell audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany esd evo examples exif expat extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kerberos kexi kpathsea kvm ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo mad maildir mailwrapper math matroska mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle rpc rrdcgi rrdtool samba sasl science sdl server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
What gives "eselect boost show"?
rose@lynx:/home/rose(15)$ eselect boost show Current boost version: boost-1_41 rose@lynx:/home/rose(16)$ eselect boost list Available boost versions: [1] boost-1.37/default [2] boost-1.41/default *
The complete build.log and "emerge -pvq mapnik" too, please.
Created attachment 212341 [details] /var/tmp/portage/sci-geosciences/mapnik-0.6.1-r1/temp/build.log The requested build.log
rose@lynx:/home/rose(17)$ emerge -pvq mapnik [ebuild R ] sci-geosciences/mapnik-0.6.1-r1 USE="cairo curl doc gdal postgres python sqlite -debug"
Searching for boost libs and headers... (cached) [94m *libs found: /usr/lib64 *headers found: /usr/include/boost-1_37 *lib naming extension found: mt[0m Checking for Boost version >= 1.34... yes [94mFound boost lib version... 1_37[0m The build system mixed the headers and libs. The fun question why it did that. Does /usr/include/boost exist and is it a symlink to /usr/include/boost-1_41/boost? If it exists and is not a symlink then post the output of "equery belongs /usr/include/boost". If it doesn't exists then say so and run "eselect boost update".
Btw, even if you resolve this issue mapnik won't build because of a boost bug [1]. This will be fixed in boost-1.41.0-r1. As long as this isn't there, you can use the patch referenced in the bug report. [1] https://svn.boost.org/trac/boost/ticket/3010
Answer to Comment #6: root@lynx:/root(2)# ll /usr/include/boost lrwxrwxrwx 1 root root 16 Dec 7 12:10 /usr/include/boost -> boost-1_41/boost/ That looks good?
(In reply to comment #8) > Answer to Comment #6: > > root@lynx:/root(2)# ll /usr/include/boost > lrwxrwxrwx 1 root root 16 Dec 7 12:10 /usr/include/boost -> boost-1_41/boost/ > > That looks good? > Yes. Still I wonder how this is possible. I tested it with the same boost versions installed which you have and it properly detects 1.41. Please post the output of "ls -l /usr/lib64/|grep boost|grep filesystem".
rose@lynx:/home/rose(4)$ ls -l /usr/lib64/|grep boost|grep filesystem -rw-r--r-- 1 root root 187264 17. Mai 2009 libboost_filesystem-1_37.a lrwxrwxrwx 1 root root 34 18. Mai 2009 libboost_filesystem-1_37.so -> libboost_filesystem-1_37.so.1.37.0 -rwxr-xr-x 1 root root 84792 17. Mai 2009 libboost_filesystem-1_37.so.1.37.0 -rw-r--r-- 1 root root 188764 7. Dez 12:09 libboost_filesystem-1_41.a lrwxrwxrwx 1 root root 34 7. Dez 12:10 libboost_filesystem-1_41.so -> libboost_filesystem-1_41.so.1.41.0 -rwxr-xr-x 1 root root 80672 7. Dez 12:09 libboost_filesystem-1_41.so.1.41.0 -rw-r--r-- 1 root root 187264 17. Mai 2009 libboost_filesystem-mt-1_37.a lrwxrwxrwx 1 root root 37 18. Mai 2009 libboost_filesystem-mt-1_37.so -> libboost_filesystem-mt-1_37.so.1.37.0 -rwxr-xr-x 1 root root 84792 17. Mai 2009 libboost_filesystem-mt-1_37.so.1.37.0 -rw-r--r-- 1 root root 188764 7. Dez 12:09 libboost_filesystem-mt-1_41.a lrwxrwxrwx 1 root root 37 7. Dez 12:10 libboost_filesystem-mt-1_41.so -> libboost_filesystem-mt-1_41.so.1.41.0 -rwxr-xr-x 1 root root 80672 7. Dez 12:09 libboost_filesystem-mt-1_41.so.1.41.0 -rw-r--r-- 1 root root 187264 17. Mai 2009 libboost_filesystem-mt-s-1_37.a lrwxrwxrwx 1 root root 29 7. Dez 12:10 libboost_filesystem-mt.a -> libboost_filesystem-mt-1_41.a lrwxrwxrwx 1 root root 30 7. Dez 12:10 libboost_filesystem-mt.so -> libboost_filesystem-mt-1_41.so -rw-r--r-- 1 root root 187264 17. Mai 2009 libboost_filesystem-s-1_37.a lrwxrwxrwx 1 root root 26 7. Dez 12:10 libboost_filesystem.a -> libboost_filesystem-1_41.a lrwxrwxrwx 1 root root 27 7. Dez 12:10 libboost_filesystem.so -> libboost_filesystem-1_41.so
Dear Sebastion, in the meantime I tried the patch mentioned in Comment #7. But after emerging boost with this patch, nothing changed: configure of mapnik-0.6.1-r1 finds: Checking for Boost version >= 1.34... yes [94mFound boost lib version... 1_37[0m ... and compiling fails then with: x86_64-pc-linux-gnu-g++ -o utils/pgsql2sqlite/pgsql2sqlite utils/pgsql2sqlite/main.o utils/pgsql2sqlite/sqlite.o -Lsrc -L/usr/lib64 -L/usr/lib64/postgresql-8.4/lib64 -lboost_program_options-mt -lboost_thread-mt -lsqlite3 -lpq -lmapnik utils/pgsql2sqlite/main.o: In function `global constructors keyed to _ZN6mapnik14numeric2stringEPKc': main.cpp:(.text+0xd0): undefined reference to `boost::thread_resource_error::thread_resource_error()' collect2: ld returned 1 exit status
(In reply to comment #11) > Dear Sebastion, > in the meantime I tried the patch mentioned in Comment #7. But after emerging > boost with this patch, nothing changed: Oh, that wasn't supposed to fix your problem. That's another problem later on and you could have used this patch on your already installed files. Sorry to not make this clear enough. Anyways, I'm out of ideas. This just works here. I'll reopen it and assign it to the maintainer. Let's see if someone can reproduce it.
Nope, can't reproduce it here either on mixed ~amd64: $ equery l -p boost [ Searching for package 'boost' in all categories among: ] * installed packages [I--] [ ~] app-admin/eselect-boost-0.3 (0) [I--] [ ~] dev-libs/boost-1.37.0-r1 (1.37) [I--] [ ~] dev-libs/boost-1.39.0 (1.39) [I--] [ ~] dev-util/boost-build-1.37.0 (1.37) [I--] [ ~] dev-util/boost-build-1.39.0 (1.39) Let me update boost and try again; although I just did a pretty serious update that apparently didn't pick up any new boost libs...
After deleting boost-1.37, 'emerge --sync' (i.e. boost-1.41.0-r1) I could emerge mapnik-0.6.1-r1. Regards