Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139338 - gif2png failes to compile after upgrading to libpng-1.2.12
Summary: gif2png failes to compile after upgrading to libpng-1.2.12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 139737 (view as bug list)
Depends on:
Blocks: 138736
  Show dependency tree
 
Reported: 2006-07-05 10:10 UTC by Andre Hinrichs
Modified: 2006-07-09 02:32 UTC (History)
4 users (show)

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


Attachments
gif2png-libpng.patch (gif2png-libpng.patch,1.01 KB, patch)
2006-07-07 14:01 UTC, michael@smith-li.com
Details | Diff
gif2png-2.5.1-r1.ebuild (gif2png-2.5.1-r1.ebuild,696 bytes, text/plain)
2006-07-07 14:02 UTC, michael@smith-li.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Hinrichs 2006-07-05 10:10:12 UTC
Here is, what happens:

i686-pc-linux-gnu-gcc  -O3 -march=pentium3 -fomit-frame-pointer   -o gif2png  437_l1.o gif2png.o gifread.o memory.o version.o  -lpng -lm -lz
gif2png.o: In function `writefile':
gif2png.c:(.text+0xe2e): undefined reference to `png_write_tEXt'
gif2png.c:(.text+0xe83): undefined reference to `png_write_zTXt'
collect2: ld returned 1 exit status
make[1]: *** [gif2png] Error 1
make[1]: Leaving directory `/var/tmp/portage/gif2png-2.5.1/work/gif2png-2.5.1'
make: *** [all] Error 2

!!! ERROR: media-gfx/gif2png-2.5.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 609:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


# emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16.19 i686)
=================================================================
System uname: 2.6.16.19 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.6.15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.du.se/pub/os/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/my /usr/local/portage/sunrise"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X a52 aac accessibility acl alsa apache2 audiofile avi berkdb bidi big-tables binfilter bitmap-fonts browserplugin bzip2 cairo cdda cddb cdparanoia chroot cli corba crypt cups curl daap dlloader dri dts dv dvb dvd dvdread eds emacs emboss encode exif expat fame ffmpeg flac font-server foomaticdb fortran gd gdbm gif gimp glut gmp gnutls gpm gs gstreamer gtk gtk2 hpn idn ieee1394 imagemagick imlib isdnlog java jbig jpeg junit kde kdeenablefinal lcms ldap leim libg++ libwww live lzo mad mailwrapper matroska mikmod mjpeg mmx mng mod mono motif mozilla moznocompose moznoirc moznomail mp3 mpeg mysql ncurses network nls nptl nsplugin objc odbc ogg openal openexr opengl pam pcmcia pcre pdf pdflib perl png povray ppds pppd profile python qt qt3 qt4 quicktime readline real reflection rle rtc rtsp samba sasl scanner sdl session shout slp sndfile speex spell spl sse ssl stream subversion svg svga tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vlm vorbis win32codecs wmf wxwindows xanim xml xorg xosd xscreensaver xv xvid yv12 zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de linguas_en userland_GNU video_cards_fglrx video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nick Devito 2006-07-05 10:20:57 UTC
This seems to be an ABI incompatability issue, and I've been able to reproduce this error. One temporary measure would be to require a libpng version below 1.2.12. Upstream libpng knows about the ABI incompatability issues as stated on their mailing list, however, upstream gif2png doesn't seem to know. 
Comment 2 michael@smith-li.com 2006-07-07 14:01:51 UTC
Created attachment 91163 [details, diff]
gif2png-libpng.patch

Found this patch on the libpng ML archive at http://sourceforge.net/mailarchive/forum.php?thread_id=10199493&forum_id=43850 (thanks to Thomas Klausner).

It resolves the >=media-libs/libpng-1.2.10 issues and compiles and runs as expected on my x86 box. The aforementioned post raises some doubts about the patch's effect on gif -> png comments; however I haven't run into any problems so far. So please test!
Comment 3 michael@smith-li.com 2006-07-07 14:02:47 UTC
Created attachment 91164 [details]
gif2png-2.5.1-r1.ebuild

Ebuild to apply the libpng patch attached previously.
Comment 4 Andre Hinrichs 2006-07-07 15:01:07 UTC
Yeap, compiles fine here.
Comment 5 Marcelo Goes (RETIRED) gentoo-dev 2006-07-08 14:39:03 UTC
Thanks, I just added the patch to 2.5.1, it worked fine for me.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-07-09 02:32:42 UTC
*** Bug 139737 has been marked as a duplicate of this bug. ***