Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2018 10:42:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231299] databases/p5-DBD-mysql: Does not compile with MariaDB 10.1
Message-ID:  <bug-231299-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 231299
           Summary: databases/p5-DBD-mysql: Does not compile with MariaDB
                    10.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: perl@FreeBSD.org
          Reporter: sascha@root-login.org
          Assignee: perl@FreeBSD.org
             Flags: maintainer-feedback?(perl@FreeBSD.org)

Hi,

after the update to 4.047 the port doesn't compile with MariaDB installed:

--- dbdimp.o ---
dbdimp.c:1910:56: error: invalid token at start of a preprocessor expression
#if (MYSQL_VERSION_ID >=3D 50723) && (MYSQL_VERSION_ID < MARIADB_BASE_VERSI=
ON)
                                                       ^
/usr/local/include/mysql/mysql_version.h:16:31: note: expanded from macro
'MARIADB_BASE_VERSION'
#define MARIADB_BASE_VERSION            "mariadb-10.1"
                                        ^
dbdimp.c:1917:56: error: invalid token at start of a preprocessor expression
#if (MYSQL_VERSION_ID >=3D 50600) && (MYSQL_VERSION_ID < MARIADB_BASE_VERSI=
ON)
                                                       ^
/usr/local/include/mysql/mysql_version.h:16:31: note: expanded from macro
'MARIADB_BASE_VERSION'
#define MARIADB_BASE_VERSION            "mariadb-10.1"


Full poudriere log at:
https://pkgs.blumenschaender.de/data/112amd64-default-desk/2018-09-11_04h09=
m16s/logs/errors/p5-DBD-mysql-4.047.log

There is already a bug report open upstream:
https://github.com/perl5-dbi/DBD-mysql/issues/262=20

The code in question was introduced with commit
f4b0004ea5422ed724a252be07731f0bd8c24c79.

I'm not quite sure what the author had in mind here and there is also no
MARIADB equivalent to MYSQL_VERSION_ID in
/usr/local/include/mysql/mysql_version.h. So i've not come up with a
workaround, yet.

--=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-231299-7788>