Trying perl-5.12.0 with the current LFS Chapter 5 instructions, I get
the errors below. I tried with gcc-4.5.0 and then backed off to LFS-6.5
and got exactly the same errors.
I used the commands:
cd perl-5.12.0
sh Configure -des -Dprefix=/tools \
-Dstatic_ext='Data/Dumper Fcntl IO POSIX'
make perl utilities ext/Errno/pm_to_blib
The problem seems to be using the -Dstatic_ext='Data/Dumper Fcntl IO
POSIX' option. If I omit POSIX, the build completes. I don't recall
the background of that switch. Does anyone remember the issues here?
The -Dstatic_ext was first added on 11/13/03 with the comment
"streamlined build commands for Perl's Chapter 5 static extensions." but
it seems to go back even further.
Note: Te sed in Chapter 6 does not seem to be required any more.
-- Bruce
Running Makefile.PL in ext/POSIX
../../miniperl Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none
INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static
CCCDLFLAGS=
Can't locate Cwd.pm in @INC (@INC contains: ../../lib) at
../../lib/File/Path.pm line 6.
BEGIN failed--compilation aborted at ../../lib/File/Path.pm line 6.
Compilation failed in require at ../../lib/ExtUtils/MakeMaker.pm line 11.
BEGIN failed--compilation aborted at ../../lib/ExtUtils/MakeMaker.pm
line 11.
Compilation failed in require at Makefile.PL line 5.
BEGIN failed--compilation aborted at Makefile.PL line 5.
512 from ext/POSIX's Makefile.PL at make_ext.pl line 390.
Warning: No Makefile!
make[1]: Entering directory `/mnt/lfs/sources/perl-5.12.0/ext/POSIX'
make[1]: *** No rule to make target `config'. Stop.
make[1]: Leaving directory `/mnt/lfs/sources/perl-5.12.0/ext/POSIX'
make config PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static
CCCDLFLAGS= failed, continuing anyway...
Making all in ext/POSIX
make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
make[1]: Entering directory `/mnt/lfs/sources/perl-5.12.0/ext/POSIX'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/mnt/lfs/sources/perl-5.12.0/ext/POSIX'
Unsuccessful make(ext/POSIX): code=512 at make_ext.pl line 449.
make: *** [lib/auto/POSIX/POSIX.a] Error 2
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page