Must be pthread_getthreadid_np instead pthread_threadid_np in files/patch-src_ssl.c: --- www/tomcat-native/files/patch-src_ssl.c.orig +++ www/tomcat-native/files/patch-src_ssl.c @@ -5,7 +5,7 @@ pthread_threadid_np(NULL, &tid); return (unsigned long)tid; +#elif defined(__FreeBSD__) -+ return (unsigned long)pthread_threadid_np(); ++ return (unsigned long)pthread_getthreadid_np(); #elif defined(__linux__) return (unsigned long)syscall(SYS_gettid); #else
A commit references this bug: Author: ale Date: Tue Jan 24 10:22:39 UTC 2017 New revision: 432320 URL: https://svnweb.freebsd.org/changeset/ports/432320 Log: Use correct pthread function. PR: 216419 Submitted by: vvd@unislabs.com Changes: head/www/tomcat-native/Makefile head/www/tomcat-native/files/patch-src_ssl.c