Bug 225472 - net-mgmt/zabbix34-server: configure: error: Not found mariadb library
Summary: net-mgmt/zabbix34-server: configure: error: Not found mariadb library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: pg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-26 19:48 UTC by iron.udjin
Modified: 2018-05-11 15:10 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (pg)


Attachments
zabbix patch for 3.4.7 (4.44 KB, patch)
2018-02-27 03:32 UTC, TAO ZHOU
no flags Details | Diff
patch zabbix34-server 3.4.8 (6.64 KB, patch)
2018-05-02 03:44 UTC, TAO ZHOU
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iron.udjin 2018-01-26 19:48:11 UTC
Hello,

configure script can't find mariadb library in case when used Mariadb 10.2. It works fine with Mariadb 10.1.

configure: error: Not found mariadb library
===>  Script "configure" failed unexpectedly.
Please report the problem to pg@pakhom.spb.ru [maintainer] and attach the
"/usr/ports/net-mgmt/zabbix34-server/work/zabbix-3.4.6/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Workaround: install Mariadb 10.1, build zabbix34-server, upgrade Mariadb from 10.1 to 10.2.

P.S: zabbix34-server works fine with Mariadb 10.2 installed.
Comment 1 TAO ZHOU 2018-02-27 03:32:54 UTC
Created attachment 191046 [details]
zabbix patch for 3.4.7

I've created a patch based on this link https://support.zabbix.com/browse/ZBX-12232
Comment 2 iron.udjin 2018-02-27 04:03:28 UTC
Unfortunatelly it doesn't work.

===>  Extracting for zabbix34-server-3.4.7_1
=> SHA256 Checksum OK for zabbix-3.4.7.tar.gz.
===>  Patching for zabbix34-server-3.4.7_1
===>  Applying FreeBSD patches for zabbix34-server-3.4.7_1
1 out of 1 hunks failed--saving rejects to m4/ax_lib_mysql.m4.rej
=> FreeBSD patch patch-m4_ax__lib__mysql.m4 failed to apply cleanly.
*** Error code 1
Comment 3 TAO ZHOU 2018-05-02 01:12:49 UTC
I just tried this patch again with zabbix 3.4.8. I can't apply the patch file patch-m4-ax__lib__mysql.m4, I think, due to some extra spaces/newlines. But it successfully built when I manually applied the patch.
Comment 4 TAO ZHOU 2018-05-02 03:44:57 UTC
Created attachment 192985 [details]
patch zabbix34-server 3.4.8
Comment 5 Bernard Spil freebsd_committer freebsd_triage 2018-05-11 09:56:38 UTC
Assign to maintainer.
Comment 6 iron.udjin 2018-05-11 15:10:44 UTC
Commited changes fixed the problem. We can close this issue.

Thank you.