BIND 10 #2825: bind10 build fails "mysql.h: No such file"

BIND 10 Development do-not-reply at isc.org
Tue Feb 26 18:40:51 UTC 2013


#2825: bind10 build fails "mysql.h: No such file"
-------------------------------------+-------------------------------------
                   Reporter:  tmark  |                 Owner:  UnAssigned
                       Type:         |                Status:  new
  defect                             |             Milestone:  New Tasks
                   Priority:         |              Keywords:
  medium                             |             Sensitive:  0
                  Component:  build  |           Sub-Project:  DHCP
  system                             |  Estimated Difficulty:  0
               CVSS Scoring:         |           Total Hours:  0
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 Using an explicit file path with the configure prefix causes the include
 of mysql.h to fail.

 MySQL is installed on my Macbook  in /opt/local, such that the
 mysql_config is located in /opt/local/lib/mysql55/bin.  I set the
 configure option for dhcp as follows:

   --with-dhcp-mysql=/opt/local/lib/mysql55/bin/mysql_config

 Configure succeeds, but subsequent make fails with "mysql.h: No such file"
 error.

 The issue apppear to be both the source file include and the -I include
 option are specifying a "mysql" subdirectory:

    #include <mysql/mysql.h>   (see mysql_lease_mgr.h)

 and:

 while the include -I value generated by configure appends "mysql" as shown
 below (excerpted from config.report):

 MySQL:  -I/opt/local/lib/mysql55/mysql -pipe -fno-strict-aliasing -g
         -L/opt/local/lib/mysql55/mysql -lmysqlclient  -pthread -lz -lm

 Net effect is trying to find /opt/local/lib/mysql55/mysql/mysql/mysql.h.
 Too many "mysql"s.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2825>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list