Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384263

Summary: sci-geosciences/mapnik fails to build with libpng15
Product: Gentoo Linux Reporter: Bill Kenworthy <billk>
Component: Current packagesAssignee: Steve Arnold <nerdboy>
Severity: normal CC: sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    

Description Bill Kenworthy 2011-09-23 23:23:58 UTC
Picked up by revdep-rebuild after png15 upgraded

Reproducible: Always

i686-pc-linux-gnu-g++ -o src/png_reader.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -w -march=core2 -O2 -pipe -fomit-frame-pointer -DBOOST_FILESYSTEM_VERSION=2 -finline-functions -Wno-inline -DNDEBUG -DSHAPE_MEMORY_MAPPED_FILE -pthread -fPIC -D_REENTRANT -I. -Iinclude -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/boost-1_46 -I/usr/include/postgresql-9.0 -I/usr/include/agg2 -I/usr/include/pycairo src/png_reader.cpp
src/png_reader.cpp: In function ‘void mapnik::png_read_data(png_struct*, png_byte*, png_size_t)’:
src/png_reader.cpp:85:50: error: invalid use of incomplete type ‘struct png_struct’
/usr/include/libpng15/png.h:827:16: error: forward declaration of ‘struct png_struct’
scons: *** [src/png_reader.os] Error 1
scons: building terminated because of errors.
 * ERROR: sci-geosciences/mapnik-0.7.1-r1 failed (compile phase):
 *   scons make failed
 * Call stack:
 *, line  56:  Called src_compile
 *   environment, line 5409:  Called die
 * The specific snippet of code:
 *       scons CC="$(tc-getCC)" CXX="$(tc-getCXX)" shared=1 || die "scons make failed";
 * If you need support, post the output of 'emerge --info =sci-geosciences/mapnik-0.7.1-r1',
 * the complete build log and the output of 'emerge -pqv =sci-geosciences/mapnik-0.7.1-r1'.
 * The complete build log is located at '/var/log/emerge/sci-geosciences:mapnik-0.7.1-r1:20110923-225445.log'.
 * The ebuild environment file is located at '/tmp/portage/sci-geosciences/mapnik-0.7.1-r1/temp/environment'.
 * S: '/tmp/portage/sci-geosciences/mapnik-0.7.1-r1/work/mapnik-0.7.1'

>>> Failed to emerge sci-geosciences/mapnik-0.7.1-r1, Log file:

>>>  '/var/log/emerge/sci-geosciences:mapnik-0.7.1-r1:20110923-225445.log'
 * The following package has failed to build or install:
 *  (sci-geosciences/mapnik-0.7.1-r1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/emerge/sci-geosciences:mapnik-0.7.1-r1:20110923-225445.log'

 * GNU info directory index is up-to-date.

moriah ~ # emerge --info
Portage (default/linux/x86/10.0, gcc-4.5.3, glibc-2.12.2-r0, 2.6.37-gentoo-r2 i686)
System uname: Linux-2.6.37-gentoo-r2-i686-Pentium-R-_Dual-Core_CPU_E6600_@_3.06GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 23 Sep 2011 20:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo Mythtv-Ebuilds x-portage
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10 AdobeFlash-10.1"
CFLAGS="-w -march=core2 -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-w -march=core2 -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_AU.UTF-8"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/mythtv_portage/Gentoo /usr/local/portage"
USE="16bittmp X aac aalib acpi activefilter adns adplug alaw alsa ao apache2 asterisk async audacious bash-completion berkdb bgpclassless binfilter branding browserplugin bs2b buffysize bzip2 cairo calendar cdda cddb cdparanoia cdr cgi clamav cli cracklib crypt cscope ctype cue cups curl curlwrappers customlog cvs cxx dba dbus dedicated device-mapper dga dhcp dirac directfb djvu dlloader dri dv dvb dvd dvi eds encode erandom esd examples extensions extras faac fam fbcon fbsplash ffmpeg filter fits flac flash fluidsynth follow-xff font-server fontconfig foomaticdb fortran fpx freetds frontendonly ftp gcj gcrypt gd gdbm gdu geos gif gimp gimpprint glib glibc-omitfp gml gnome gnome-keyring gnutls gpc gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 gtkhtml h323 hal hdf hdf5 hpn iconv idn ilbc imagemagick imap imlib innodb iproute2 java javascript jbig jpeg jpeg2k kate kdrive lame lcms ldap libclamav libnotify libsamplerate lm_sensors logrotate lua lzo mad mbrola midi mms mmx mmxext mng modules motif mozilla mozsvg mp3 mpeg mpi-threads mtp mudflap multipath multislot multiuser mysql nautilus ncurses netlink netpbm nls nntp no-htdocs nptl nptlonly nsplugin oav objc odbc ogdi ogg old-linux opengl ospfapi pam passwordsave pch pcre pda pdf pdo perl php png pnm policykit postgres ppds pppd proj python pyzord qemu-ifup qt3support quicktime rar readline rpm rtc samba scanner schroedinger scrobbler sdl seamonkey sensord server session sftplogging sid sip slp smi smp smux sndfile soap sockets sound speex spell sqlite sse sse2 ssl ssse3 startup-notification subversion svg svga swat sysfs syslog szip t1lib tcl tcltk tcpd tga theora threads tidy tiff tk tokenizer toolbar truetype ulaw underscores unicode unzip urandom usb v4l v4l2 vcd vde vidix vim-pager vim-syntax vim-with-x virus-scan vorbis vpx wav wavpack wddx webdav win32codecs wmf wxGTK x86 xanim xext xine xml xmlrpc xorg xpm xsl xulrunner xv xvid yaz zaptel zip zlib zrtp zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 cgid" CALLIGRA_FEATURES="kexi words flow plan 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_AU.UTF-8" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev vesa" 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"

moriah ~ #
Comment 1 Rafał Mużyło 2011-09-24 00:04:45 UTC

Mixing stable and unstable isn't exactly supported.

...but, as it's the latest in portage (and latest released too)...

A fix seems to be available in the upstream repo.
Comment 2 Bill Kenworthy 2011-09-24 01:32:33 UTC
Agreed mixing pkgs is problematic, but png15 stabilisation is coming - I was just forced to jump sooner rather than waiting for stable.  Also see Bug 354479

All other packages I had problems with (quite a few) have already released a ~x86 -r fixed version

Comment 3 Samuli Suominen gentoo-dev 2011-09-24 07:42:42 UTC
CC for not following bug-wranglers rules, see:
If you do bug-wrangling, do it properly or otherwise you just add more work for others. Thanks.
Comment 4 Rafał Mużyło 2011-09-24 12:01:53 UTC
Honestly, after checking the upstream repo for a solution, I simply didn't see the title anymore.
Comment 5 Samuli Suominen gentoo-dev 2011-09-25 07:36:34 UTC
(In reply to comment #4)
> Honestly, after checking the upstream repo for a solution, I simply didn't see
> the title anymore.

ok, no prob :)
Comment 6 Steve Arnold gentoo-dev 2011-09-26 07:51:00 UTC
Fixed, but no rev bump.  Sync again and it should work.
Comment 7 Bill Kenworthy 2011-09-26 12:10:32 UTC
synced and it now compiles fine