Bug #70672 MySQL-devel package missing incluse/mysql/hash.h
Submitted: 21 Oct 2013 10:25 Modified: 13 Nov 2015 15:17
Reporter: Aleksandar NOT_FOUND Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S2 (Serious)
Version:5.6.14 OS:Any
Assigned to: CPU Architecture:Any
Tags: mydumper

[21 Oct 2013 10:25] Aleksandar NOT_FOUND
Description:

MySQL-devel packages seem to be missing hash.h (included from sql_common.h)

How to repeat:

try to compile anything including sql_common.h

Suggested fix:

copy hash.h from the source tarball
[21 Oct 2013 11:26] MySQL Verification Team
Thank you for the bug report.
[19 Dec 2013 7:40] Laasya Moduludu
Could you please describe the situation where you need to include
 "sql_common.h"?

  As far as I can see it is not used from the header files that form
  the public API, i.e. that the bug is that "sql_common.h" is included
  at all in binary packages.

  But I could be wrong, could you please clarify?
[19 Dec 2013 12:26] Andreas Piesk
i include /usr/include/mysql/sql_common.h to use simple_command().
[24 Jan 2014 0:36] Diederik van Liere
An easy way to replicate this bug is to compile mysql-hadoop-applier-0.1.0 (available at http://labs.mysql.com/). It will give complaints such as:

/usr/local/Cellar/mysql/5.6.15/include/mysql/sql_common.h:26:10: fatal error: 'hash.h' file not found

This is on a OSX 10.9 system using cmake 2.8 and Mysql 5.6.15 and Mysql is installed using Homebrew.
[24 Jan 2014 8:30] Aleksandar NOT_FOUND
mydumper (https://launchpad.net/mydumper) also includes it to execute simple_command
[30 Apr 2015 13:07] Georgi Iovchev
I have same situation with mydumper 0.6.2 :

[ 14%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
[ 28%] Building C object CMakeFiles/mydumper.dir/binlog.c.o
In file included from /opt/mydumper-sources/mydumper-0.6.2/binlog.c:27:0:

I copied mysql-5.6.24/include/hash.h (from mysql-5.6.24.tar.gz) to  /usr/include/ and mydumper built successfully.
[13 Nov 2015 15:17] Paul DuBois
Noted in 5.8.0 changelog.

sql_common.h, a header file included in MySQL distributions, included
and was therefore dependent on hash.h, a header file not included in
MySQL distributions. This resulted in compilation failures. To
eliminate this dependency, sql_common.h was modified to no longer
include hash.h.