[MDEV-22978] FreeBSD build issue with pthread_np Created: 2020-06-22  Updated: 2022-04-25  Resolved: 2022-04-25

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.5.3, 10.5
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Bernard Spil Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Environment:

FreeBSD 12.1
clang 8.0.1
cmake 3.17.2



 Description   

In `include/my_pthread` there is
https://github.com/MariaDB/server/blob/10.5/include/my_pthread.h#L147

#include <pthread.h>

that won't work on FreeBSD, the include is pthread_np.h
https://svnweb.freebsd.org/base/releng/12.1/include/pthread.h
https://svnweb.freebsd.org/base/releng/12.1/include/pthread_np.h



 Comments   
Comment by Daniel Black [ 2020-06-23 ]

noted this one yesterday - https://github.com/MariaDB/server/pull/1597

Was the the build issue with the compile of perf schema missing the definition of pthread_getthreadid_np? Or something else?

Comment by Bernard Spil [ 2020-06-24 ]

I messed up the Issues I created. The patch in https://github.com/MariaDB/server/pull/1597 most likely fixes this.

I'm now trying to build 10.5.4 with this patch. Will report back / close here if that patch is sufficient.

Comment by Marko Mäkelä [ 2022-03-22 ]

Does the build still fail? At least 10.6 seems to compile on FreeBSD 13 just fine.

Generated at Thu Feb 08 09:18:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.