Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 11:45:56 GMT
From:      Alex Deiter <alex.deiter@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/146660: [PATCH] net-mgmt/zabbix-server: broken ssh2 support
Message-ID:  <201005171145.o4HBjupG041609@www.freebsd.org>
Resent-Message-ID: <201005171150.o4HBo184055860@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         146660
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/zabbix-server: broken ssh2 support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 11:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alex Deiter
>Release:        9.0-CURRENT-r207844
>Organization:
N/A
>Environment:
FreeBSD x60.deiter.net.ru 9.0-CURRENT-r207844-p9 FreeBSD 9.0-CURRENT-r207844-p9 #0: Mon May 10 15:02:29 MSD 2010     root@x60.deiter.net.ru:/usr/obj/usr/src/sys/X60  amd64

>Description:
Port zabbix-server has broken ssh2 support:

# make showconfig
===> The following configuration options are available for zabbix-server-1.8.2_1,2:
     MYSQL=off "Use MySQL backend"
     PGSQL=on "Use PostgreSQL backend"
     SQLITE=off "Use SQLite backend"
     IPV6=off "Support for IPv6"
     LDAP=on "Support for checking LDAP servers"
     JABBER=on "Use jabber media type"
     FPING=on "Use fping for pinging hosts"
     SSH=on "Use libssh2 for SSH-based checks"

# make configure
..
checking for SSH2 support... test: xyes: unexpected operator
..

# make install

# /usr/local/etc/rc.d/zabbix_server start


   761:20100517:143725.180 Starting Zabbix Server. Zabbix 1.8.2 (revision 11211).
   761:20100517:143725.181 **** Enabled features ****
   761:20100517:143725.181 SNMP monitoring:       YES
   761:20100517:143725.181 IPMI monitoring:       YES
   761:20100517:143725.181 WEB monitoring:        YES
   761:20100517:143725.181 Jabber notifications:  YES
   761:20100517:143725.181 ODBC:                   NO
   761:20100517:143725.181 SSH2 support:           NO
   761:20100517:143725.181 IPv6 support:           NO
   761:20100517:143725.181 **************************

>How-To-Repeat:
# cd /usr/ports/net-mgmt/zabbix-server/ && make install
>Fix:
Please review attached patch

Patch attached with submission follows:

--- configure.orig	2010-05-17 15:38:52.189911152 +0400
+++ configure	2010-05-17 15:39:13.793087125 +0400
@@ -12472,7 +12472,7 @@
      fi #if test "x$_libssh2_dir" = "xno"; then
   fi # if test "x$want_ssh2" != "xno"; then
 
-  if test "x$found_ssh2" == "xyes"; then
+  if test "x$found_ssh2" = "xyes"; then
     am_save_cflags="$CFLAGS"
     am_save_ldflags="$LDFLAGS"
     am_save_libs="$LIBS"
@@ -12537,7 +12537,7 @@
     LDFLAGS="$am_save_ldflags"
     LIBS="$am_save_libs"
 
-    if test "x$found_ssh2" == "xyes"; then
+    if test "x$found_ssh2" = "xyes"; then
 
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_SSH2 1


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005171145.o4HBjupG041609>