Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31028 - nessus can't emerge
Summary: nessus can't emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-13 04:38 UTC by Bash
Modified: 2003-10-16 09:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
-lpcap-nessus ?? fixed by -lpcap (nessus-config.patch,423 bytes, patch)
2003-10-13 04:41 UTC, Bash
Details | Diff
Log from nessus-lib (log,11.45 KB, text/plain)
2003-10-14 05:44 UTC, Bash
Details
Full log of merge nes-lib-2.0.7 (log,58.99 KB, text/plain)
2003-10-14 09:07 UTC, Bash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bash 2003-10-13 04:38:41 UTC
emerge nessus not work
problems with `nessus-config --libs'
Comment 1 Bash 2003-10-13 04:41:25 UTC
Created attachment 19171 [details, diff]
-lpcap-nessus ?? fixed by -lpcap
Comment 2 Bash 2003-10-13 04:42:51 UTC
Additional info:
Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU
1.80GHz
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss avi foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses
nls pdflib png truetype xmms xv zlib gdbm berkdb slang readline sdl gpm tcpd
pam ssl perl python imlib qt motif X apm acl acpi alsa cdr crypt curl dvb
dvd encode ethereal flash sse usb mmx opengl xface xinerama fbcon pcmcia
spell samba xml xml2 gtk gtk2 -3dfx -debug -emacs -esd -3dnow -aalib -apache2
-arts -canna -cjk -cups -freetds -gtkhtml -imap -ipv6 -java -junit -kde -ldap
-lirc -matrox -oci8 -odbc -pda -postgres -ruby -snmp -socks5 -tetex -ppc
-sparc -alpha -mips -hppa -arm -voodoo3 -svga -oggvorbis -gnome -quicktime"
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-13 05:35:18 UTC
Please post a more verbose error report. Especially the output of the failed
emerge command. I don't see your problem yet.
Comment 4 Bash 2003-10-13 08:03:33 UTC
st1.: emerge -v nessus-libraries (+OK)
st2.: emerge -v nessus (nessus-core: +ERR)
gcc  auth.o comm.o sighand.o xstuff.o cli.o parser.o plugin_infos.o preferences.o
families.o attack.o report.o report_ng.o report_save.o report_utils.o nsr_output.o
nbe_output.o html_output.o latex_output.o text_output.o xml_output.o xml_output_ng.o
html_graph_output.o error_dialog.o password_dialog.o monitor_dialog.o backend.o
data_mining.o prefs_dialog.o prefs_dialog_misc.o prefs_dialog_scan_opt.o
prefs_dialog_user.o prefs_dialog_auth.o prefs_dialog_plugins_prefs.o prefs_plugins.o
prefs_target.o prefs_about.o prefs_kb.o netmap.o detached_index.o read_target_file.o
gdchart0.94b/gdc.o gdchart0.94b/price_conv.o gdchart0.94b/gdc_pie.o gdchart0.94b/gdchart.o
regex.o filter.o dirutils.o sslui.o nessus.o    -o nessus `/usr/bin/nessus-config
--libs` -L/usr/X11R6/lib -I/usr/X11R6/include -L/usr/lib -L/usr/X11R6/lib
-lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -L/usr/lib
-lglib   gdchart0.94b/gd1.3/libgd.a -lm  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lpcap-nessus
collect2: ld returned 1 exit status
make[1]: *** [nessus] Error 1
make[1]: Leaving directory `/var/tmp/portage/nessus-core-2.0.7-r1/work/nessus-core/nessus'
make: *** [client] Error 2

!!! ERROR: net-analyzer/nessus-core-2.0.7-r1 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! emake failed
-------------------------------------------------
What is 'pcap-nessus' ??
from /usr/bin/nessus-config:

        --libs)
        
                echo $Xn "-L$DESTDIR$LIBDIR -lnessus -lhosts_gatherer -lpcap-nessus
$CIPHER $EXTRA $Xc"
                ;;

I think that there must be -lpcap (without -nessus).
When i fixed this, nessus emerged perfectly and work good!

P.S. How about nessus-2.0.8 ?
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-13 22:42:37 UTC
libpcap-nessus belongs to nessus-libraries. Could you please show me the
output of "epm -ql nessus-libraries"?
Comment 6 Bash 2003-10-14 03:14:31 UTC
Now in gentoo is newest nessus-libraries, and i haven't upgrade my
----
*  net-analyzer/nessus-libraries
      Latest version available: 2.0.8a
      Latest version installed: 2.0.7
                                ^^^^^
      Size of downloaded files: 406 kB
      Homepage:    http://www.nessus.org/
      Description: A remote security scanner for Linux (nessus-libraries)
