Hello,
Am Dienstag, 17. Dezember 2013, 12:16:51 schrieb Loïc Maury:
> I am new to the project, and I want to contribute.
any help is appeciated!
> I have downloaded the source code of the project, and try to compile it and
> install on FreeBSD.
>
>
> First I try to compile openvas-libraries.
>
> Here is the errors I have encountered :
>
> First error :
>
> [ 1%] Building C object base
> CMakeFiles/openvas_base_shared.dir/openvas_hosts.c.o
> cc1: warnings being treated as errors
> In file included from
> OpenVas/trunk/openvas-libraries/base/openvas_hosts.h:38,
> from
> OpenVas/trunk/openvas-libraries/base/openvas_hosts.c:37:
> OpenVas/trunk/openvas-libraries/base/openvas_networking.h:56: warning:
> 'struct in6_addr' declared inside parameter list
> OpenVas/trunk/openvas-libraries/base/openvas_networking.h:56: warning: its
> scope is only this definition or declaration, which is probably not what
> you want
I am not familiar myself with *BSD. But AFAIK this is an expected problem
because *BSD differs regarding TCPIP stack.
> I think that the file base/openvas_networking.h need to include
> netinet/in.h who include netinet6/in6.h
> Note : netinet/in.h already include sys/types.h.
Some clever ifdef might solve the issue.
I guess cmake can be used to determine *BSD and set appropriate
variables.
> it seem that on freebsd s6_addr_32 member is not visible, only used in
> kernel mode, however s6_addr member can be used, the s6_addr_32 is not
> standard - see RFC3493 ("Basic Socket Interface Extensions for IPv6", see
> netinet6/in6.h).
>
> I found same error here I think, (for mac os x) :
> http://wald.intevation.org/tracker/index.php?func=detail&aid=1233&group_id=
> 29&atid=220 added #define s6_addr32 __u6_addr.__u6_addr32 into file
> openvas_networking.h, resolve the issue, but I don't know if it's a good
> solution ?
> to redeclare a non standard ipv6 member used by kernel.
Can you work out a patch for openvas-libraries that makes it compile so that
other folks can easily try it out?
Perhaps then also share with the users via openvas-discuss mailing list where
hopefully some *BSD people are around to verify.
Best
Jan
--
Dr. Jan-Oliver Wagner | ++49-541-335084-0 | http://www.greenbone.net/
Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B
202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-devel mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel