Hello everyone. 
I am having some problems compiling Perl 5.20. 
I am using LFS version SVN-20140815. 
It will not build with the external BZOP2 and Zlib libraries. I can compile 
fine if I build the internal BZIP 2 and Zlib libraries. 

Here are the last lines of output from Make. 
If you need more info, I can create a log of the entire make process. 


installing ppport.h for cpan/DB_File 
installing ppport.h for cpan/IPC-SysV 
installing ppport.h for cpan/Scalar-List-Utils 
installing ppport.h for cpan/Time-HiRes 
installing ppport.h for cpan/Win32API-File 
installing ppport.h for dist/PathTools 
removing temporary file PPPort.pm 
removing temporary file ppport.h 
LD_LIBRARY_PATH=/sources/perl\-5.20.0 ./miniperl -Ilib make_ext.pl 
lib/auto/B/B.so MAKE=make LIBPERL_A=libperl.so LINKTYPE=dynamic 
Making B (all) 

Running Makefile.PL in ext/B 
../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none 
INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.so LINKTYPE=dynamic 
Generating a Unix-style Makefile 
Writing Makefile for B 
make[1]: Entering directory '/sources/perl-5.20.0/ext/B' 
make[1]: Leaving directory '/sources/perl-5.20.0/ext/B' 
Making all in ext/B 
make all PERL_CORE=1 LIBPERL_A=libperl.so LINKTYPE=dynamic 
make[1]: Entering directory '/sources/perl-5.20.0/ext/B' 
cp O.pm ../../lib/O.pm 
cp B.pm ../../lib/B.pm 
cp B/Showlex.pm ../../lib/B/Showlex.pm 
cp B/Concise.pm ../../lib/B/Concise.pm 
cp B/Xref.pm ../../lib/B/Xref.pm 
cp B/Terse.pm ../../lib/B/Terse.pm 
Running Mkbootstrap for B () 
chmod 644 B.bs 
../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp -typemap 
../../lib/ExtUtils/typemap -typemap typemap B.xs > B.xsc && mv B.xsc B.c 
cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.48\" 
-DXS_VERSION=\"1.48\" -fPIC "-I../.." B.c 
rm -f ../../lib/auto/B/B.so 
cc -shared -O2 -L/usr/local/lib -fstack-protector B.o -o ../../lib/auto/B/B.so 
\ 
\ 

chmod 755 ../../lib/auto/B/B.so 
/sources/perl-5.20.0/ext/B/../../miniperl "-I../../lib" "-I../../lib" 
-MExtUtils::Command::MM -e 'cp_nonempty' -- B.bs ../../lib/auto/B/B.bs 644 
make[1]: Leaving directory '/sources/perl-5.20.0/ext/B' 
LD_LIBRARY_PATH=/sources/perl\-5.20.0 ./miniperl -Ilib make_ext.pl 
lib/auto/Compress/Raw/Bzip2/Bzip2.so MAKE=make LIBPERL_A=libperl.so 
LINKTYPE=dynamic 
Making Compress::Raw::Bzip2 (all) 

Running Makefile.PL in cpan/Compress-Raw-Bzip2 
../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none 
INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.so LINKTYPE=dynamic 
Warning: -Lbzip2-src changed to 
-L/sources/perl-5.20.0/cpan/Compress-Raw-Bzip2/bzip2-src 
Generating a Unix-style Makefile 
Writing Makefile for Compress::Raw::Bzip2 
make[1]: Entering directory '/sources/perl-5.20.0/cpan/Compress-Raw-Bzip2' 
make[1]: Leaving directory '/sources/perl-5.20.0/cpan/Compress-Raw-Bzip2' 
Making all in cpan/Compress-Raw-Bzip2 
make all PERL_CORE=1 LIBPERL_A=libperl.so LINKTYPE=dynamic 
make[1]: Entering directory '/sources/perl-5.20.0/cpan/Compress-Raw-Bzip2' 
cp lib/Compress/Raw/Bzip2.pm ../../lib/Compress/Raw/Bzip2.pm 
Running Mkbootstrap for Compress::Raw::Bzip2 () 
chmod 644 Bzip2.bs 
../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp -typemap 
../../lib/ExtUtils/typemap -typemap typemap Bzip2.xs > Bzip2.xsc && mv 
Bzip2.xsc Bzip2.c 
cc -c -I. -fwrapv -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 
-DVERSION=\"2.064\" -DXS_VERSION=\"2.064\" -fPIC "-I../.." -DBZ_NO_STDIO 
Bzip2.c 
rm -f ../../lib/auto/Compress/Raw/Bzip2/Bzip2.so 
cc -shared -O2 -L/usr/local/lib -fstack-protector Bzip2.o -o 
../../lib/auto/Compress/Raw/Bzip2/Bzip2.so \ 
-L/sources/perl-5.20.0/cpan/Compress-Raw-Bzip2/bzip2-src -lbz2 \ 

/usr/bin/ld: 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib64/libbz2.a(bzlib.o):
 relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a 
shared object; recompile with -fPIC 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib64/libbz2.a: error 
adding symbols: Bad value 
collect2: error: ld returned 1 exit status 
Makefile:480: recipe for target '../../lib/auto/Compress/Raw/Bzip2/Bzip2.so' 
failed 
make[1]: *** [../../lib/auto/Compress/Raw/Bzip2/Bzip2.so] Error 1 
make[1]: Leaving directory '/sources/perl-5.20.0/cpan/Compress-Raw-Bzip2' 
Unsuccessful make(cpan/Compress-Raw-Bzip2): code=512 at make_ext.pl line 561. 
makefile:592: recipe for target 'lib/auto/Compress/Raw/Bzip2/Bzip2.so' failed 
make: *** [lib/auto/Compress/Raw/Bzip2/Bzip2.so] Error 25 
Thank you, 

Michael F. Trombley Jr. 
[email protected] 


-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to