Just to reply to myself so that there is a record of this problem on file
for others...

The error was with how Openssl was configured. By default, the prefix for
installation is /usr/local/ssl. Perhaps I'm missing something, but I have no
idea why they feel the need to have their own set of man, bin, lib, <etc>
directories. Simply do "./config --prefix=/usr/local" before building
Openssl and everything will be installed in standard locations. It's
slightly annoying because the installation never actually broke, and the
default headers already on the system made it seem like the installation had
succeeded...

Perhaps there is some reason this isn't the default, but I can't think of
it.

===========[b l i x]============
"Rub the bee. Rub the bee.
Keep rubbing the bee or damn
  your eyes, your life is ashes.
YOUR LIFE IS ASHES."
================================

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Matthew Braun
> Sent: Monday, June 17, 2002 5:08 PM
> To: [EMAIL PROTECTED]
> Subject: Errors compiling nessus-core 1.2.2 under Debian. Openssl
> problem?
>
>
> I'm trying to build Nessus on a pretty much stock Debian (stable) box and
> having trouble with compiling nessus-core. Nessus-libraries and libnasl
> built and installed fine, yet nessus-core returns a whole host of errors
> (appended below) before dying with:
>
> nessus.c: In function `connect_to_nessusd':
> nessus.c:535: warning: implicit declaration of function
> `X509_check_purpose'
> nessus.c:536: structure has no member named `sha1_hash'
> nessus.c:541: structure has no member named `sha1_hash'
> nessus.c:581: warning: implicit declaration of function
> `comm_get_dependencies'
> make[1]: *** [nessus.o] Error 1
> make: *** [client] Error 2
> make[1]: Leaving directory `/usr/local/src/nessus/nessus-core/nessus'
>
> So after some legwork I discovered that the file
> /usr/include/openssl/x509v3.h was, for some reason, different from my
> /usr/local/src/openssl-0.9.6d/include/openssl/x509v3.h and was
> missing some
> core definitions (like X509_check_purpose). I don't know why
> OpenSSL didn't
> install the new includes but I just backed up my old /usr/include/openssl
> and copied the includes directory from the source directory. However that
> still didn't solve the problem as the implementation of the
> X509_check_purpose method lurks in the file
> openssl-0.9.6d/crypto/X509v3/v3_purp.c
>
> How do I get all these files to play nice and get the compile to complete?
> Any assistance would be greatly appreciated!
>
> Stats:
>       Kernel- 2.4.18
>       SSL- 0.9.6d
>       Zlib- 1.1.4
>       Nmap- 2.54BETA34
>
>
> Other compile time errors and warnings:
>
> html_graph_output.c: In function `make_index':
> html_graph_output.c:1074: warning: implicit declaration of function
> `out_graph'
> html_graph_output.c: At top level:
> gdchart0.94b/gdc.h:67: warning: `_gdccfoo1' defined but not used
> gdchart0.94b/gdc.h:68: warning: `_gdccfoo2' defined but not used
>
> ...
>
>
> prefs_dialog/prefs_dialog_plugins_prefs.c: In function `file_selected':
> prefs_dialog/prefs_dialog_plugins_prefs.c:245: warning: control reaches
> end of non-void function
> gcc -g -O2  `sh ./cflags`      -c prefs_dialog/prefs_plugins.c
> prefs_dialog/prefs_plugins.c: In function `file_selected':
> prefs_dialog/prefs_plugins.c:57: warning: control reaches end of non-void
> function
>
> ...
>
>
> cd gdchart0.94b && make
> make[2]: Entering directory
> `/usr/local/src/nessus/nessus-core/nessus/gdchart0.94b'
> gcc -g -O2  `sh ../cflags` -Igd1.3 -I. -c gdc.c
> gdc.c:8: warning: missing braces around initializer
> gdc.c:8: warning: (near initialization for `GDC_fontc[0]')
> gdc.h:67: warning: `_gdccfoo1' defined but not used
> gdc.h:68: warning: `_gdccfoo2' defined but not used
> gcc -g -O2  `sh ../cflags` -Igd1.3 -I. -c gdchart.c
> gdchart.c:69: warning: `/*' within comment
> gdchart.c:761: warning: `/*' within comment
> gdchart.c:1782: warning: `/*' within comment
> gdchart.c:1822: warning: `/*' within comment
> gdchart.c: In function `draw_3d_line':
> gdchart.c:142: warning: unused variable `shclr'
> gdchart.c:141: warning: unused variable `lnclr'
> gdchart.c: In function `out_graph':
> gdchart.c:497: warning: suggest explicit braces to avoid ambiguous `else'
> gdchart.c:545: warning: suggest explicit braces to avoid ambiguous `else'
> gdchart.c:807: warning: suggest parentheses around assignment used as
> truth value
> gdchart.c:902: warning: suggest explicit braces to avoid ambiguous `else'
> gdchart.c:907: warning: suggest explicit braces to avoid ambiguous `else'
> gdchart.c:952: warning: suggest explicit braces to avoid ambiguous `else'
> gdchart.c:1262: warning: unused variable `lasty'
> gdchart.c:1339: warning: enumeration value `GDC_STACK_SUM' not handled in
> switchgdchart.c:1727: warning: suggest explicit braces to avoid ambiguous
> `else'
> gdchart.c:1742: warning: suggest explicit braces to avoid ambiguous `else'
> gdchart.c:434: warning: unused variable `ThumbUColor'
> gdchart.c:433: warning: unused variable `ThumbLblColor'
> gdchart.c:432: warning: unused variable `ThumbDColor'
> gdchart.c:358: warning: unused variable `volpoly'
> gdchart.c:343: warning: unused variable `k'
> gdchart.c:350: warning: `vyorig' might be used uninitialized in this
> function
> gdchart.c:420: warning: `uvol' might be used uninitialized in this
> function
> gdchart.c:426: warning: `VolColor' might be used uninitialized in this
> function
> gdchart.c:437: warning: `AnnoteColor' might be used uninitialized in this
> function
> gcc -g -O2  `sh ../cflags` -Igd1.3 -I. -c price_conv.c
> gcc -g -O2  `sh ../cflags` -Igd1.3 -I. -c gdc_pie.c
> gdc_pie.c:389: warning: `/*' within comment
> gdc_pie.c: In function `ocmpr':
> gdc_pie.c:111: warning: suggest parentheses around && within ||
> gdc_pie.c:114: warning: suggest parentheses around && within ||
> gdc_pie.c: In function `pie_gif':
> gdc_pie.c:209: warning: unused variable `label_explode_limit'
> gdc_pie.c:183: warning: unused variable `do3Dy'
> gdc_pie.c:182: warning: unused variable `do3Dx'
> gdc_pie.c:170: warning: unused variable `any_too_small'
> gdc_pie.c:169: warning: unused variable `num_slices2'
> gdc_pie.c:168: warning: unused variable `num_slices1'
> gdc_pie.c:149: warning: `EdgeColor' might be used uninitialized in this
> functiongdc_pie.c:150: warning: `EdgeColorShd' might be used uninitialized
> in this function
> gdc_pie.c:584: warning: `pcty' might be used uninitialized in this
> function
>
> ===========[b l i x]============
> "Rub the bee. Rub the bee.
> Keep rubbing the bee or damn
>   your eyes, your life is ashes.
> YOUR LIFE IS ASHES."
> ================================
>
>

Reply via email to