On Wednesday 20 October 2004 03:23, Philipp Thomas wrote:
Hilary L Hertzoff
[19 Oct 2004 08:25:42 -0400]: cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"0.012\" -DXS_VERSION=\"0.012\" -o codec/RTjpeg.o
This call is missing the -fPIC. You'd have to check the Makefile to see why this is compiled without and correct that. On x86-64 code for a shared library needs to be compiled as position independent code. i386 can do without (though this has serious drawbacks), which is why it's sometimes missing.
And that's the problem I've tried running "perl Makefile.pl -fPIC" on both the main makefile and the subfile for RTjpeg and a line with CCCDLFLAGS = -fPIC appears in the RTjpeg makefile, but when I run it I still get the exact same error. Should I be using -fPIC someplace else? I can email the relevant makefile, if that would help. Thanks Hilary