[Openvas-devel] [openvas-Bugs][6551] unable to compile with wmi librairies

noreply at wald.intevation.org noreply at wald.intevation.org
Thu Jul 10 09:19:47 CEST 2014


Bugs item #6551, was opened at 2014-07-10 07:19 by Guillaume Devoyon
You can respond by visiting: 
https://wald.intevation.org/tracker/?func=detail&atid=220&aid=6551&group_id=29

Status: Open
Priority: 3
Submitted By: Guillaume Devoyon (f8arr)
Assigned to: Nobody (None)
Summary: unable to compile with wmi librairies 
Architecture: 64 Bit
Product: OpenVAS
Operating System: Linux
Component: openvas-libraries
Version: None
Severity: major
Resolution: None
Hardware: None
URL: 


Initial Comment:
Hello

I tried to install on Debian Wheezy 7.5 wmi clients: 


libwmiclient1_1.3.14-3_amd64.deb  libwmiclient1-dev_1.3.14-3_amd64.deb  wmi-client_1.3.14-3_amd64.deb
root at gs00slli090:~/openvas/wmiclient# dpkg -i libwmiclient1_1.3.14-3_amd64.deb
Sélection du paquet libwmiclient1 précédemment désélectionné.
(Lecture de la base de données... 76543 fichiers et répertoires déjà installés.)
Dépaquetage de libwmiclient1 (à partir de libwmiclient1_1.3.14-3_amd64.deb) ...
Paramétrage de libwmiclient1 (1.3.14-3) ...
root at gs00slli090:~/openvas/wmiclient# dpkg -i libwmiclient1-dev_1.3.14-3_amd64.deb
Sélection du paquet libwmiclient1-dev précédemment désélectionné.
(Lecture de la base de données... 76548 fichiers et répertoires déjà installés.)
Dépaquetage de libwmiclient1-dev (à partir de libwmiclient1-dev_1.3.14-3_amd64.deb) ...
Paramétrage de libwmiclient1-dev (1.3.14-3) ...
root at gs00slli090:~/openvas/wmiclient# dpkg -i wmi-client_1.3.14-3_amd64.deb
Sélection du paquet wmi-client précédemment désélectionné.
(Lecture de la base de données... 76553 fichiers et répertoires déjà installés.)
Dépaquetage de wmi-client (à partir de wmi-client_1.3.14-3_amd64.deb) ...
Paramétrage de wmi-client (1.3.14-3) ...
Traitement des actions différées (« triggers ») pour « python-support »...

once done, I built with cmake libraries 7.0.2

