Since there aren't packages for OpenVAS 7 yet, I decided to just build it
from source.  However, the first compilation is failing with all sorts of
ssh-related errors.  This is on an up-to-date Ubuntu 14.04 box.  Anyone
have any ideas?


------

cd openvas-libraries-7.0.1/
mkdir build
cd build
cmake ..
make

------

...
[ 42%] Building C object
nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_ssh.c.o
In file included from /root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:58:0:
/usr/include/libssh/legacy.h:34:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int ssh_auth_list(ssh_session session);
            ^
/usr/include/libssh/legacy.h:35:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int ssh_userauth_offer_pubkey(ssh_session session, const char
*username, int type, ssh_string publickey);
            ^
/usr/include/libssh/legacy.h:36:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int ssh_userauth_pubkey(ssh_session session, const char
*username, ssh_string publickey, ssh_private_key privatekey);
            ^
In file included from /root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:58:0:
/usr/include/libssh/legacy.h:38:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int ssh_userauth_agent_pubkey(ssh_session session, const char
*username,
            ^
/usr/include/libssh/legacy.h:66:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int channel_poll(ssh_channel channel, int is_stderr);
            ^
/usr/include/libssh/legacy.h:67:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int channel_read(ssh_channel channel, void *dest, uint32_t
count, int is_stderr);
            ^
/usr/include/libssh/legacy.h:69:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int'
 LIBSSH_API int channel_read_buffer(ssh_channel channel, ssh_buffer buffer,
uint32_t count,
            ^
[snip a few zillion of these]
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c: In function
'my_ssh_key_free':
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:257:3: error: implicit
declaration of function 'privatekey_free'
[-Werror=implicit-function-declaration]
   privatekey_free (key->privkey);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c: In function
'my_ssh_pki_import_privkey_base64':
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:598:3: error: implicit
declaration of function 'privatekey_from_file'
[-Werror=implicit-function-declaration]
   ssh_privkey = privatekey_from_file (session, privkey_filename, 0,
passphrase);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:598:15: error: assignment
makes pointer from integer without a cast [-Werror]
   ssh_privkey = privatekey_from_file (session, privkey_filename, 0,
passphrase);
               ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:637:3: error: implicit
declaration of function 'ssh_privatekey_type'
[-Werror=implicit-function-declaration]
   pkey->type = ssh_privatekey_type (ssh_privkey);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:647:3: error: implicit
declaration of function 'publickey_from_privatekey'
[-Werror=implicit-function-declaration]
   ssh_pubkey = publickey_from_privatekey (ssh_privkey);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:647:14: error: assignment
makes pointer from integer without a cast [-Werror]
   ssh_pubkey = publickey_from_privatekey (ssh_privkey);
              ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:656:3: error: implicit
declaration of function 'publickey_to_string'
[-Werror=implicit-function-declaration]
   pkey->pubkey_string = publickey_to_string (ssh_pubkey);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:656:23: error: assignment
makes pointer from integer without a cast [-Werror]
   pkey->pubkey_string = publickey_to_string (ssh_pubkey);
                       ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:657:3: error: implicit
declaration of function 'publickey_free'
[-Werror=implicit-function-declaration]
   publickey_free (ssh_pubkey);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c: In function
'my_ssh_userauth_try_publickey':
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:706:3: error: implicit
declaration of function 'ssh_userauth_offer_pubkey'
[-Werror=implicit-function-declaration]
   rc = ssh_userauth_offer_pubkey (session, NULL, key->type,
key->pubkey_string);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c: In function
'my_ssh_userauth_publickey':
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:741:3: error: implicit
declaration of function 'ssh_userauth_pubkey'
[-Werror=implicit-function-declaration]
   rc = ssh_userauth_pubkey (session, NULL, key->pubkey_string,
key->privkey);
   ^
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c: In function
'nasl_ssh_get_server_banner':
/root/openvas-libraries-7.0.1/nasl/nasl_ssh.c:1864:10: error: assignment
discards 'const' qualifier from pointer target type [-Werror]
   banner = ssh_get_serverbanner (session);
          ^
cc1: all warnings being treated as errors
make[2]: *** [nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_ssh.c.o] Error 1
make[1]: *** [nasl/CMakeFiles/openvas_nasl_shared.dir/all] Error 2
make: *** [all] Error 2
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to