Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446424 - app-misc/gpsdrive-2.11-r3[mapnik] - In file included from ..., .../gpsdrive-2.11/src/mapnik.cpp:11: /usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
Summary: app-misc/gpsdrive-2.11-r3[mapnik] - In file included from ..., .../gpsdrive-2...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 02:01 UTC by Allen St. John
Modified: 2013-10-12 12:03 UTC (History)
1 user (show)

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


Attachments
The complete build log (build.log,81.05 KB, text/plain)
2012-12-08 02:05 UTC, Allen St. John
Details
gpsdrive-2.11-mapnik-boost.patch.out (gpsdrive-2.11-mapnik-boost.patch.out,2.82 KB, text/plain)
2013-01-03 18:33 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allen St. John 2012-12-08 02:01:29 UTC
localhost ~ # emerge --info '=app-misc/gpsdrive-2.11-r3'
Portage 2.1.11.31 (default/linux/amd64/10.0/no-multilib, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sat, 08 Dec 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 artworkextra avahi berkdb bluetooth branding bzip2 cli cracklib crypt cups cxx dbus device-mapper dri dv faac ffmpeg flac fortran fuse gdbm gnome gnome-keyring gpm gps gsm gstreamer gtk iconv ieee1394 imagemagick ipv6 jpeg libass libnotify libv4l mms mmx mmxext modules mp3 mpeg mudflap ncurses networkmanager nls nptl offensive opengl openmp pam pcre png policykit pppd pulseaudio python readline samba sdl session smpeg speex sse sse2 ssl ssse3 syslog tcpd theora threads tiff truetype twolame unicode upnp usb usbredir v4l vde video vim vim-syntax vorbis x264 xvid 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

app-misc/gpsdrive-2.11-r3 was built with the following:
USE="dbus kismet scripts speech -debug -gdal -mapnik"

localhost ~ # emerge -pqv '=app-misc/gpsdrive-2.11-r3'
[ebuild   R   ] app-misc/gpsdrive-2.11-r3  USE="dbus gdal* kismet mapnik* scripts speech -debug" 

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 1 Allen St. John 2012-12-08 02:05:39 UTC
Created attachment 331782 [details]
The complete build log
Comment 2 Rafał Mużyło 2012-12-08 12:43:59 UTC
> /usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3

Which boost version is installed ?
Comment 3 Allen St. John 2012-12-08 17:34:02 UTC
localhost ~ # emerge -s boost
Searching...
[ Results for search key : boost ]
[ Applications found : 4 ]

*  dev-libs/boost
      Latest version available: 1.52.0-r4
      Latest version installed: 1.52.0-r4
      Size of files: 53,146 kB
      Homepage:      http://www.boost.org/
      Description:   Boost Libraries for C++
      License:       Boost-1.0

*  dev-util/boost-build
      Latest version available: 1.52.0-r1
      Latest version installed: 1.52.0-r1
      Size of files: 53,146 kB
      Homepage:      http://www.boost.org/doc/tools/build/index.html
      Description:   A system for large project software construction, which is simple to use and powerful.
      License:       Boost-1.0

*  media-sound/pianobooster [ Masked ]
      Latest version available: 0.6.4b
      Latest version installed: [ Not Installed ]
      Size of files: 162 kB
      Homepage:      http://pianobooster.sourceforge.net
      Description:   A MIDI file player that teaches how to play the piano
      License:       GPL-3

*  sys-devel/boost-m4
      Latest version available: 0.3_pre121130
      Latest version installed: 0.3_pre121130
      Size of files: 37 kB
      Homepage:      http://github.com/tsuna/boost.m4
      Description:   Another set of autoconf macros for compiling against boost
      License:       GPL-3
Comment 4 Allen St. John 2012-12-08 17:36:25 UTC
this is after doing:
emerge --sync
emerge -avuDN world
Comment 5 Allen St. John 2012-12-08 18:05:50 UTC
hmmm
according to:

http://www.boost.org/doc/libs/1_49_0/libs/filesystem/v3/doc/v3.html

Breaking changes

To ease the transition, Versions 2 and 3 will both be included in the next several Boost releases. Version 2 will be the default version for one release cycle, and then Version 3 will become the default version.

So the question is how do I change from version 2 to 3?

and should the ebuild reference this?

or am I incorrect in thinking this is the problem?
Comment 6 Allen St. John 2012-12-08 18:08:14 UTC
also from:

http://www.boost.org/doc/libs/1_49_0/libs/filesystem/v3/doc/index.htm

Version 2 is deprecated, and will not be included in Boost releases 1.48 and later.
Comment 7 Rafał Mużyło 2012-12-08 18:45:58 UTC
Well, this might get tricky (especially with gpsdrive being maintainer-needed).
First of all, there's 'append-flags -DBOOST_FILESYSTEM_VERSION=2' in the ebuild.

Remove that and see what breaks then.

It's almost bound to break, but a new build log might give an idea of how much fixing will be required.
Comment 8 Allen St. John 2012-12-08 20:43:24 UTC
cd /var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DPOSTGIS -DMAPNIK -DSPEECH -DDBUS -DDEBUG  -DNDEBUG -O2 -pipe -fomit-frame-pointer  -I/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11_build/src -I/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src -I/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11_build -I/usr/include/postgresql-9.2 -I/usr/include/gtk-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include    -fPIC -o CMakeFiles/gpsdrive.dir/mapnik.o -c /var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp: In function 'void mapnik::init_mapnik(char*)':
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp:220:89: error: 'class boost::filesystem::directory_entry' has no member named 'leaf'
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp:221:58: error: 'class boost::filesystem::directory_entry' has no member named 'string'
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp:224:35: error: 'class boost::filesystem::directory_entry' has no member named 'leaf'
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp: In function 'void mapnik::render_thread()':
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp:526:3: warning: 'void gdk_pixbuf_unref(GdkPixbuf*)' is deprecated (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243): Use 'g_object_unref' instead
/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11/src/mapnik.cpp:526:42: warning: 'void gdk_pixbuf_unref(GdkPixbuf*)' is deprecated (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243): Use 'g_object_unref' instead
make[2]: *** [src/CMakeFiles/gpsdrive.dir/mapnik.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11_build'
make[1]: *** [src/CMakeFiles/gpsdrive.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-misc/gpsdrive-2.11-r3/work/gpsdrive-2.11_build'
make: *** [all] Error 2
Comment 9 Rafał Mużyło 2012-12-08 23:21:38 UTC
The starting point should probably be the link on the page you've already found - http://www.boost.org/doc/libs/1_49_0/libs/filesystem/v3/doc/deprecated.html.

Those two class boost::filesystem::directory_entry methods seems to be listed there.
Comment 10 Allen St. John 2012-12-09 00:53:51 UTC
Ya I will probably use gpsdrive with manually created tiles for now...
I am not a programmer and I have not really messed with ebuilds up to this point...
I think this will have to be left to who ever takes over maintainership of this ebuild.

Mostly I just wanted to report the bug. :)
Comment 11 jannis 2012-12-17 11:32:42 UTC
This has been fixed upstream with this commit:
http://gpsdrive.svn.sourceforge.net/viewvc/gpsdrive/trunk/src/mapnik.cpp?r1=2605&r2=2609
Comment 12 Pacho Ramos gentoo-dev 2013-01-03 18:32:48 UTC
(In reply to comment #11)
> This has been fixed upstream with this commit:
> http://gpsdrive.svn.sourceforge.net/viewvc/gpsdrive/trunk/src/mapnik.
> cpp?r1=2605&r2=2609

But it doesn't apply cleanly
Comment 13 Pacho Ramos gentoo-dev 2013-01-03 18:33:04 UTC
Created attachment 334222 [details]
gpsdrive-2.11-mapnik-boost.patch.out
Comment 14 Pacho Ramos gentoo-dev 2013-10-12 12:03:14 UTC
dropped