[MDEV-7045] [PATCH] TokuDB compilation error with glibc 2.20 Created: 2014-11-08  Updated: 2014-11-11  Resolved: 2014-11-11

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - TokuDB
Affects Version/s: 5.5.40, 10.0.14
Fix Version/s: 5.5.41, 10.0.15

Type: Bug Priority: Major
Reporter: Heinz Wiesinger Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: upstream
Environment:

Slackware-current, glibc 2.20, gcc 4.8.3


Attachments: File mariadb.glibc.2.20.diff    

 Description   

When compiling MariaDB 10.0.14 with TokuDB enabled against glibc 2.20, there is a compilation warning (which is treated as an error):

[ 77%] Building CXX object storage/tokudb/ft-index/portability/CMakeFiles/tokuportability_static_conv.dir/huge_page_detection.cc.o
In file included from /usr/include/sys/mman.h:22:0,
                 from /tmp/mariadb-10.0.14/storage/tokudb/ft-index/portability/huge_page_detection.cc:91:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
cc1plus: all warnings being treated as errors

A potential fix has already been mention in MDEV-6446. For good measure I'm also attaching the patch we carry locally in our tree.



 Comments   
Comment by Sergei Golubchik [ 2014-11-11 ]

Fixed in TokuDB 7.5.3

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