Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Damien V.

#1
20.7 Legacy Series / Compiling Dante server issu
September 10, 2020, 05:39:31 PM
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