+ Responder ao Tópico



  1. #1
    Hacinn
    Visitante

    Padrão Erro compilando o Nessus 2.2.2a em um Conectiva 9?

    Olá,

    Estou tentando instalar o Nessus 2.2.2a em servidor Conectiva 9. Consegui compilar os pacotes nessus-libraries e o libnasl sem problemas, mas quando tento compilar o pacote nessus-core, recebo a mensagem abaixo:

    cd nessus-fetch && make
    make[1]: Entering directory `/root/nessus/nessus-core/nessus-fetch'
    gcc -Wall -I. -I/root/nessus/nessus-core/include -I/usr/local/include/nessus -I/usr/local/include/nessus "-DNESSUSD_CONFDIR=\"/usr/local/etc\"" "-DNESSUSD_STATEDIR=\"/usr/local/var/nessus\"" "-DNESSUSD_DATADIR=\"/usr/local/etc/nessus\"" "-DNESSUSD_LIBDIR=\"/usr/local/lib/nessus\"" "-DNESSUSD_PLUGINS=\"/usr/local/lib/nessus/plugins\"" "-DNESSUSD_REPORTS=\"/usr/local/lib/nessus/reports\"" -DNESSUSD_SHAREDSTATEDIR=\"/usr/local/com/nessus\" -DNESSUSD_LOGDIR=\"/usr/local/var/nessus/logs\" -I. -I/root/nessus/nessus-core/include -DHAVE_CONFIG_H -DUSE_GTK -c nessus-fetch.c
    nessus-fetch.c:81: parse error before '*' token
    nessus-fetch.c: In function `ssl_connect_timeout':
    nessus-fetch.c:94: warning: implicit declaration of function `SSL_get_fd'
    nessus-fetch.c:94: `ssl' undeclared (first use in this function)
    nessus-fetch.c:94: (Each undeclared identifier is reported only once
    nessus-fetch.c:94: for each function it appears in.)
    nessus-fetch.c:100: `tmo' undeclared (first use in this function)
    nessus-fetch.c:111: warning: implicit declaration of function `SSL_connect'
    nessus-fetch.c:112: warning: implicit declaration of function `SSL_set_mode'
    nessus-fetch.c:112: `SSL_MODE_ENABLE_PARTIAL_WRITE' undeclared (first use in this function)
    nessus-fetch.c:117: warning: implicit declaration of function `SSL_get_error'
    nessus-fetch.c:119: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
    nessus-fetch.c:125: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    nessus-fetch.c:132: `SSL_ERROR_SSL' undeclared (first use in this function)
    nessus-fetch.c:133: `SSL_ERROR_SYSCALL' undeclared (first use in this function)
    nessus-fetch.c: In function `proxy_connect_method':
    nessus-fetch.c:638: syntax error before '*' token
    nessus-fetch.c:639: syntax error before '*' token
    nessus-fetch.c:640: `SSL' undeclared (first use in this function)
    nessus-fetch.c:640: `ssl' undeclared (first use in this function)
    nessus-fetch.c:665: `ssl_mt' undeclared (first use in this function)
    nessus-fetch.c:665: warning: implicit declaration of function `TLSv1_client_method'
    nessus-fetch.c:673: `ssl_ctx' undeclared (first use in this function)
    nessus-fetch.c:673: warning: implicit declaration of function `SSL_CTX_new'
    nessus-fetch.c:680: warning: implicit declaration of function `SSL_CTX_set_options'
    nessus-fetch.c:680: `SSL_OP_ALL' undeclared (first use in this function)
    nessus-fetch.c:686: warning: implicit declaration of function `SSL_new'
    nessus-fetch.c:693: warning: implicit declaration of function `SSL_set_fd'
    nessus-fetch.c:694: warning: implicit declaration of function `SSL_set_connect_state'
    nessus-fetch.c: In function `main':
    nessus-fetch.c:902: warning: implicit declaration of function `nessus_SSL_init'
    make[1]: ** [nessus-fetch.o] Erro 1
    make[1]: Leaving directory `/root/nessus/nessus-core/nessus-fetch'
    make: ** [fetchtool] Erro 2

    Alguém pode me ajudar, estou procurando a solução para esse erro a dois dias, e não consigo resolver o problema.

    Desde já agradeço.

    Hacinn

  2. #2
    Hacinn
    Visitante

    Padrão Solução

    Existe na lista de bugs do site do Nessus, uma
    referencia ao Erro abaixo, o ID do bug é 1098.
    Aparentemente o problema acontece porque o script
    nessus-installer.sh não consegue encontrar o arquivo
    ssl.h, que no meu caso está no caminho
    /usr/include/openssl.

    Para corrigir o erro editei o script
    nessus-installer.sh e adicionei o caminho
    /usr/include/openssl na variável PATH. Depois disso o
    script executou normalmente e instalação completo sem
    problemas. Gostaria de agradecer a Cameron Harr que me
    ajudou a solucionar o problema.

    Obrigado

    Hacinn