[MDEV-12304] TokuDB doesn't compile on Debian GNU/kFreeBSD Created: 2017-03-20  Updated: 2017-03-20

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - TokuDB
Affects Version/s: 10.1.22
Fix Version/s: 10.1

Type: Bug Priority: Minor
Reporter: Ondřej Surý (Inactive) Assignee: Vicențiu Ciorbaru
Resolution: Unresolved Votes: 0
Labels: Debian

Issue Links:
Relates
relates to MDEV-10983 TokuDB does not compile on OS X 10.12 Closed

 Description   

This is similar to MDEV-10983, a compilation fails with:

/«PKGBUILDDIR»/storage/tokudb/PerconaFT/portability/portability.cc:119:3: error: #error "no implementation of gettid available"
 # error "no implementation of gettid available"
   ^~~~~

A full build log can be found here: https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.1&arch=kfreebsd-amd64&ver=10.1.22-1&stamp=1490002865&raw=0



 Comments   
Comment by Ondřej Surý (Inactive) [ 2017-03-20 ]

JFTR the kFreeBSD has GLIBC (so _GLIBC_ is defined), but it has FreeBSD kernel, so not all syscalls are available.

The platform can be detected with _FreeBSD_kernel_ macro. Usually you would use:

#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #do FreeBSD stuff
#endif

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