/openvas/openvas-libraries-7.0.2/build# cmake ..
-- Configuring the Libraries...
-- The C compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Install prefix: /usr/local
-- checking for module 'gnutls>=2.8'
--   found gnutls, version 2.12.20
-- checking for module 'glib-2.0>=2.16'
--   found glib-2.0, version 2.32.4
-- checking for module 'wmiclient>=1.3.14'
--   found wmiclient, version 1.3.14
-- checking for module 'wincmd>=0.80'
--   package 'wincmd>=0.80' not found
-- checking for module 'libssh>=0.5.0'
--   found libssh, version 0.5.4
-- Looking for pcap...
-- Looking for pcap... /usr/lib/x86_64-linux-gnu/libpcap.so
-- Looking for pcap-config...
-- Looking for pcap-config... /usr/bin/pcap-config
-- Looking for gpgme...
-- Looking for gpgme... /usr/lib/libgpgme.so
-- Looking for ksba...
-- Looking for ksba... /usr/lib/x86_64-linux-gnu/libksba.so
-- Looking for zlib...
-- Looking for zlib... /usr/lib/x86_64-linux-gnu/libz.so
-- Looking for uuid...
-- Looking for uuid... /usr/lib/x86_64-linux-gnu/libuuid.so
-- Looking for libldap...
--   Found /usr/lib/x86_64-linux-gnu/libldap.so - ldap support enabled
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.1.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/openvas/openvas-libraries-7.0.2/build
root at gs00slli090:~/openvas/openvas-libraries-7.0.2/build# make
Scanning dependencies of target openvas_base_shared
[  1%] Building C object base/CMakeFiles/openvas_base_shared.dir/array.c.o
[  2%] Building C object base/CMakeFiles/openvas_base_shared.dir/credentials.c.o
[  3%] Building C object base/CMakeFiles/openvas_base_shared.dir/openvas_hosts.c.o
[  4%] Building C object base/CMakeFiles/openvas_base_shared.dir/cvss.c.o
[  6%] Building C object base/CMakeFiles/openvas_base_shared.dir/drop_privileges.c.o
[  7%] Building C object base/CMakeFiles/openvas_base_shared.dir/nvti.c.o
[  8%] Building C object base/CMakeFiles/openvas_base_shared.dir/nvticache.c.o
[  9%] Building C object base/CMakeFiles/openvas_base_shared.dir/openvas_compress.c.o
[ 10%] Building C object base/CMakeFiles/openvas_base_shared.dir/openvas_file.c.o
[ 10%] Building C object base/CMakeFiles/openvas_base_shared.dir/openvas_networking.c.o
[ 12%] Building C object base/CMakeFiles/openvas_base_shared.dir/openvas_string.c.o
[ 13%] Building C object base/CMakeFiles/openvas_base_shared.dir/pidfile.c.o
[ 14%] Building C object base/CMakeFiles/openvas_base_shared.dir/settings.c.o
[ 15%] Building C object base/CMakeFiles/openvas_base_shared.dir/gpgme_util.c.o
[ 16%] Building C object base/CMakeFiles/openvas_base_shared.dir/pwpolicy.c.o
Linking C shared library libopenvas_base.so
[ 16%] Built target openvas_base_shared
Scanning dependencies of target test-hosts
[ 18%] Building C object base/CMakeFiles/test-hosts.dir/test-hosts.c.o
Linking C executable test-hosts
[ 18%] Built target test-hosts
Scanning dependencies of target openvas_misc_shared
[ 19%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/arglists.c.o
[ 20%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/bpf_share.c.o
[ 21%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/ftp_funcs.c.o
[ 22%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/hash_table_file.c.o
[ 24%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/ids_send.c.o
[ 25%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/kb.c.o
[ 26%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/network.c.o
[ 27%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas_auth.c.o
[ 28%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas_logging.c.o
[ 28%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas_server.c.o
[ 30%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas_ssh_login.c.o
[ 31%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas_uuid.c.o
[ 32%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/plugutils.c.o
[ 33%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/popen.c.o
[ 34%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/openvas_proctitle.c.o
[ 36%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/resource_request.c.o
[ 37%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/scanners_utils.c.o
[ 38%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/system.c.o
[ 39%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/www_funcs.c.o
[ 40%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/pcap.c.o
[ 42%] Building C object misc/CMakeFiles/openvas_misc_shared.dir/ldap_connect_auth.c.o
Linking C shared library libopenvas_misc.so
[ 42%] Built target openvas_misc_shared
Scanning dependencies of target openvas_nasl_shared
[ 43%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/smb_interface_stub.c.o
[ 44%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/arc4.c.o
[ 44%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/capture_packet.c.o
[ 45%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/charcnv.c.o
[ 46%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/exec.c.o
[ 48%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/genrand.c.o
[ 49%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/hmacmd5.c.o
[ 50%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/iconv.c.o
[ 51%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/lint.c.o
[ 53%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/md4.c.o
[ 54%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/md5.c.o
[ 55%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl.c.o
[ 56%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_builtin_find_service.c.o
[ 57%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_builtin_openvas_tcp_scanner.c.o
[ 59%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_builtin_synscan.c.o
[ 60%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_builtin_nmap.c.o
[ 61%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_cmd_exec.c.o
[ 62%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_crypto2.c.o
[ 62%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_ssh.c.o
[ 63%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_cert.c.o
[ 65%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_crypto.c.o
[ 66%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_debug.c.o
[ 67%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_func.c.o
[ 68%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_grammar.tab.c.o
[ 69%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_host.c.o
[ 71%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_http.c.o
[ 72%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_init.c.o
[ 73%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_lex_ctxt.c.o
[ 74%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_misc_funcs.c.o
[ 75%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_scanner_glue.c.o
[ 77%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_packet_forgery.c.o
[ 78%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_packet_forgery_v6.c.o
[ 79%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_signature.c.o
[ 79%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_smb.c.o
[ 80%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_socket.c.o
[ 81%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_text_utils.c.o
[ 83%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_tree.c.o
[ 84%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_var.c.o
[ 85%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_wmi.c.o
[ 86%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/nasl_isotime.c.o
[ 87%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/ntlmssp.c.o
[ 89%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/strutils.c.o
[ 90%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/smb_crypt.c.o
[ 91%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/smb_crypt2.c.o
[ 92%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/smb_signing.c.o
[ 93%] Building C object nasl/CMakeFiles/openvas_nasl_shared.dir/time.c.o
Linking C shared library libopenvas_nasl.so
[ 95%] Built target openvas_nasl_shared
Scanning dependencies of target openvas-nasl
[ 96%] Building C object nasl/CMakeFiles/openvas-nasl.dir/nasl.c.o
Linking C executable openvas-nasl
libopenvas_nasl.so.7.0.2: undefined reference to `wmi_reg_set_string_val'
libopenvas_nasl.so.7.0.2: undefined reference to `wmi_reg_set_ex_string_val'
libopenvas_nasl.so.7.0.2: undefined reference to `wmi_reg_set_qword_val'
libopenvas_nasl.so.7.0.2: undefined reference to `wmi_reg_delete_key'
libopenvas_nasl.so.7.0.2: undefined reference to `wmi_reg_set_dword_val'
libopenvas_nasl.so.7.0.2: undefined reference to `wmi_reg_create_key'
collect2: error: ld returned 1 exit status
make[2]: *** [nasl/openvas-nasl] Erreur 1
make[1]: *** [nasl/CMakeFiles/openvas-nasl.dir/all] Erreur 2
make: *** [all] Erreur 2

I did not find any reference to this issue on Internet.

Regards.


----------------------------------------------------------------------

You can respond by visiting: 
https://wald.intevation.org/tracker/?func=detail&atid=220&aid=6551&group_id=29



More information about the Openvas-devel mailing list