LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-29-2016, 09:19 AM   #1
sfzombie13
Member
 
Registered: Dec 2003
Location: wv
Distribution: slackware, lfs, kali, pentoo, centos
Posts: 168

Rep: Reputation: 18
error with perl 6.41.1 error on make lfs 7.9


i am building my second lfs and it has gone flawlessly this time. the goal is to make a custom distro starting from scratch. when i hit 6.41 installing perl, i got an error on the test, so i did what i had been doing, rm the directory and started over. this time i noticed an error after make that i had missed. the output is here:
Quote:
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../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/5.3.0/../../../../lib64/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:483: 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.22.1/cpan/Compress-Raw-Bzip2'
make[1]: Entering directory '/sources/perl-5.22.1/cpan/Compress-Raw-Bzip2'
rm -f ../../lib/auto/Compress/Raw/Bzip2/Bzip2.so
cc -shared -O2 -L/usr/local/lib -fstack-protector-strong Bzip2.o -o ../../lib/auto/Compress/Raw/Bzip2/Bzip2.so \
-L/sources/perl-5.22.1/cpan/Compress-Raw-Bzip2/bzip2-src -lbz2 \

/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../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/5.3.0/../../../../lib64/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:483: 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.22.1/cpan/Compress-Raw-Bzip2'
Unsuccessful make(cpan/Compress-Raw-Bzip2): code=512 at make_ext.pl line 574.
makefile:586: recipe for target 'lib/auto/Compress/Raw/Bzip2/Bzip2.so' failed
make: *** [lib/auto/Compress/Raw/Bzip2/Bzip2.so] Error 25
it says to recompile with - fPIC, but when i added that it said, "make: *** No rule to make target 'PIC'. Stop."
i am going to look into that further now. during my research so far i found someone asked what the output of env was, but when i looked at it, it nothing jumped out at me, but then i didn't have any idea what to look for. here it is if it will help:
Quote:
TERM=xterm
OLDPWD=/sources
BUILD_BZIP2=0
BUILD_ZLIB=False
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
PWD=/sources/perl-5.22.1
PS1=\u:\w\$
HOME=/root
SHLVL=1
_=/tools/bin/env
any help is greatly appreciated.
 
Old 08-29-2016, 01:42 PM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
You are missing /usr/lib/libbz2.so, which should've been installed by bzip2.
 
1 members found this post helpful.
Old 08-29-2016, 10:12 PM   #3
sfzombie13
Member
 
Registered: Dec 2003
Location: wv
Distribution: slackware, lfs, kali, pentoo, centos
Posts: 168

Original Poster
Rep: Reputation: 18
i'm not sure how to fix that. in windows, i would unistall and reinstall. i am not sure what the equivilant here is. i'll give it a go in the morning. thanx for pointing out the problem. now i have a direction to go with it.
 
Old 08-30-2016, 02:30 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Just redo http://www.linuxfromscratch.org/lfs/...r06/bzip2.html

maybe something went wrong when building bzip, as simple as that.
 
Old 08-30-2016, 07:56 AM   #5
sfzombie13
Member
 
Registered: Dec 2003
Location: wv
Distribution: slackware, lfs, kali, pentoo, centos
Posts: 168

Original Poster
Rep: Reputation: 18
i have been doing that and crossing my fingers. so far, it has worked great. i did skip the perl and continue installing. there were only two installs that depended on perl, but then i had problems with the kernel. it kept giving me an error that said, command not found for bc. when i tried bc --help, it gave me a list of switches. doing bc -v failed, so i tried --version and it worked. so i updated the kbuild script by adding a dash and spelling it out, but it still failed. i have compiled lots of kernels so will work that out this weekend. i am going to try this one again, if it fails, i'll just redo the whole thing from scratch on my i7 laptop this weekend. thanx for the help.
 
Old 08-30-2016, 09:06 AM   #6
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Don't skip anything. You are asking for trouble (and you got it).
 
Old 09-03-2016, 02:17 PM   #7
sfzombie13
Member
 
Registered: Dec 2003
Location: wv
Distribution: slackware, lfs, kali, pentoo, centos
Posts: 168

Original Poster
Rep: Reputation: 18
well, marking this one closed. blew the install away and started over on the i7 laptop. having other issues which will go in another thread. this time with a sanity check after gcc install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] make error in lfs Louise.Yosre Linux From Scratch 3 07-26-2016 09:12 AM
[SOLVED] LFS make error yogender Linux From Scratch 9 07-20-2015 11:28 PM
[SOLVED] perl make test error lfs 6.5 aahiqmir Linux From Scratch 2 04-07-2010 07:22 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM
Error compiling Perl (making LFS system 3.3)... MatMan5959 Linux - Software 0 06-02-2002 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration