+++ This bug was initially created as a clone of Bug #248845 +++ pkg-fallout reported duplicate symbols in the link stage for security/openvpn-auth-ldap, such as: --- openvpn-auth-ldap.so --- ld: error: duplicate symbol: objc_method_cache_version >>> defined at auth-ldap.m >>> auth-ldap.o:(objc_method_cache_version) >>> defined at TRConfig.m >>> TRConfig.o:(.bss+0x30) in archive ./libauth-ldap.a ld: error: duplicate symbol: objc_method_cache_version >>> defined at auth-ldap.m >>> auth-ldap.o:(objc_method_cache_version) >>> defined at TRAuthLDAPConfig.m >>> TRAuthLDAPConfig.o:(.bss+0x48) in archive ./libauth-ldap.a --- testplugin --- ld: error: duplicate symbol: objc_method_cache_version >>> defined at auth-ldap.m >>> auth-ldap.o:(objc_method_cache_version) >>> defined at TRAuthLDAPConfig.m >>> TRAuthLDAPConfig.o:(.bss+0x48) in archive ./libauth-ldap.a Since openvpn-auth-ldap is old code and Objective-C (libobjc2) may need more fixing, for the time being, add CFLAGS+=-fcommon to openvpn-auth-ldap.
A commit references this bug: Author: mandree Date: Mon Aug 24 17:40:54 UTC 2020 New revision: 546102 URL: https://svnweb.freebsd.org/changeset/ports/546102 Log: security/openvpn-auth-ldap: add -fcommon to future-proof libobjc2 may need some love, but I'm not too acquainted with Objective-C to do that... so limit my effort to my own port PR: 248885 Reported by: pkg-fallout@ on FreeBSD -head Changes: head/security/openvpn-auth-ldap/Makefile