Subject: | fails to link, missing -fPIC |
The module doesn't compile:
cerebro /localvol/root/.cpan/build/Quota-1.5.0# make
gcc-3.4 -c -ggdb -fno-strict-aliasing -pipe -I/opt/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O4 -march=opteron -mtune=opteron -funroll-loops -fno-strict-aliasing -DVERSION=\"1.5.0\" -DXS_VERSION=\"1.5.0\" -fPIC "-I/opt/perl/lib/perl5/CORE" Quota.c
gcc-3.4 -c -ggdb -fno-strict-aliasing -pipe -I/opt/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O4 -march=opteron -mtune=opteron -funroll-loops -fno-strict-aliasing -DVERSION=\"1.5.0\" -DXS_VERSION=\"1.5.0\" -fPIC "-I/opt/perl/lib/perl5/CORE" stdio_wrap.c
gcc-3.4 -c -ggdb -fno-strict-aliasing -pipe -I/opt/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O4 -march=opteron -mtune=opteron -funroll-loops -fno-strict-aliasing linuxapi.c
Running Mkbootstrap for Quota ()
chmod 644 Quota.bs
rm -f blib/arch/auto/Quota/Quota.so
LD_RUN_PATH="" gcc-3.4 -shared -L/opt/perl/lib -L/opt/lib -L/usr/local/lib Quota.o stdio_wrap.o linuxapi.o -o blib/arch/auto/Quota/Quota.so -lrpcsvc
/usr/bin/ld: linuxapi.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
linuxapi.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
most probably linuxapi misses the proper cccdlflags