[Openvas-devel] openvas-libraries 3.0.0 beta 2 feedback
Stephan Kleine
bitdealer at gmail.com
Mon Sep 28 19:23:17 CEST 2009
Hi.
TBH I'm a bit confused how I am supposed to compile that thing since
it's some mix of autoconf & cmake.
The problem is that if I use "%configure" (which sets --prefix,
--exec-prefix, --mandir et al automatically) it fails with
http://pastebin.ca/1582809 . Also you can see that it uses e.g.
-DOPENVAS_STATE_DIR=\"/usr/var/lib/openvas\" and
-DOPENVAS_SYSCONFDIR=\"/usr/etc/openvas\" - as in it prepends the
prefix where it doesn't belong.
Contrary, if I just use "./configure" without any arguments it
compiles fine but all the stuff is bellow /usr/local which isn't right
either.
So how am I supposed to set a proper prefix? In other words, you
should IMHO either use cmake or autoconf and not mix them but if you
insist on mixing them make it so "%configure" can be used since it
sets all the proper locations automatically.
(E.g. on openSUSE 11.1 i586 it is "./configure
--host=i686-suse-linux-gnu --build=i686-suse-linux-gnu
--target=i586-suse-linux --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info")
Further it fails on e.g. 10.3 (cmake-2.4.7-17) with:
CMake Error: Error in cmake code at
/usr/src/packages/BUILD/openvas-libraries-3.0.0.beta2/base/CMakeLists.txt:31:
IF had incorrect arguments: POLICY CMP0005 (Unknown arguments specified).
Current CMake stack:
[1] /usr/src/packages/BUILD/openvas-libraries-3.0.0.beta2/base/CMakeLists.txt
CMake Error: Error in cmake code at
/usr/src/packages/BUILD/openvas-libraries-3.0.0.beta2/base/CMakeLists.txt:32:
Unknown CMake command "cmake_policy".
It would be great if you could come up with some solution so it works
there as well if possible or define a proper minimum cmake version
which is checked.
Regards,
Stephan
More information about the Openvas-devel
mailing list