Can't build openvas-scanner v21.4.4


When building/installing openvas-scanner I get an error:

Scanning dependencies of target openvas
[ 83%] Building C object src/CMakeFiles/openvas.dir/attack.c.o
/opt/gvm/src/openvas-scanner/src/attack.c: In function ‘attack_network’:
/opt/gvm/src/openvas-scanner/src/attack.c:1396:46: warning: implicit declaration of function ‘gvm_duplicate_host’ [-Wimplicit-function-declaration]
 1396 |             gvm_hosts_add (alive_hosts_list, gvm_duplicate_host (host));
      |                                              ^~~~~~~~~~~~~~~~~~
/opt/gvm/src/openvas-scanner/src/attack.c:1396:46: warning: passing argument 2 of ‘gvm_hosts_add’ makes pointer from integer without a cast [-Wint-conversion]
 1396 |             gvm_hosts_add (alive_hosts_list, gvm_duplicate_host (host));
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                              |
      |                                              int
In file included from /opt/gvm/src/openvas-scanner/src/hosts.h:31,
                 from /opt/gvm/src/openvas-scanner/src/attack.c:32:
/opt/gvm/include/gvm/base/hosts.h:127:31: note: expected ‘gvm_host_t *’ {aka ‘struct gvm_host *’} but argument is of type ‘int’
  127 | gvm_hosts_add (gvm_hosts_t *, gvm_host_t *);
      |                               ^~~~~~~~~~~~

I’m using v21.4.4 of gvm-libs.

What could be the cause of this?

Kind regards,

Never mind, apparently there were some old files in my build structure.

1 Like