|
-
December 14th, 2004, 08:04 PM
#1
Junior Member
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
-
December 14th, 2004, 08:58 PM
#2
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?
-
December 14th, 2004, 09:07 PM
#3
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!
-
December 15th, 2004, 02:26 PM
#4
Junior Member
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
-
December 17th, 2004, 07:37 PM
#5
Junior Member
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
-
Forum Rules
|
|