Details
- 
    
Bug
 - 
    Status: Closed (View Workflow)
 - 
    
Blocker
 - 
    Resolution: Fixed
 - 
    10.2.11
 - 
    None
 - 
    Fedora Rawhide
 
Description
Hello, I tried to pack the new 10.2.11 into Fedora.
Everything's fine but TokuDB, which won't compile anymore.
The Cmake won't recognize it as usable: "Performing Test TOKUDB_OK - Failed"
I think the issue lies within this commit: 7f1900705b
https://github.com/MariaDB/server/commit/7f1900705b
Within file "storage/tokudb/CMakeLists.txt"
The new code there is:
					# tokudb requires F_NOCACHE, O_DIRECT, and designated initializers
			 | 
		
					CHECK_CXX_SOURCE_COMPILES(
			 | 
		
					"
			 | 
		
					#include <fcntl.h>
			 | 
		
					struct a {int b; int c; };  | 
		
					struct a d = { .b=1, .c=2 };  | 
		
					int main() { return F_NOCACHE + O_DIRECT; }  | 
		
					" TOKUDB_OK)
			 | 
		
While the 'O_DIRECT' can be set
					 The O_DIRECT, O_NOATIME, O_PATH, and  O_TMPFILE  flags  are  Linux-spe‐cific. One must define _GNU_SOURCE to obtain their definitions
			 | 
		
The 'F_NOCACHE' is Darwin Kernel (Mac OS X) specific and not present in Fedora.
Attachments
Issue Links
- relates to
 - 
                    
MDEV-14524 TokuDB is unable to be built on Linux
-         
 - Closed
 
 -