Bug #79472 hash.h missing in mysql-community-devel rpm
Submitted: 1 Dec 2015 8:47
Reporter: Georgi Iovchev Email Updates:
Status: Open Impact on me:
Category:MySQL Server: Packaging Severity:S4 (Feature request)
Version:5.6.X OS:Linux (centos/redhat)
Assigned to: CPU Architecture:Any

[1 Dec 2015 8:47] Georgi Iovchev
Source file include/hash.h is required for building mydumper tool (and I guess many others). But this file is not included in mysql-community-devel package.

Tested with CentOS 7 and MySQL 5.6.27.

How to repeat:
Try to build from sources mydumper tool (https://launchpad.net/mydumper) on centos/redhat developer machine with installed mysql-community-devel package from official mysql repo.

wget https://launchpad.net/mydumper/0.9/0.9.1/+download/mydumper-0.9.1.tar.gz
tar xzvf mydumper-0.9.1.tar.gz
cd mydumper-0.9.1
[ 14%] Building C object CMakeFiles/mydumper.dir/binlog.c.o
In file included from /opt/mydumper-0.9.1/binlog.c:27:0:
/usr/include/mysql/sql_common.h:26:18: fatal error: hash.h: No such file or directory
 #include <hash.h>

Suggested fix:

It would be best to add include/hash.h is the mysql-community-devel package.

Simple workaround is getting hash.h file from the source (e.g. mysql-5.6.27.tar.gz) and putting it in /usr/include/mysql/.