Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2018 20:36:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        apache@FreeBSD.org
Subject:   [Bug 230538] devel/apr1 apr-1.6.3.1.6.1_1  fails to install apr_dbd_mysql-1.so
Message-ID:  <bug-230538-16115-4ArYwqge8H@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230538-16115@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230538-16115@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230538

--- Comment #3 from Please <please@forget.me.uk> ---
To make apr1 compile with mysql80-client I found that 2 files need to updat=
ed
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=20
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=20
[#include <mysql/my_global.h>])=20
with=20
[#include <mysql/mysql.h>])

and

[#include <my_global.h>])=20
with=20
[#include <mysql.h>])

then commands to test it :=20
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 th=
is
with some testing, ah this is only when mysql80-client is installed.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230538-16115-4ArYwqge8H>