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

deprecated function libssh2 compile error

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 7.4.0beta1 (master)
    • 7.2.2
    • Server (S)
    • None
    • Prev.Sprint, S25-W10/11
    • 2

      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

        1. config.log
          403 kB
        2. config.status
          68 kB

            askolmeisters Armands Arseniuss Skolmeisters
            spectroman jchegedus
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 27h 40m
                27h 40m