Bug 224077 - www/kannel does not work with mariadb 10.2
Summary: www/kannel does not work with mariadb 10.2
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-04 11:02 UTC by rainer
Modified: 2018-07-10 14:31 UTC (History)
1 user (show)

See Also:
dbaio: maintainer-feedback+


Attachments
poudriere build log (74.86 KB, text/x-log)
2017-12-04 11:02 UTC, rainer
no flags Details
latest build log (76.16 KB, text/plain)
2018-04-28 20:46 UTC, rainer
no flags Details
latest build log (76.33 KB, text/plain)
2018-07-09 08:38 UTC, rainer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2017-12-04 11:02:19 UTC
Created attachment 188516 [details]
poudriere build log

Hi,

poudriere log is in the attachment.
Comment 1 rainer 2018-04-28 20:45:44 UTC
Hi,

this still does not work.

I'd like to reduce the number of builds I do and bring everything to MariaDB 10.2.
Comment 2 rainer 2018-04-28 20:46:20 UTC
Created attachment 192883 [details]
latest build log
Comment 3 Danilo G. Baio freebsd_committer 2018-04-29 17:55:56 UTC
(In reply to rainer from comment #2)

Hi!

This problem happens in all mariadb versions?

Could you report this to the devel list of Kannel? 
https://www.kannel.org/lists.shtml

Regards.
Comment 4 rainer 2018-04-29 17:58:13 UTC
It works with 10.0, but fails with 10.1 + 10.2.
Comment 5 Bernard Spil freebsd_committer 2018-05-11 09:28:58 UTC
Please report upstream. Using MYSQL_SERVER_VERSION for a database client is silly.

As indicated by the build, clients must only include mysql.h. If you're using MariaDB, it will actually include mariadb_version.h itself and then you have access to 
> #define MARIADB_CLIENT_VERSION_STR      "10.2.14"

Cheers, Bernard.
Comment 6 Bernard Spil freebsd_committer 2018-05-11 09:30:04 UTC
See also #221242 for another example.
Comment 7 Danilo G. Baio freebsd_committer 2018-05-12 13:34:14 UTC
Thanks Bernard for the heads up.

@rainer, could you test Kannel with this patch?
https://people.freebsd.org/~dbaio/kannel-mariadb.patch

It's building fine with MariaDB 10.2.

Regards.
Comment 8 rainer 2018-05-13 00:04:44 UTC
Yes, it builds fine here, too.
MariaDB 10.1+10.2.
Comment 9 rainer 2018-07-09 08:37:19 UTC
Hi,

for some reason this patch is no longer included when I try to build kannel now.

11.2-amd64, poudriere 3.2.7 (initially with 3.2.6)

2018Q3 cut of ports tree.

It did build on the 2018Q2 cut, with poudriere 3.2.6.
Comment 10 rainer 2018-07-09 08:38:20 UTC
Created attachment 194983 [details]
latest build log
Comment 11 rainer 2018-07-10 14:31:05 UTC
Danilo has already reported it upstream (thanks!).

https://redmine.kannel.org/issues/778

So far, nothing has happened.