[Pkg-tcltk-devel] Bug#461600: tclodbc: FTBFS: Not using -fPIC to make shared library.

Kurt Roeckx kurt at roeckx.be
Sat Jan 19 20:33:33 UTC 2008


Package: tclodbc
Version: 2.5-4
Severity: serious

Hi,

Your package is failing to build with the following error:
gcc -pipe -shared -o libtclodbc2.5.so tclobj.o tclodbc.o database.o statemnt.o strings.o encoding.o -L/usr/lib -lodbc -lodbcinst  -L/usr/lib -ltclstub8.4
/usr/bin/ld: tclobj.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
tclobj.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libtclodbc2.5.so] Error 1

When compiling for a shared library you need to make the library PIC.
Please see section 10.2 of the policy.


Kurt






More information about the Pkg-tcltk-devel mailing list