Apache module raspberry pi lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- mikerabat ยท 2024-07-31 17:36 Dear all, I tried to create an apache module for a raspberry pi using FPC (based on lz_FpWeb) and the CodeTyphon IDE that uses FPC.... The project compiles fine till the linker jumps in with the following error: Warning: linker: /usr/bin/ld: /home/pi/fronius/ApacheWebModule/FPC/lib/aarch64-linux/mod_fronius.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `fronius_module' which may bind externally can not be used when making a shared object; recompile with -fPIC Error: /home/pi/fronius/ApacheWebModule/FPC/lib/aarch64-linux/mod_fronius.o: in function `P$MOD_FRONIUS_$$_main': Error: /home/pi/fronius/ApacheWebModule/FPC//mod_fronius.ppr:37:(.text .n_p$mod_fronius_$$_main+0xa4): dangerous relocation: unsupported relocation mod_fronius.ppr(42,0) Error: Error while linking I have no idea what to do here... actually I also added the option -fPIC as suggested in the warning and did a complete rebuild with no effect. Anyone has actually a clue what that error could mean? Basically I could track it down to the access on the shared modules exported record 'module' -> aka the apache module identifier record... When the "application" object tries to fill it the linker starts throwing the errors...