On Wed, Oct 31, 2012 at 1:28 PM, Nigel Taylor <njtay...@asterisk.demon.co.uk
> wrote:

>
> If you looked at the ports on FreeBSD you might get a clue
>
>
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/openvas-libraries/Makefile.common?rev=1.4;content-type=text%2Fplain
>
>
>

Thanks for the tip Nigel!

I just abandon openvas ports because it is too old, and have no maintainer.
A long-long time ago I used Nessus, and now I am trying to build the
openvas environment from scratch (getting the sources
from svn).

So.. to fix this error I just add this at CMakeLists.txt:
INCLUDE_DIRECTORIES( "/usr/local/include")

Then I start to get some other simple errors like:

/usr/local/src/openvas/trunk/openvas-libraries/misc/ftp_funcs.c: In
function 'ftp_get_pasv_address':
/usr/local/src/openvas/trunk/openvas-libraries/misc/ftp_funcs.c:188: error:
'AF_INET' undeclared (first use in this function)
/usr/local/src/openvas/trunk/openvas-libraries/misc/ftp_funcs.c:188: error:
(Each undeclared identifier is reported only once
/usr/local/src/openvas/trunk/openvas-libraries/misc/ftp_funcs.c:188: error:
for each function it appears in.)
*** [misc/CMakeFiles/openvas_misc_shared.dir/ftp_funcs.c.o] Error code 1


After googling a bit, I found what was missing at
openvas-libraries/misc/network.h:
#include <sys/socket.h>

But another error start to come:

In file included from
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.c:60:
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.h:57:
warning: 'struct sockaddr_in' declared inside parameter list
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.h:57:
warning: its scope is only this definition or declaration, which is
probably not what you want
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.c:338:
error: conflicting types for 'openvas_server_connect'
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.h:57:
error: previous declaration of 'openvas_server_connect' was here
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.c: In
function 'openvas_server_connect':
/usr/local/src/openvas/trunk/openvas-libraries/misc/openvas_server.c:379:
error: invalid application of 'sizeof' to incomplete type 'struct
sockaddr_in'
*** [misc/CMakeFiles/openvas_misc_shared.dir/openvas_server.c.o] Error code
1



My idea is really understand the "new" Openvas environment ("new" because I
stop to use Nessus 8 years ago).
But I dont really know if I am going in the right way by trying to build it
on FreeBSD, another idea that I have is after
build a working environment of OpenVAS I try to become a maintainer of
openvas ports on FreeBSD.

Been honest I will need a bit of help to accomplish these goals.

Thanks again!
[]s
Vinnix
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel

Reply via email to