make[1]: Entering directory `/var/tmp/portage/perl-tk-804.027/work/Tk-804.027/PNG' cp PNG.pm ../blib/lib/Tk/PNG.pm /usr/bin/perl5.8.7 /usr/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap -typemap /var/tmp/portage/perl-tk-804.027/work/Tk-804.027/Tk/typemap PNG.xs > PNG.xsc && mv PNG.xsc PNG.c x86_64-pc-linux-gnu-gcc -c -I.. -I/usr/local/include -I/usr/X11R6/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fomit-frame-pointer -DVERSION=\"4.003\" -DXS_VERSION=\"804.027\" -fPIC "-I/usr/lib/perl5/5.8.7/x86_64-linux/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ PNG.c make[1]: *** No rule to make target `png.h', needed by `imgPNG.o'. Stop. make[1]: Leaving directory `/var/tmp/portage/perl-tk-804.027/work/Tk-804.027/PNG' make: *** [subdirs] Error 2 !!! ERROR: dev-perl/perl-tk-804.027 failed. !!! Function perl-module_src_compile, Line 127, Exitcode 2 emerge --info perl-tk Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.7-gentoo-r11 x86_64) ================================================================= System uname: 2.6.7-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl digikam digikamplugins doc dri dvd dvdr eds emboss encode esd exif expat fam ffmpeg flac foomatic foomaticdb fortran gdbm gif gimp gimpprint glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms lzw lzw-tiff mad mikmod mime mng motif mozilla mp3 mpeg ncurses nls ogg openal opengl other_var1 other_var2 pam pcre pdflib perl png ppds pppd python qt quicktime readline samba scanner sdl slang spell sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts usb vorbis xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Curious - do you have media-lib/libpng installed? (No, it isn't listed as a dep, just trying to confirm that that's the root of the problem). Thanks!
Prolly it would be best to add a depend on >=media-libs/libpng-1.2.8-r1 because there is another related problem with (an old version of) libpng in bug 125555
REGARDING:- ------ Comment #2 From Christian Hartmann 2006-04-03 09:39 PST [reply] ------- Prolly it would be best to add a depend on >=media-libs/libpng-1.2.8-r1 because there is another related problem with (an old version of) libpng in bug 125555 Installing libpng-1.2.8-r1 does NOT fix the problem. I emerged media-libs/libpng-1.2.8-r1 it installed OK and fresh install of dev-lang/perl-5.8.7-r3 then ran perl-cleaner utility in mode "reallyall" all OK! but perl-tk emerge still failed with same error regards Patrick
Do you have the latest version of the perl-module.eclass installed? (v1.88) You can lookup the version in $PORTDIR/eclass/perl-module.eclass line 3. If not please `emerge --sync` to get the newest version and try again.
I'm not sure of the significance of this or not - but I noticed your compile had -I/usr/X11R6/include which contains a copy of png.h. On my boxes, this inclusion isn't happening (confirmed in portage logs)...
Closing since it's been a year. Looking at the emerge output with 'refreshed' eyes, I see that -I was only including /usr/X11R6/include and /usr/local/include, which would be troublesome if this box was upgraded and /usr/X11R6/include wasn't a symlink to /usr/include (a symptom of migrating to modular-X).