[openvas-development] Successful build

Lmwangi labeneator at gmail.com
Fri Jan 20 16:12:57 CET 2006


Hi all,
 Just finished a build of openvas.... And it wasnt pretty. Also fixed
a few bugs here and there as well as managed to transnist from nessus
to openvas. (rename files, functions etc) In a nutshell, it goes like
this

cd openvas-libraries && ./configure --enable-openvaspcap  && make &&
sudo make install && cd.. &&\
cd openvas-libnasl && ./configure && make && sudo make install && cd .. && \
cd openvas-core/ && ./configure && openvas-core/openvas/gdchart0.94b
&& make && cd ../../ && make;
echo ++++++++++++++++++++++++++++
echo sort out issues manually. Read compilation and fix cflags and
Makefile within subdir openvas
echo ----------------------------
cd openvas-plugins/ && ./configure && make && sudo make install

Exact instructions for my build are:
compilation: the doc
In openvas-libraries/
./configure --enable-openvaspcap &&sleep 20 && make && sudo make install
for some reason my libs from openvas-libraries/libopenvas/ were not
getting installed so
cp openvas-libraries/libopenvas/libopenvas.* /usr/local/lib

In openvas-libraries/
sh ./configure && make && sudo make install
if you get the error
/usr/bin/ld: cannot find -lpcap-openvas
manually copy openvas-libraries/libopenvas/libopenvas.* /usr/local/lib
and rerun ldconfig

In openvas-core/
goto openvas-core/openvas/gdchart0.94b and run make
append to cflags in openvas-core/openvas '-Igdchart0.94b/'
run make and fix errors as they appear e.g in xstuff.c
<iterate>
fix errors within html_graph_output e.g
     pie_gif(480, 360, chart, GDC_3DBAR, num, services, value); from sthing like
    out_chart(480, 360, chart, GDC_3DBAR, num, services,1, value); ...
Me Thinks its due to the API flux of gdchart
run make.
</iterate>
modify the Makefile in to sthing like openvas-core/openvas/
LIBS = `$(OpenVASCONFIG) --libs` $(X_LIBS) $(X_CFLAGS) $(GTKLIBS) \
        $(RUN_LIBS) $(C_R_LIB) -lgd -lm  gdchart0.94b/gdc.o
gdchart0.94b/gdchart.o gdchart0.94b/gdc_pie.o
gdchart0.94b/price_conv.o  -lgd -Lgd1.3 -lm -Lgdchart0.94b/gd1.3/


In openvas-plugins/
./configure && make && sudo make install


####YOU MAY NEED TO chmod 755 ./ -R. OTHERWISE COMPILATION WILL BE VERY (*-*)
TODO
FIX nessus->openvas issues such as:

You are running a version of Openvas which is not configured to receive
a full plugin feed. As a result, your security audits will produce incomplete
results.

To obtain a complete plugin feed, you need to register your Openvas scanner
at the following URL :

               http://www.openvas.org/register/

phew!
Anyway. here is my build+files just in case anyone wants to derive diffs.

http://www.opensource.or.ke/downloads/OpenVas-20060120.tar.bz2


--
Article:
-
    And an unknown college dropout named Bill Gates, together with his
partner Paul Allen, wrote a version of the programming language BASIC
for the Altair, forming a company called Micro-Soft in the process. He
would later drop the hyphen and the capital S, and make billions of
dollars.
--
Comment:
+++
Dammit Slashdot! If you would just drop the capital S, you could be
making billions of dollars too!
+++++
http://slashdot.org/comments.pl?sid=171335&cid=14270286
+++++++
www.opensource.or.ke




More information about the Openvas-devel mailing list