[nessus] libtool mandatory mode option

After about several minutes and a couple of modifications to a couple Makefiles, I was finally able to compile nessus from ports. I ran into the following problems when I initially started:

thinkcentre# make install clean
=> nessus-core-2.2.9.tar.gz doesn’t seem to exist in /usr/ports/distfiles/nessus.=> Attempting to fetch from ftp://ftp.nessus.org/pub/nessus/nessus-2.2.9/src/.
fetch: ftp://ftp.nessus.org/pub/nessus/nessus-2.2.9/src/nessus-core-2.2.9.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-2.2.9/src/.
nessus-core-2.2.9.tar.gz 100% of 658 kB 40 kBps 00m00s
===> Extracting for nessus-gtk2-2.2.9_1
=> MD5 Checksum OK for nessus/nessus-core-2.2.9.tar.gz.
=> SHA256 Checksum OK for nessus/nessus-core-2.2.9.tar.gz.
===> Patching for nessus-gtk2-2.2.9_1
===> Applying FreeBSD patches for nessus-gtk2-2.2.9_1
===> nessus-gtk2-2.2.9_1 depends on file: /usr/local/bin/intltool-extract – found
===> nessus-gtk2-2.2.9_1 depends on executable: pkg-config – found
===> nessus-gtk2-2.2.9_1 depends on shared library: nasl.4 – not found
===> Verifying install for nasl.4 in /usr/ports/security/nessus-libnasl
===> Extracting for nessus-libnasl-2.2.9_1
=> MD5 Checksum OK for nessus/libnasl-2.2.9.tar.gz.
=> SHA256 Checksum OK for nessus/libnasl-2.2.9.tar.gz.
===> Patching for nessus-libnasl-2.2.9_1
===> Applying FreeBSD patches for nessus-libnasl-2.2.9_1
===> nessus-libnasl-2.2.9_1 depends on executable: bison – found
===> nessus-libnasl-2.2.9_1 depends on package: libtool>=2.2 – found===> nessus-libnasl-2.2.9_1 depends on shared library: nessus.4 – found
===> Configuring for nessus-libnasl-2.2.9_1
creating cache ./config.cache
checking for gcc… cc
checking whether the C compiler (cc -O2 -pipe -march=pentium4m -fno-strict-alias
ing ) works… yes
checking whether the C compiler (cc -O2 -pipe -march=pentium4m -fno-strict-alias
ing ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether cc accepts -g… yes
checking for Cygwin environment… no
checking for mingw32 environment… no
checking how to run the C preprocessor… cc -E
checking host system type… i386-portbld-freebsd7.1
checking build system type… i386-portbld-freebsd7.1
checking for ld used by GCC… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognise dependant libraries… pass_all
checking for object suffix… o
checking for executable suffix… no
checking command to parse /usr/bin/nm -B output… ok
checking for dlfcn.h… yes
checking for ranlib… ranlib
checking for strip… strip
checking for objdir… .libs
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes

After the above errors, I manually edited the Makefile below adding appropriate ‘–mode=compile|link|finish|install’ to LIBTOOL Makefile options. These are the makes files that I had to edit manually:

  1. ../security/nessus-libnasl/work/libnasl/nasl/Makefile
  2. ../security/nessus-libraries/work/nessus-libraries/libhosts_gatherer/Makefile
  3. ../security/nessus-libraries/work/nessus-libraries/libpcap-nessus/Makefile
  4. ../security/nessus-libraries/work/nessus-libraries/libnessus/Makefile

I am no libtool expert and the modifications I made may not have been the best way to go about getting nessus to compile, but they worked for me. I used the Mac OSX Reference Library for a better understanding of the different libtool options.

Advertisements
This entry was posted in *Nix. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s