Bug 190139 - net-mgmt/zabbix2-server, net-mgmt/zabbix22-server incorrect config options in Makefile, broken ODBC support
Summary: net-mgmt/zabbix2-server, net-mgmt/zabbix22-server incorrect config options in...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-23 14:10 UTC by Pavel Gulchouck
Modified: 2014-07-18 00:04 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Gulchouck 2014-05-23 14:10:00 UTC
Zabbix-server can store its data in one of SQL databases: MySQL, PostgreSQL, SQLite, Oracle.
Then, it can query objects using ODBC interface, it's another compile-time configurable option.
I use mysql as storage database and ODBC as query API.
If I choose "ODBC" as DB option, build failed with

configure: error: No database selected for Zabbix server/proxy. Use --with-ibm-db2 or --with-mysql or --with-oracle or --with-postgresql or --with-sqlite3.

and if I choose "MYSQL" than ODBC support is not compiled in.

Fix: 

-OPTIONS_DEFINE=	IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP JAVAGW LIBXML2
+OPTIONS_DEFINE=	IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP JAVAGW LIBXML2 ODBC
 OPTIONS_DEFAULT=	MYSQL IPV6 FPING JABBER CURL
@@ -86,3 +86,3 @@
 OPTIONS_SINGLE=	DB
-OPTIONS_SINGLE_DB=	MYSQL PGSQL SQLITE ORACLE ODBC
+OPTIONS_SINGLE_DB=	MYSQL PGSQL SQLITE ORACLE--7mlOVwrEXVmI6kMJNY4AZzGdXrqM5HdWF873v4iNSOkijNri
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- zabbix22-server/Makefile	2014-05-05 19:24:00.000000000 +0300
+++ zabbix22-server/Makefile	2014-05-23 12:24:02.000000000 +0300
@@ -71,3 +71,3 @@
How-To-Repeat: 
On zabbix22-server run "make config", choose "DB: ODBC" and run "make build".
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-23 14:10:04 UTC
Maintainer of net-mgmt/zabbix2-server,

Please note that PR ports/190139 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/190139

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-23 14:10:05 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Pavel Timofeev 2014-07-08 08:27:16 UTC
It can be closed.
zabbix22-server doesn't have such problem right now, it was fixed.
zabbix2-server has problem, but I created a PR with patch https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191731
Comment 4 pg 2014-07-17 22:05:36 UTC
Please close this PR. This issue already fixed.
Comment 5 John Marino freebsd_committer freebsd_triage 2014-07-18 00:04:18 UTC
closed.