----
blackhole conf.d # epm -ql nessus-libraries
/usr/lib/libnessus.so.2.0.7
/usr/lib/libnessus.so.2
/usr/lib/libnessus.so
/usr/lib/libnessus.la
/usr/lib/libnessus.a
/usr/lib/libhosts_gatherer.so.2.0.7
/usr/lib/libhosts_gatherer.so.2
/usr/lib/libhosts_gatherer.so
/usr/lib/libhosts_gatherer.la
/usr/lib/libhosts_gatherer.a
/usr/include/nessus/includes.h
/usr/include/nessus/libnessus.h
/usr/include/nessus/harglists.h
/usr/include/nessus/libvers.h
/usr/include/nessus/getopt.h
/usr/bin/nessus-config
/usr/sbin/uninstall-nessus
/usr/share/man/man1/nessus-config.1.gz
/usr/share/doc/nessus-libraries-2.0.7/README.BPF.gz
/usr/share/doc/nessus-libraries-2.0.7/README.HPUX.gz
/usr/share/doc/nessus-libraries-2.0.7/README.WINDOWS.gz
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-14 03:25:54 UTC
Obviously something went wrong that wasn't caught.

zaphod nessus-libraries # epm -q nessus-libraries
nessus-libraries-2.0.7
zaphod nessus-libraries # epm -ql nessus-libraries
/usr/bin/nessus-config
/usr/lib/libpcap-nessus.a
/usr/lib/libhosts_gatherer.la
/usr/lib/libpcap-nessus.so.2.0.7
/usr/lib/libnessus.a
/usr/lib/libnessus.so.2.0.7
/usr/lib/libpcap-nessus.la
/usr/lib/libpcap-nessus.so
/usr/lib/libnessus.la
/usr/lib/libnessus.so
/usr/lib/libhosts_gatherer.a
/usr/lib/libhosts_gatherer.so.2.0.7
/usr/sbin/uninstall-nessus
/usr/share/doc/nessus-libraries-2.0.7/README.BPF.gz
/usr/share/doc/nessus-libraries-2.0.7/README.HPUX.gz
/usr/share/doc/nessus-libraries-2.0.7/README.WINDOWS.gz
/usr/share/man/man1/nessus-config.1.gz
/usr/include/nessus/net/bpf.h
/usr/include/nessus/libvers.h
/usr/include/nessus/harglists.h
/usr/include/nessus/libnessus.h
/usr/include/nessus/getopt.h
/usr/include/nessus/pcap.h
/usr/include/nessus/includes.h
/usr/include/nessus/pcap-namedb.h
/usr/lib/libnessus.so.2
/usr/lib/libhosts_gatherer.so
/usr/lib/libpcap-nessus.so.2
/usr/lib/libhosts_gatherer.so.2

on my system.
Please attach (do not paste) the whole emerge nessus-libraries output.
Comment 8 Bash 2003-10-14 05:44:44 UTC
Created attachment 19218 [details]
Log from nessus-lib
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-14 07:14:26 UTC
This is _not_ the log of the compilation. Please clean the build directory
and attach the full log.
Comment 10 Bash 2003-10-14 09:07:37 UTC
Created attachment 19223 [details]
Full log of merge nes-lib-2.0.7
Comment 11 Patrick Kursawe (RETIRED) gentoo-dev 2003-10-15 06:10:51 UTC
There we have your problem:

In file included from pcap-snoop.c:32:
/usr/include/net/raw.h:24: error: syntax error before "u32"
/usr/include/net/raw.h:31: error: `MAX_INET_PROTOS' undeclared here (not
in a function)
/usr/include/net/raw.h:33: error: syntax error before "raw_v4_lock"
pcap-snoop.c:41:29: netinet/udp_var.h: No such file or directory
pcap-snoop.c:43:27: netinet/tcpip.h: No such file or directory

I don't have the file /usr/include/net/raw.h on my system. Could you please
use
epm -qf /usr/include/net/raw.h
to check to which package it belongs?
Comment 12 Bash 2003-10-16 09:52:19 UTC
Oh.... sorry! It is my old bug with headers... 
Bug closed!
THX