Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Linker error when compiling on linux

$
0
0

@AskBre wrote:

Up to date arch linux with of_0.9.3, getting linker errors when compiling projects:

'/usr/bin/ld: /home/user/Development/of_v0.9.3_linux64_release/libs/kiss/lib/linux64/libkiss.a(kiss_fftr.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/user/Development/of_v0.9.3_linux64_release/libs/tess2/lib/linux64/libtess2.a(tess.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/user/Development/of_v0.9.3_linux64_release/libs/tess2/lib/linux64/libtess2.a(mesh.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/user/Development/of_v0.9.3_linux64_release/libs/tess2/lib/linux64/libtess2.a(sweep.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/user/Development/of_v0.9.3_linux64_release/libs/tess2/lib/linux64/libtess2.a(dict.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

Seems to have come out of the blue, didn't happen just some days ago, but haven't done any big changes in the system. Had a really similar problem some months back, but solved it after doing a complete reinstall of the system. Don't want to do that again...

Any takers? I tried adding CFLAGS += -fPIC to config.linux.common.mk, but to no avail. Is it possible/correct to recompile the libs with -fPIC using apothecary? Or recompile so the linker finds the position (the P in PIC, I guess) correctly?

Reading material:


http://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.html

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles