Compiling error in nessus-core 2.2.2?

Discussion in 'other security issues & news' started by hacinn, Dec 14, 2004.

Thread Status:
Not open for further replies.
  1. hacinn

    hacinn Registered Member

    Joined:
    Jun 29, 2004
    Posts:
    6
    I have a RedHat 9. I download the sources of nessus 2.2.2 and i compiled the packages nessus-libraries and libnasl without problem. But in the compilation the package nessus-core, i received the error message:

    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


    Anyone can help me?

    Thanks.

    Hacinn
     
  2. hacinn

    hacinn Registered Member

    Joined:
    Jun 29, 2004
    Posts:
    6
    Hi,

    The error is in bug list in Nessus site, with ID 1098. The nessus-installer script doesn't find ssl.h file. I achieved to install, altering the nessus-installer script and i added the /usr/include/openssl in PATH variable. This path is where the ssl.h stay. Then i ran sh nessus-installer.sh and instalation complete normally. Thanks Cameron Harr by important help.

    Hacinn
     
  3. GlobalForce

    GlobalForce Regular Poster

    Joined:
    Jun 30, 2004
    Posts:
    3,581
    Location:
    Garden State, USA
    Very responsible of you Hacinn to provide the resolve of your dilemma. Thanks for sharing. :cool:

    I feel it's important for the primary help request to get back to the thread if a solution has been reached.
    Many threads go....unsolved, let alone a courtesy reply such as the one you provided.

    The gentleman you reference, did you locate him through FreshMeat?

    GF
     
Thread Status:
Not open for further replies.