Recent

Author Topic: Apache module raspberry pi  (Read 511 times)

mikerabat

  • New Member
  • *
  • Posts: 49
Apache module raspberry pi
« on: July 31, 2024, 07:36:37 pm »
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...

 

TinyPortal © 2005-2018