ark4.0 has asked for the wisdom of the Perl Monks concerning the following question:

I've tried google search, but invain. I am trying to build perl 5.6.1 on a solaris 8 machine. The configure runs fine but the make pukes, heres the output from the make. Any help is appreciated
root@hostname:home/znaqvi/perl-5.6.1> make make: Warning: Both `makefile' and `Makefile' exist AutoSplitting perl library ./miniperl -Ilib -e 'use AutoSplit; \ autosplit_lib_modules(@ARGV)' lib/*.pm lib/*/*.pm ./miniperl minimod.pl > minimod.tmp sh mv-if-diff minimod.tmp lib/ExtUtils/Miniperl.pm File lib/ExtUtils/Miniperl.pm not changed. sh writemain lib/auto/DynaLoader/DynaLoader.a > writemain.tmp sh mv-if-diff writemain.tmp perlmain.c File perlmain.c not changed. Making DynaLoader (static) Skip ../../lib/XSLoader.pm (unchanged) Skip ../../lib/DynaLoader.pm (unchanged) Making utilities Making x2p stuff make: Warning: Both `makefile' and `Makefile' exist Current working directory /u01/home/znaqvi/perl-5.6.1/x2p make: Fatal error: Don't know how to make target `<built-in>' Current working directory /u01/home/znaqvi/perl-5.6.1/x2p *** Error code 1 make: Fatal error: Command failed for target `translators'

Replies are listed 'Best First'.
Re: building perl 5.6.1 on solaris 8
by cbrandtbuffalo (Deacon) on Sep 12, 2005 at 23:14 UTC
    As mentioned above, the compiler is important. You can compile it with the GNU compiler or the Sun compiler, but you must decide which one and make sure the other isn't in your path. There are some tips on setting this up in the INSTALL doc for solaris included in the distribution. Read through that install doc and see if that helps. Good luck.
      I am using gcc. I read the INSTALL doc and will do it again to amke sure I have not missed anything.
        Read the INSTALL file and the README.solaris files for the upteenth time. Following are the changes I make in the configure
        > sh Configure -Dcc='gcc -B/usr/ccs/bin/'

        * I change the LD_LIBRARY_PATH to exclude the /lib and /usr/lib, as recommended in README.solaris
        * do not use the malloc that comes with perl5,
        * I keep the /usr/bin/perl (Sun installed) and install the new version under /usr/local/bin.
        * using Sun make, as, and ld.
        * gcc version 3.3.2, Solaris 8 (sparc), perl 5.6.1
        * Configure runs fine, as well as the make depend it runs.
        * make fails first on identifying <built-in> in the makefile as well as <command-line>. I remove them both and re-run the make, still get the following error

        Making x2p stuff make: Warning: Both `makefile' and `Makefile' exist Current working directory /u01/home/znaqvi/perl-5.6.1/x2p make: Fatal error: Don't know how to make target `<built-in>' Current working directory /u01/home/znaqvi/perl-5.6.1/x2p *** Error code 1 make: Fatal error: Command failed for target `translators'
Re: building perl 5.6.1 on solaris 8
by kwaping (Priest) on Sep 12, 2005 at 22:49 UTC
    What compiler are you using?