Paul Rogers wrote:
First of all, has anybody installed OpenVAS? Going a bit "off the
reservation" here. Not sure my question is really about OpenVAS as much
as Cmake. Anyway, here's where my problem is (LFS-7.7 system):
___8<...
In file included from /usr/include/netinet/tcp.h:35:0,
from
/usr/local/src/openvas-libraries-7.0.10/nasl/nasl_raw.h:36,
from
/usr/local/src/openvas-libraries-7.0.10/nasl/nasl_init.c:21:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
_DEFAULT_SOURCE"
^
In file included from /usr/include/unistd.h:25:0,
from
/usr/local/src/openvas-libraries-7.0.10/nasl/nasl_builtin_synscan.c:29:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
_DEFAULT_SOURCE"
^
[ 97%] Built target test-hosts
cc1: all warnings being treated as errors
nasl/CMakeFiles/openvas_nasl_shared.dir/build.make:684: recipe for
target 'nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_init.c.o' failed
___8<...
I don't think diddling /usr/include/features.h would be my first choice
of fixes. I'm thinking it'd be better to tell Cmake not to treat all
warnings as errors, but I don't know how. What should I do here?
Grep the source tree for _BSD_SOURCE and change it to
_DEFAULT_SOURCE. The warning is thrown in /usr/include/features.h but
_BSD_SOURCE is probably defined in
/usr/local/src/openvas-libraries-7.0.10/nasl/nasl_raw.h but possibly
another include.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page