[lfs-support] Error ld on building bzip2 Chapter 6.18 LFS v.7.10

Sofyan Sugianto sofyanartem at gmail.com
Mon Jan 30 01:19:13 PST 2017


Hello, today im trying to build LFS, but got error on chapter 6.18 LFS 7.10
is this error harmless for continue to the next step? please help me
what should i do if this harmful to continue

root:/sources/bzip2-1.0.6# make -f Makefile-libbz2_so
gcc -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6
blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o
bzlib.o
/usr/bin/ld: blocksort.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: compress.o: relocation R_X86_64_32 against
`.rodata.str1.8' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: decompress.o: relocation R_X86_64_32S against `.rodata'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: bzlib.o: relocation R_X86_64_32S against symbol
`BZ2_crc32Table' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile-libbz2_so:38: all] Error 1


More information about the lfs-support mailing list