Can't emerge perl-tk: root@westport Documents # emerge perl-tk Calculating dependencies ...done! >>> emerge (1 of 1) dev-perl/perl-tk-800.025 to / >>> md5 src_uri ;-) Tk800.025.tar.gz >>> Unpacking source... >>> Unpacking Tk800.025.tar.gz to /var/tmp/portage/perl-tk-800.025/work >>> Source unpacked. /usr/bin/perl is installed in /usr/lib/perl5/5.8.2/i686-linux okay PPM for perl5.008002 ... Finding dependancies for tkWindow.c Finding dependancies for tk_f.c ERROR from evaluation of /var/tmp/portage/perl-tk-800.025/work/Tk800.025/pTk/Makefile.PL: Can't locate object method "dir_target" via package "PACK002" at ./Makefile.PL line 231. make: *** No targets specified and no makefile found. Stop. !!! ERROR: dev-perl/perl-tk-800.025 failed. !!! Function perl-module_src_compile, Line 49, Exitcode 2 !!! compilation failed Reproducible: Always Steps to Reproduce: 1. emerge perl-tk Actual Results: same error as above Expected Results: installed perl-tk Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.3.11 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs buildpkg ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline arts bonobo svga tcltk java mysql postgres X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla ldap cdr"
After reading: http://forums.gentoo.org/viewtopic.php?t=79032&highlight=perltk, I removed extutils-makemaker. perl-tk is now building.
I had the same problem and removing MakeMaker worked for me as well. emerge never complained or listed it as a blocking package which caused a bit of frustration untill I came across this solution. Weird.
Apparently I lied. I'm still getting the same error even after I unmerge ExtUtils-MakeMaker File-Spec Test-Simple. I also ran /usr/portage/dev-lang/perl/files/libperl_rebuilder but it runs forever in an infinite loop (I caught it because eachtime it builds the SpamAssassin module it pauses to ask if network test should be performed. After getting the same message three times spaced evenly in 3 hour time incriments I was pretty sure it would never finish building all my modules). Anyone know another way to fix this since removing ExtUtils and co. didn't do the job and emerging safe versions didn't do the job? Is there a better version of libperl_rebuilder I can run?
I am receiving this same error. I have tried emerging perl-tk-800.024 as well as using CPAN to try to install the module. CPAN gives a more complete error message: ERROR from evaluation of /root/.cpan/build/Tk-804.025_beta5/pTk/Makefile.PL: Can't locate object method "dir_target" via package "PACK002" at ./Makefile.PL line 231. MY::postamble('PACK002=HASH(0x84563e8)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 611 ExtUtils::MakeMaker::new('MM','PACK002=HASH(0x84563e8)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 53 ExtUtils::MakeMaker::WriteMakefile('VERSION',804.025,'XS_VERSION',804.025,'DEFINE','','INC','-I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include','NAME',...) called at /root/.cpan/build/Tk-804.025_beta5/Tk/MMutil.pm line 579 Tk::MMutil::TkExtMakefile('NAME','Tk::pTk','VERSION',804.025,'LINKTYPE','static','OBJECT','$(O_FILES)','macro',...) called at ./Makefile.PL line 8 require ./Makefile.PL called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 183 ExtUtils::MakeMaker::eval_in_x('PACK001=HASH(0x8144b4c)','/root/.cpan/build/Tk-804.025_beta5/pTk') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 170 eval {...} called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 170 ExtUtils::MakeMaker::eval_in_subdirs('PACK001=HASH(0x8144b4c)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 594 ExtUtils::MakeMaker::new('MM','PACK001=HASH(0x8144b4c)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 53 ExtUtils::MakeMaker::WriteMakefile('VERSION',804.025,'XS_VERSION',804.025,'DEFINE','','INC','-I/usr/X11R6/include','NAME',...) called at /root/.cpan/build/Tk-804.025_beta5/Tk/MMutil.pm line 579 Tk::MMutil::TkExtMakefile('VERSION',804.025,'EXE_FILES','ARRAY(0x83cd040)','NAME','Tk','DIR','ARRAY(0x814df48)','DISTNAME',...) called at Makefile.PL line 62 ExtUtils::MakeMaker::eval_in_x('PACK001=HASH(0x8144b4c)','/root/.cpan/build/Tk-804.025_beta5/pTk') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 170 eval {...} called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 170 ExtUtils::MakeMaker::eval_in_subdirs('PACK001=HASH(0x8144b4c)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 594 ExtUtils::MakeMaker::new('MM','PACK001=HASH(0x8144b4c)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 53 ExtUtils::MakeMaker::WriteMakefile('VERSION',804.025,'XS_VERSION',804.025,'DEFINE','','INC','-I/usr/X11R6/include','NAME',...) called at /root/.cpan/build/Tk-804.025_beta5/Tk/MMutil.pm line 579 Tk::MMutil::TkExtMakefile('VERSION',804.025,'EXE_FILES','ARRAY(0x83cd040)','NAME','Tk','DIR','ARRAY(0x814df48)','DISTNAME',...) called at Makefile.PL line 62 ExtUtils::MakeMaker::eval_in_subdirs('PACK001=HASH(0x8144b4c)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 594 ExtUtils::MakeMaker::new('MM','PACK001=HASH(0x8144b4c)') called at /usr/lib/perl5/vendor_perl/5.8.0/ExtUtils/MakeMaker.pm line 53 ExtUtils::MakeMaker::WriteMakefile('VERSION',804.025,'XS_VERSION',804.025,'DEFINE','','INC','-I/usr/X11R6/include','NAME',...) called at /root/.cpan/build/Tk-804.025_beta5/Tk/MMutil.pm line 579 Tk::MMutil::TkExtMakefile('VERSION',804.025,'EXE_FILES','ARRAY(0x83cd040)','NAME','Tk','DIR','ARRAY(0x814df48)','DISTNAME',...) called at Makefile.PL line 62 Thanks.
emerge -C ExtUtils-MakeMaker emerge perl-tk emerge ExtUtils-MakeMaker
I've no idea why but that worked for me. I unmerged ExtUtils before and tried emerging perl-tk and it still failed. It's working now though so I can't complain. Thanks
I was having problems with this building also. Seems it wasn't finding stuff in various headers when it was being built inside sandbox. For me the following allowed it to compile and install sucessfully. FEATURES="-sandbox" emerge perl-tk
None of these fixes worked for me, even building without sandbox. ERROR from evaluation of /var/tmp/portage/perl-tk-800.025/work/Tk800.025/pTk/Makefile.PL: Can't locate object method "dir_target" via package "PACK002" at ./Makefile.PL line 231. Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9) ================================================================= System uname: 2.6.0-test9 i686 Intel(R) Pentium(R) III Mobile CPU 1000MHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -finline-functions -falign-functions=32 -falign-loops=4 -falign-jumps=4 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config /var/qmail/control /var/qmail/alias" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -finline-functions -falign-functions=32 -falign-loops=4 -falign-jumps=4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs nostrip" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo java guile mysql X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt kde opengl mozilla gphoto2 cdr gtk2 alsa -motif tcltk -arts -svga innodb dvd snmp mmx sse nptl video_cards_radeon" sys-devel/libperl-5.8.2 * dev-lang/perl-5.8.2 * dev-perl/ExtUtils-MakeMaker-6.20 *
Found a message from Nick Ing-Simmons at http://www.faqchest.com/prgm/ptk-l/ptk-03/ptk-0311/ptk-031100/ptk03111604_09221.html that looks relevant, and adopted it.
tested this but I still get the same probpem when I build it using sandbox. It is fine if I disable sandbox. gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include -DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O2 -pipe -DVERSION=\"800.025\" -DXS_VERSION=\"800.025\" -fPIC "-I/usr/lib/perl5/5.8.0/i686-linux/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib_f.c In file included from Xlib_f.c:4: Xlib.h:4: error: syntax error before '*' token Xlib.h:5: error: syntax error before '*' token Xlib.h:6: error: syntax error before '*' token Xlib.h:7: error: syntax error before '*' token Xlib.h:8: error: syntax error before '*' token Xlib.h:9: error: syntax error before "_ANSI_ARGS_" Xlib.h:10: error: syntax error before "_ANSI_ARGS_" Xlib.h:11: error: syntax error before "XInternAtom" Xlib.h:12: error: syntax error before "XCreateColormap" Xlib.h:13: error: syntax error before "XCreatePixmapCursor" Xlib.h:14: error: syntax error before "XCreateGlyphCursor" Xlib.h:15: error: syntax error before "XLoadFont" Xlib.h:16: error: syntax error before "XCreateGC" Xlib.h:17: error: syntax error before "XGContextFromGC" Xlib.h:18: error: syntax error before "XCreateBitmapFromData" Xlib.h:19: error: syntax error before "XCreateWindow" Xlib.h:20: error: syntax error before '*' token Xlib.h:21: error: syntax error before '*' token Xlib.h:22: error: syntax error before "XKeycodeToKeysym" Xlib.h:23: error: syntax error before "XStringToKeysym" Xlib.h:24: error: syntax error before "XVisualIDFromVisual" Xlib.h:25: error: syntax error before "XRootWindow" Xlib.h:26: error: syntax error before '*' token Xlib.h:27: error: syntax error before "XDefaultColormap" Xlib.h:28: error: syntax error before "XSetErrorHandler" Xlib.h:29: error: syntax error before "_ANSI_ARGS_" tony@power mythtv $ emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test11) ================================================================= System uname: 2.6.0-test11 i686 AMD Athlon(TM) MP 1900+ Gentoo Base System version 1.4.3.10 distcc[14620] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/pub/portage/distfiles" FEATURES="autoaddcvs sandbox ccache buildpkg" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://www.fhh.opensource-mirror.de/gentoo.org/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/pub/portage/packages/power" PORTAGE_TMPDIR="/pub2/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/pub/portage_local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 avi crypt cups encode foomaticdb gif jpeg libwww mad mikmod mpeg ncurses nls pdflib png spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline aalib nas svga ggi tcltk mysql X sdl gpm tcpd pam ssl perl python imlib oggvorbis qt kde motif opengl mozilla cdr 3dnow acpi acpi4linux build cscope dv dvd emacs faad fbcon fbdev ffmpeg fftw freetype gtk2 imagemagick j-nojud j-nomsn j-nomuconf jack java javascript mmx moznocompose moznoirc moznomail nptl nvidia parse-clocks pic samba sse static tiff transcode unicode usb v4l videos xine xinerama xosd xvid -oss -apm -gnome -libg++ -quicktime -arts -esd -gtk" tony@power mythtv $
*** Bug 82708 has been marked as a duplicate of this bug. ***