The program fails to run with any plugins enabled: dlerror(): /usr/local/lib/dhcprelya_option82_plugin.so: Undefined symbol "debug" dhcprelya: Can't open plugin: /usr/local/lib/dhcprelya_option82_plugin.so Without plugins all works fine. FreeBSD version: 12.1-RELEASE-p8 GENERIC amd64. The problem was reproduced on several systems with 12.1 version, but with FreeBSD 11.3 plugins work good.
Created attachment 217817 [details] Fix run-time error for plugins I don't have an idea why lld(1) inserts symbol 'debug' into SO unit. I did not find any way to prevent it. But this dirty hack fixed this run-time error.
With this patch all work, thanks.
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/193255657
A commit references this bug: Author: amdmi3 Date: Tue Oct 20 14:14:20 UTC 2020 New revision: 552824 URL: https://svnweb.freebsd.org/changeset/ports/552824 Log: - Fix runtime link problems with plugins PR: 249132 Submitted by: sem@semmy.ru (maintainer) Reported by: olexander.v.melnyk@gmail.com MFH: 2020Q4 Changes: head/net/dhcprelya/Makefile
A commit references this bug: Author: amdmi3 Date: Tue Oct 20 19:43:24 UTC 2020 New revision: 552846 URL: https://svnweb.freebsd.org/changeset/ports/552846 Log: MFH: r552824 - Fix runtime link problems with plugins PR: 249132 Submitted by: sem@semmy.ru (maintainer) Reported by: olexander.v.melnyk@gmail.com Approved by: ports-secteam (joneum) Changes: _U branches/2020Q4/ branches/2020Q4/net/dhcprelya/Makefile