Created attachment 160267 [details] net-p2p-namecoin.diff
Created attachment 160276 [details] Cleaner fix This should be cleaner: On FreeBSD strlcat and strcpy exist so you should be using the native libc versions instead of redefining your own. FORTIFY_SOURCE depends on using the system headers so this change fixes that case too.
Created attachment 160277 [details] fix with support for old FreeBSD versions. We probably shouldn't care about EOL'd versions but for correctness we can consider the version check for strlcat/strcpy.
Thanks guys! I will review and confirm within the next two days.
Created attachment 160427 [details] svn diff to 0.3.80_1,1 Thanks guys! Patch looks and runs great. Included latest one as-is here, plus bumped PORTREVISION in the Makefile. # svn status M Makefile A files/patch-src__strlcpy.h
build-tested on cur-amd64, 10.2a, 10.2i, 9.3a.
A commit references this bug: Author: pi Date: Wed Sep 2 05:23:36 UTC 2015 New revision: 395821 URL: https://svnweb.freebsd.org/changeset/ports/395821 Log: net-p2p/namecoin: fix for upcoming FORTIFY_SOURCE On FreeBSD strlcat and strcpy exist so you should be using the native libc versions instead of redefining your own. FORTIFY_SOURCE depends on using the system headers so this change fixes that case too. PR: 202603 Submitted by: pfg, op Approved by: milios@ccsys.com (maintainer) Changes: head/net-p2p/namecoin/Makefile head/net-p2p/namecoin/files/patch-src__strlcpy.h
Committed, thanks.