Apache OpenOffice (AOO) Bugzilla – Issue 40521
linux sparc needs -fPIC not -fpic for building jpeg
Last modified: 2005-01-20 22:49:41 UTC
I suspect the internal jpeg is compiled with -fpic but my solenv/inc/unxlngs.mk specified -fPIC. linking libjpeg into svtools linux sparc SRC680_m71: unxlngs.pro/obj/memempty.o -ljpeglib -ltk680ls -lvcl680ls -lsvl680ls -lsot680ls -lutl680ls -ltl680ls -lucbhelper3gcc3 -lcomphelp4gcc3 -luno_cppuhelpergcc3 -luno_cppu -lvos3gcc3 -luno_sal -licuuc -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc -lstdc++ /home/jim/ooo/solver/680/unxlngs.pro/lib/libjpeglib.a(jcapimin.o)(.text+0x104): In function `jpeg_CreateCompress': : relocation truncated to fit: R_SPARC_GOT13 .LLC0 /home/jim/ooo/solver/680/unxlngs.pro/lib/libjpeglib.a(jchuff.o)(.text+0x2c0): In function `start_pass_huff': Some google searching suggests that GOT13 is caused by compiling object files with -fpic when should be -fPIC. Workaround for svtools is link with SYSTEM_JPEG=YES
it was eductaional to see this message, but it was probably caused during my testing of solenv/inc/unxlngs.mk changes to align more closely with unxlngsi6.mk. this problem has gone away with my latest rebuild version of unxlngs.mk using -fPIC. so it will be marked invalid.
-fPIC is needed but the issue is invalid, closed.