I forgot to do the last steps for the BZip2 installation. 
The /usr/lib/libbz2.so sym link was not created. 
I reinstalled BZip2 and then recompiled Perl 5.20. 
It worked perfectly. 
Thanks for the help! 
I never thought to check the BZip2 settings. 
Mike 


----- Original Message -----

From: "Armin K." <[email protected]> 
To: "LFS Support List" <[email protected]> 
Sent: Monday, August 18, 2014 2:17:03 PM 
Subject: Re: [lfs-support] LFS SVN-20140815 Perl 5.20 build error 

On 08/18/2014 08:07 PM, Michael F. Trombley jr. wrote: 

> /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 

It shouldn't try to link to static library in the first place. You must 
have done something wrong during the libbz2.so symlink creation. What 
does "file /usr/lib/libbz2.so" say? 

-- 
Note: My last name is not Krejzi. 


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

-- 
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