Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139632 - emerge gimp fails with undefined reference to `png_read_destroy'
Summary: emerge gimp fails with undefined reference to `png_read_destroy'
Status: VERIFIED DUPLICATE of bug 136661
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 20:07 UTC by Mark Knecht
Modified: 2006-07-07 20:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Knecht 2006-07-07 20:07:11 UTC
New machine. First problem I've run into. I couldn't find anything quite like this in Bugzilla. I'll try a masked version now to see if it's already fixed. Thanks.

christmas ~ # emerge --deep --update --newuse gimp
<SNIP>
/bin/sh ../../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=i686 -fomit-frame-pointer -pipe -Wall   -o pnm  pnm.o ../../libgimp/libgimpui-2.0.la ../../libgimpwidgets/libgimpwidgets-2.0.la ../../libgimp/libgimp-2.0.la ../../libgimpcolor/libgimpcolor-2.0.la ../../libgimpbase/libgimpbase-2.0.la -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -pipe -Wall -o .libs/png png.o  ../../libgimp/.libs/libgimpui-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimp/.libs/libgimp-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpwidgets/.libs/libgimpwidgets-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpmodule/.libs/libgimpmodule-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimp/.libs/libgimp-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpcolor/.libs/libgimpcolor-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpbase/.libs/libgimpbase-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libpng12.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
png.o: In function `load_image':
png.c:(.text+0xa86): undefined reference to `png_read_destroy'
png.o: In function `save_image':
png.c:(.text+0x1a15): undefined reference to `png_write_destroy'
collect2: ld returned 1 exit status
make[3]: *** [png] Error 1
make[3]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -pipe -Wall -o .libs/pnm pnm.o  ../../libgimp/.libs/libgimpui-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimp/.libs/libgimp-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpwidgets/.libs/libgimpwidgets-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpmodule/.libs/libgimpmodule-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimp/.libs/libgimp-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpcolor/.libs/libgimpcolor-2.0.so /var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/libgimpbase/.libs/libgimpbase-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libpng12.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
creating pnm
make[3]: Leaving directory `/var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/plug-ins/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gimp-2.2.8-r1/work/gimp-2.2.8'
make: *** [all] Error 2

!!! ERROR: media-gfx/gimp-2.2.8-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  gimp-2.2.8-r1.ebuild, line 138:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

christmas ~ #


christmas ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.15
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="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ "
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 audiofile avi berkdb bitmap-fonts caps cdr cli crypt cups dlloader dri dvd dvdr dvdread emboss encode firebird flac fluidsynth foomaticdb fortran gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 i8x0 imlib ipv6 isdnlog jack jack-tmpfs jpeg kde ladcca ladspa libg++ libwww mad mikmod mjpeg mmx motif mp3 mpeg mysql mythtv ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session sndfile spell spl sse sse2 ssl tcltk tcpd threads transcode truetype truetype-fonts type1-fonts udev usb v4l v4l2 vorbis win32codecs xml xmms xorg xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_sis"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

christmas ~ #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-07 20:10:28 UTC

*** This bug has been marked as a duplicate of 136661 ***
Comment 2 Mark Knecht 2006-07-07 20:29:36 UTC
Is this actually a duplicate? I was not building against 1.2.10 as I had 1.2.12 installed. Thanks

matt@christmas ~ $ eix libpng
* media-libs/libpng
     Available versions:  1.2.8-r1 ~1.2.10 1.2.12
     Installed:           1.2.12
     Homepage:            http://www.libpng.org/
     Description:         Portable Network Graphics library
Comment 3 Mark Knecht 2006-07-07 20:38:04 UTC
Appears to be fixed with newer gimp (2.3.9) and newest libpng:

christmas ~ # eix -I gimp
* media-gfx/gimp
     Available versions:  1.2.5 2.2.6-r1 2.2.8-r1 ~2.2.9 ~2.2.10 ~2.2.11 ~2.2.11-r1 ~2.3.9 *9999
     Installed:           2.3.9
     Homepage:            http://www.gimp.org/
     Description:         GNU Image Manipulation Program from CVS HEAD