Compiling Dante server issu

Started by Damien V., September 10, 2020, 05:39:31 PM

Previous topic - Next topic
Hello,

I use OPNSense with my own Dante Sockd's integration.
For this, i need to compile ports /usr/ports/net/dante on OPNSense/hardenedBSD. It worked on OPNSense 20.1 but i have an error on 20.7 :
ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in addressmatch.o
>>> referenced by addressmatch.c:499 (../lib/addressmatch.c:499)
>>>               addressmatch.o:(addrmatch)

I've tried with -fPIC and -Wl,-z,notext but sockd coredump.

Compiling works on Freebsd 12.1 or Linux without error.

Do you have an idea of solution, please ?

Damien