[ZBX-1299] libssh2 version dependency and specified path ignored Created: 2009 Nov 17  Updated: 2017 May 30  Resolved: 2010 Feb 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.9.0 (alpha)
Fix Version/s: 1.8.2, 1.9.0 (alpha)

Type: Incident report Priority: Minor
Reporter: Kevin Radke Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Red Hat Enterprise Linux 5


Issue Links:
Duplicate
is duplicated by ZBX-1466 Compile error with SSH2 support Closed

 Description   

RHEL5 linux RPMs only have libssh2 v0.17 available. This version appears to be too old to build zabbix with libssh2 support.
Zabbix should check the libssh2 version in the configure script to provide a more useful error.

checks_ssh.c: In function 'waitsocket':
checks_ssh.c:64: error: 'LIBSSH2_SESSION_BLOCK_INBOUND' undeclared (first use in this function)
checks_ssh.c:64: error: (Each undeclared identifier is reported only once
checks_ssh.c:64: error: for each function it appears in.)
checks_ssh.c:67: error: 'LIBSSH2_SESSION_BLOCK_OUTBOUND' undeclared (first use in this function)

Also, the configure option --with-ssh2=/path/to/new/ssh2 appears to ignore the PATH portion of the option. A manual fix
to the configure script is shown in the forum: http://www.zabbix.com/forum/showthread.php?t=14536



 Comments   
Comment by Dmitry Borovikov [ 2009 Dec 07 ]

Zabbix does not support ssh2 library 0.17. It is too old. It is recommended to provide the most current available version. Now a path to custom library location can be provided. The check on the least version will be provided later.

Comment by richlv [ 2009 Dec 09 ]

configure check for minimum version should be implemented, though - should one of these bugreports be reopened, or a new one created ?

Comment by richlv [ 2009 Dec 10 ]

version check will be handled in this issue

Comment by richlv [ 2010 Feb 17 ]

dev branch, rev 10201 - this check fails if bc is missing.

checking for SSH2 support... ./configure: line 12364: bc: command not found
./configure: line 12369: test: -ge: unary operator expected
yes
configure: error: SSH2 library version does not meet (>= 1.0.0).

so the change introduced a new dependency for configure script, bc.
it should be either checked for before, or check changed so that it does not require bc (preferred).

additionally, suggested error message change :
"library version requirement not met"

Comment by richlv [ 2010 Feb 22 ]

confirming the fix in dev branch, rev 10311

Comment by Dmitry Borovikov [ 2010 Feb 22 ]

Fixed in pre-1.8.2(revision 10324) ant 1.9(revision 10325). The minimal supported version of the library is 1.0.0.

Generated at Mon May 26 07:23:49 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.