[Bug 230538] devel/apr1 apr-1.6.3.1.6.1_1 fails to install apr_dbd_mysql-1.so
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Aug 11 20:36:52 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230538
--- Comment #3 from Please <please at forget.me.uk> ---
To make apr1 compile with mysql80-client I found that 2 files need to updated
from apr-util:
apr-util-1.6.1/dbd/apr_dbd_mysql.c
add to after line 50:
/* MySQL 8.0 replaces my_bool with C99 bool. Earlier versions of MySQL had
* a typedef to char. Gem users reported failures on big endian systems when
* using C99 bool types with older MySQLs due to mismatched behavior. */
#ifndef HAVE_TYPE_MY_BOOL
#include <stdbool.h>
typedef bool my_bool;
#endif
second file : apr-util-1.6.1/build/dbd.m4
replace line 178:
AC_CHECK_HEADERS([mysql.h my_global.h my_sys.h],
with
AC_CHECK_HEADERS([mysql.h],
replace line 183:
AC_CHECK_HEADERS([mysql/mysql.h mysql/my_global.h mysql/my_sys.h],
with
AC_CHECK_HEADERS([mysql/mysql.h],
the same on lines 209 and 215
then replace all occurrence of
[#include <mysql/my_global.h>])
with
[#include <mysql/mysql.h>])
and
[#include <my_global.h>])
with
[#include <mysql.h>])
then commands to test it :
autoconf
./configure
make
see if dbd/apr_dbd_mysql.o file was generated.
I am no expert at doing patches, hope someone will pick it app and apply this
with some testing, ah this is only when mysql80-client is installed.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-apache
mailing list