apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59927] New: apr-util needs some tweaks for mysql 5.7 where is no libmysqlclient_r
Date Tue, 02 Aug 2016 11:50:12 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59927

            Bug ID: 59927
           Summary: apr-util needs some tweaks for mysql 5.7 where is no
                    libmysqlclient_r
           Product: APR
           Version: HEAD
          Hardware: PC
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
          Assignee: bugs@apr.apache.org
          Reporter: petr.sumbera@oracle.com

Created attachment 34091
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34091&action=edit
proposed patch

configure would not enable apr-util dbd mysql driver for MySQL 5.7 where is no
longer present libmysqlclient_r:

checking for mysql_config... /usr/mysql/5.7/bin/mysql_config
  adding "-I/usr/mysql/5.7/include" to CPPFLAGS
  setting LDFLAGS to "-L/usr/mysql/5.7/lib/amd64 -R/usr/mysql/5.7/lib/amd64
-lmysqlclient -lm"
  setting LIBS to "-L/usr/mysql/5.7/lib/amd64 -R/usr/mysql/5.7/lib/amd64
-lmysqlclient -lm"
configure: checking for mysql in /usr/mysql/5.7
checking for mysql.h... yes
checking for mysql_init in -lmysqlclient_r... no
checking for my_global.h... yes
checking for mysql_init in -lmysqlclient_r... (cached) no
checking for my_sys.h... yes
checking for mysql_init in -lmysqlclient_r... (cached) no
checking for mysql/mysql.h... no
  adding "-I/usr/include" to CPPFLAGS
  setting LDFLAGS to "-L/usr/lib "

My understanding is that MySQL 5.7 is first version where this library is not
present. But also in previous versions (e.g. 5.5 and 5.6) libmysqlclient_r was
just link to libmysqlclient.

With attached proposed patch the configure will report following:

configure: checking for mysql in /usr/mysql/5.7
checking for mysql.h... yes
checking for mysql_init in -lmysqlclient... yes
checking for my_global.h... yes
checking for mysql_init in -lmysqlclient... (cached) yes
checking for my_sys.h... yes
checking for mysql_init in -lmysqlclient... (cached) yes
  adding "-I/usr/mysql/5.7/include" to APRUTIL_PRIV_INCLUDES
  setting LDADD_dbd_mysql to "-L/usr/mysql/5.7/lib/amd64
-R/usr/mysql/5.7/lib/amd64 -lmysqlclient -lm -lmysqlclient
-L/usr/mysql/5.7/lib/amd64 -R/usr/mysql/5.7/lib/amd64 -lmysqlclient -lm"
  adding "-I/usr/include" to CPPFLAGS
  setting LDFLAGS to "-L/usr/lib "

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message