Actions
Support #12099
closedfPIC option for location independent code does not solve the relocation error during linking
Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/30/2023
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I am installing Wt but it gives relocation error about Pango. I used -fPIC for location independent code while installing with cmake but the error continues. Am I missing something?
ccmake -DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC ../
sudo make install
Updated by Lid Ned about 1 year ago
The output is the following:
[ 48%] Linking CXX shared library libwt.so
/usr/bin/ld: /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-identity.o): warning: relocation against `.gomp_critical_user_GM_IdentityImage' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libGraphicsMagick.a(libGraphicsMagick_la-constitute.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/wt.dir/build.make:5892: src/libwt.so.4.10.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:1663: src/CMakeFiles/wt.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Updated by Lid Ned about 1 year ago
I cannot delete my post. If there is a way I can delete it because I found a solution from another forum. It is about compiling GraphicsMagick with -fIPC not Wt.
Updated by Matthias Van Ceulebroeck about 1 year ago
- Tracker changed from Bug to Support
- Status changed from New to Rejected
No worries, I'll just mark it as rejected, without anything else being done for it, since it's not a Wt issue.
Actions