Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25861

deprecated function libssh2 compile error

XMLWordPrintable

    • Sprint candidates

      Steps to reproduce:

      1. Update with latest libraries and latest source code (7.2.2)
      2. configure --prefix=/usr --enable-server --enable-agent --enable-agent2 --enable-webservice --enable-java --with-mysql --with-libxml2 --with-unixodbc --with-net-snmp --with-openipmi --with-zlib --with-libevent --with-openssl --with-libcurl --with-libpcre
      3. make install

      Result:

      gcc -DHAVE_CONFIG_H -I../../../include/common -I../../../include    -I/usr/include -I/usr/include/libxml2 -I/usr/include/db5.3 -I/usr/lib/perl5/5.40/core_perl/CORE -I/usr/include/libnl3 -I. -I/usr/include  -I/usr/include -g -O2  -MT lib
      zbxpoller_a-ssh2_run.o -MD -MP -MF .deps/libzbxpoller_a-ssh2_run.Tpo -c -o libzbxpoller_a-ssh2_run.o `test -f 'ssh2_run.c' || echo './'`ssh2_run.c 
      ssh2_run.c: In function ‘ssh_run’: 
      ssh2_run.c:282:9: warning: ‘libssh2_session_startup’ is deprecated: since libssh2 1.2.8. Use libssh2_session_handshake() [-Wdeprecated-declarations] 
       282 |         while (0 != (rc = libssh2_session_startup(session, s.socket))) 
           |         ^~~~~ 
      In file included from ssh2_run.c:17: 
      /usr/include/libssh2.h:670:17: note: declared here 
       670 | LIBSSH2_API int libssh2_session_startup(LIBSSH2_SESSION *session, int sock); 
           |                 ^~~~~~~~~~~~~~~~~~~~~~~ 

      Expected:
      Clean compile

            zabbix.dev Zabbix Development Team
            spectroman jchegedus
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: