Tag Archives: libz.a: could not read symbols: Bad value

Compilation error during the installation of htslib library, libz. A: could not read symbols: bad value

Error: /usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value

Method: recompile bzip2 with the parameter -fPIC

-fPIC
Position independant code, needed for shared libraries.