Hello,
Don't know if others still have some problems compiling openvas-scanner
on Ubuntu 12.04 cause of libssh (undefined reference errors).
I got it compiling by adding libssh explicitly to the CMakeLists.txt:
execute_process (COMMAND pkg-config --cflags libssh
OUTPUT_VARIABLE GNUTLS_CFLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process (COMMAND pkg-config --libs libssh
OUTPUT_VARIABLE GNUTLS_LDFLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
Didn't really had the time yet to fully verify this but at least I can
compile it now. Let me know if this solves the problem for others too or
if it actually causes some more of them ;)
Christian
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 13550)
+++ CMakeLists.txt (working copy)
@@ -220,6 +220,12 @@
execute_process (COMMAND pkg-config --libs gnutls
OUTPUT_VARIABLE GNUTLS_LDFLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
+execute_process (COMMAND pkg-config --cflags libssh
+ OUTPUT_VARIABLE GNUTLS_CFLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+execute_process (COMMAND pkg-config --libs libssh
+ OUTPUT_VARIABLE GNUTLS_LDFLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
## Version
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel