| Summary: | www/tomcat-native: /usr/local/lib/libtcnative-1.so.0.2.10: Undefined symbol "pthread_threadid_np" | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Vladimir Druzenko <vvd> |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed FIXED | ||
| Severity: | Affects Many People | Flags: | bugzilla:
maintainer-feedback?
(ale) |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
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 |
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