Compiling error in nessus-core 2.2.2?
Results 1 to 5 of 5

Thread: Compiling error in nessus-core 2.2.2?

  1. #1
    Junior Member
    Join Date
    Aug 2003
    Posts
    25

    Question Compiling error in nessus-core 2.2.2?

    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. #2
    Just a Virtualized Geek MrLinus's Avatar
    Join Date
    Sep 2001
    Location
    Redondo Beach, CA
    Posts
    7,324
    Did you do a ./configure first? I'm moving this to OS because it's more of an OS issue than an security issue. Also, is your version just 2.2.2 or 2.2.2a? It appears a new version was released on Dec 10th that fixed some issues with Solaris installs of the same file (nessus-fetch). Perhaps a similar issue exists for RH?
    Goodbye, Mittens (1992-2008). My pillow will be cold without your purring beside my head
    Extra! Extra! Get your FREE copy of Insight Newsletter||MsMittens' HomePage

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Posts
    1,130
    The "parse error before '*' token" would lead me to believe that there's a syntax error somewhere. Maybe something got a little messed up with the download.

    Or maybe the preprocessor isn't interpreting some directives properly, so an extra { gets stuck in somewhere or something.

    Which gcc are you using?

    <edit>
    The error comes from the line
    Code:
    static int ssl_connect_timeout(SSL *ssl, int tmo)
    The SSL data structure is undefined, which could be caused by the OpenSSL library being in a non standard location, or like MsMittens said, by not not running ./configure.

    If you have SSL libraries installed in an unusual location, that needs to be specified on the ./configure command line, with something like "./configure --libdir=(insert directory here)", or you need symlinks to the proper locations.
    </edit>
    Government is like fire - a handy servant, but a dangerous master - George Washington
    Government is not reason, it is not eloquence - it is force. - George Washington.

    Join the UnError community!

  4. #4
    Junior Member
    Join Date
    Aug 2003
    Posts
    25

    Question

    I did ./configure first. I have installed gcc2.95-2.95.4 and gcc-3.2.2-28968 packages. I try ./configure --libdir=/usr/lib but when i run make i received the same error.

    Thanks by help.

    Hacinn

  5. #5
    Junior Member
    Join Date
    Aug 2003
    Posts
    25

    Thumbs up Solution

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •