Bug 216419 - www/tomcat-native: /usr/local/lib/libtcnative-1.so.0.2.10: Undefined symbol "pthread_threadid_np"
Summary: www/tomcat-native: /usr/local/lib/libtcnative-1.so.0.2.10: Undefined symbol "...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-23 23:50 UTC by Vladimir Druzenko
Modified: 2017-01-24 10:23 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ale)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Druzenko freebsd_committer freebsd_triage 2017-01-23 23:50:46 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-01-24 10:23:35 UTC
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