Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143216 - media-gfx/tuxpaint-0.9.15b-r1 fails to compile with png errors
Summary: media-gfx/tuxpaint-0.9.15b-r1 fails to compile with png errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Leonardo Boshell (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 08:14 UTC by Neil Bothwick
Modified: 2006-08-09 18:48 UTC (History)
2 users (show)

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 Neil Bothwick 2006-08-08 08:14:38 UTC
This is the result of emerging media-gfx/tuxpaint on two machines (~amd64 and ~ppc) with media-libs/libpng-1.2.12-r1

>>> Compiling source in /mnt/scratch/portage/tuxpaint-0.9.15b-r1/work/tuxpaint-0.9.15b ...

...Compiling Tux Paint from source...
src/tuxpaint.c:165:1: warning: "__USE_GNU" redefined
In file included from /usr/include/features.h:8,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:28,
                 from /usr/include/stdio.h:8,
                 from src/tuxpaint.c:163:
/usr/include/gentoo-multilib/amd64/features.h:270:1: warning: this is the location of the previous definition
src/tuxpaint.c:2553:2: warning: #warning No idea how to read CPU cycles for you, sorry.
src/tuxpaint.c: In function 'main':
src/tuxpaint.c:2569: warning: unused variable 'time2'
src/tuxpaint.c:2568: warning: unused variable 'time1'
src/tuxpaint.c: In function 'loadstamp_callback':
src/tuxpaint.c:7226: warning: comparison between signed and unsigned
src/tuxpaint.c: In function 'do_shape':
src/tuxpaint.c:12824: warning: unused variable 'tmp'

...Linking Tux Paint...
obj/tuxpaint.o: In function `do_png_save':
tuxpaint.c:(.text+0x4b71): undefined reference to `png_create_write_struct'
tuxpaint.c:(.text+0x4b8a): undefined reference to `png_create_info_struct'
tuxpaint.c:(.text+0x4bc2): undefined reference to `png_init_io'
tuxpaint.c:(.text+0x4c19): undefined reference to `png_set_sRGB_gAMA_and_cHRM'
tuxpaint.c:(.text+0x4c52): undefined reference to `png_set_text'
tuxpaint.c:(.text+0x4c67): undefined reference to `png_write_info'
tuxpaint.c:(.text+0x4d38): undefined reference to `png_write_image'
tuxpaint.c:(.text+0x4d7d): undefined reference to `png_write_end'
tuxpaint.c:(.text+0x4d92): undefined reference to `png_destroy_write_struct'
tuxpaint.c:(.text+0x4dbc): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make: *** [tuxpaint] Error 1

!!! ERROR: media-gfx/tuxpaint-0.9.15b-r1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  tuxpaint-0.9.15b-r1.ebuild, line 41:   Called die

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

Portage 2.1.1_pre4-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.4
Last Sync: Tue, 08 Aug 2006 04:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time"
DISTDIR="/mnt/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.digimed.co.uk/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="en_GB"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/mnt/portage/packages/hactar"
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="/mnt/scratch"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/local /mnt/portage/layman/sunrise /mnt/portage/layman/portage-xgl"
SYNC="rsync://desiato/gentoo"
USE="amd64 X aalib alsa apache2 asf audiofile avi berkdb bitmap-fonts bluetooth bzip2 cddb cdr cli crypt cups curl dbus directfb divx4linux dlloader dv dvb dvb_cards_usb-wt220u dvd dvdr dvdread elibc_glibc encode exif fam ffmpeg flac foomaticdb gdbm gif gimpprint gphoto2 gpm gtk gtk2 hal ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse isdnlog jabber java jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux kipi lesstif libwww linguas_en_GB lirc lirc_devices_devinput lm_sensors lzw lzw-tiff mad mailwrapper mng mono mp3 mpeg musicbrainz mysql ncurses nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl oss pcre pda pdf pdflib perl pic png ppds pppd python qt qt3 qt4 quicktime readline reflection samba scanner sdl session slp spell spl ssl tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev usb userland_GNU v4l v4l2 video_cards_nv video_cards_nvidia video_cards_vga vorbis xcomposite xfs xml2 xorg xpm xscreensaver xv xvid zlib zvbi"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Duncan 2006-08-08 21:09:25 UTC
I am getting the same error on my build as well. It fails as previously described at linking with undefined references.

Additionally, I tried downgrading my libpng to 1.2.10 and got no love there either. I tried linking tuxpaint against both versions of libpng with varing undefined references.


# emerge -v tuxpaint
>>> Compiling source in /var/tmp/portage/tuxpaint-0.9.15b-r1/work/tuxpaint-0.9.15b ...

...Compiling Tux Paint from source...
src/tuxpaint.c:165:1: warning: "__USE_GNU" redefined
In file included from /usr/include/stdio.h:28,
                 from src/tuxpaint.c:163:
/usr/include/features.h:270:1: warning: this is the location of the previous definition
src/tuxpaint.c:428:1: warning: "likely" redefined
In file included from /usr/include/asm/sigcontext.h:4,
                 from /usr/include/bits/sigcontext.h:28,
                 from /usr/include/signal.h:333,
                 from src/tuxpaint.c:202:
/usr/include/linux/compiler.h:73:1: warning: this is the location of the previous definition
src/tuxpaint.c:429:1: warning: "unlikely" redefined
/usr/include/linux/compiler.h:74:1: warning: this is the location of the previous definition
src/tuxpaint.c:2547:2: warning: #warning Benchmark times are based on a 450 MHz CPU.
src/tuxpaint.c: In function 'do_shape':
src/tuxpaint.c:12824: warning: unused variable 'tmp'

...Linking Tux Paint...
obj/tuxpaint.o: In function `do_png_save':
tuxpaint.c:(.text+0x4e33): undefined reference to `png_create_write_struct'
tuxpaint.c:(.text+0x4e46): undefined reference to `png_create_info_struct'
tuxpaint.c:(.text+0x4e76): undefined reference to `png_init_io'
tuxpaint.c:(.text+0x4eba): undefined reference to `png_set_sRGB_gAMA_and_cHRM'
tuxpaint.c:(.text+0x4ef0): undefined reference to `png_set_text'
tuxpaint.c:(.text+0x4f02): undefined reference to `png_write_info'
tuxpaint.c:(.text+0x4fbb): undefined reference to `png_write_image'
tuxpaint.c:(.text+0x5001): undefined reference to `png_write_end'
tuxpaint.c:(.text+0x5013): undefined reference to `png_destroy_write_struct'
tuxpaint.c:(.text+0x5049): undefined reference to `png_destroy_write_struct'
tuxpaint.c:(.text+0x50aa): undefined reference to `png_destroy_write_struct'
tuxpaint.c:(.text+0x50d1): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make: *** [tuxpaint] Error 1

!!! ERROR: media-gfx/tuxpaint-0.9.15b-r1 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  tuxpaint-0.9.15b-r1.ebuild, line 41:   Called die

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


# emerge --search libpng
*  media-libs/libpng
      Latest version available: 1.2.12-r1
      Latest version installed: 1.2.12-r1
      Size of files: 731 kB
      Homepage:      http://www.libpng.org/
      Description:   Portable Network Graphics library
      License:       as-is

# gcc --version
gcc (GCC) 4.1.1 (Gentoo 4.1.1)

# emerge --info
Portage 2.1.1_pre3-r5 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: [Not Present]
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.12
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ "
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.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt curl curlwrappers dlloader dri dvd dvdr dvdread eds emboss encode ffmpeg foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mplayer ncurses nls nptl offensive ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session slp spell spl ssl tcpd threads tiff truetype truetype-fonts type1-fonts udev vcd vorbis win32codecs xine xinerama xml xml2 xmms xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Leonardo Boshell (RETIRED) gentoo-dev 2006-08-09 05:23:37 UTC
Thanks for reporting this issue. This has been fixed in the tree, please re-sync in an hour or two and try again.
Comment 3 Neil Bothwick 2006-08-09 08:42:44 UTC
That works now, on both platforms, thanks!
Comment 4 Mike Duncan 2006-08-09 18:48:42 UTC
Yep, compiles and links fine now. Thanks for the support.