nessus-libraries fails to compile in a x86 stable gentoo environment. Probable cause, i'm using distcc, and ccache. libtool didn't seem to like that. here is the last lines of the emerge: O2 -mcpu=i686 -pipe -I. -Ilinux-include -I../../include -DHAVE_CONFIG_H -DNESSUS_ON_SSL -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -I. -DHAVE_SSL -I/usr/lib/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libpcap-nessus -c ./pcap-linux.c /bin/sh /var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libtool ccache distcc -pipe -O2 -mcpu=i686 -pipe -O2 -O2 -mcpu=i686 -pipe -I. -Ilinux-include -I../../include -DHAVE_CONFIG_H -DNESSUS_ON_SSL -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -I. -DHAVE_SSL -I/usr/lib/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libpcap-nessus -c ./pcap.c libtool: warning: cannot infer operation mode from `ccache' libtool: you must specify a MODE Try `libtool --help' for more information. make[1]: *** [pcap-linux.o] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: warning: cannot infer operation mode from `ccache' libtool: you must specify a MODE Try `libtool --help' for more information. make[1]: *** [pcap.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libpcap-nessus' make: [pcap-make] Error 2 (ignored) cd libnessus && make make[1]: Entering directory `/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libnessus' /bin/sh /var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libtool ccache distcc -pipe -I../ -DHAVE_CONFIG_H -DNESSUS_ON_SSL -I. -DHAVE_SSL -I/usr/lib/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libpcap-nessus -O2 -mcpu=i686 -pipe -c plugutils.c /bin/sh /var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libtool ccache distcc -pipe -I../ -DHAVE_CONFIG_H -DNESSUS_ON_SSL -I. -DHAVE_SSL -I/usr/lib/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/include -I/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libpcap-nessus -O2 -mcpu=i686 -pipe -c system.c libtool: warning: cannot infer operation mode from `ccache' libtool: you must specify a MODE Try `libtool --help' for more information. make[1]: *** [plugutils.o] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: warning: cannot infer operation mode from `ccache' libtool: you must specify a MODE Try `libtool --help' for more information. make[1]: *** [system.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/nessus-libraries-2.0.6a/work/nessus-libraries/libnessus' make: *** [all] Error 2 !!! ERROR: net-analyzer/nessus-libraries-2.0.6a failed. !!! Function src_compile, Line 20, Exitcode 2 !!! emake failed Here is the emerge info of the machine. (I'm USING DISTCC). maxwell root # emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-xfs-r3 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo ftp://ftp.gtlib.cc.gatech.edu/pu b/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 3dnow avi cups encode gif jpeg gnome libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xmms xv gdbm berkdb slang readline arts svg a tcltk guile X sdl gpm tcpd libwww perl python esd imlib oggvorbis gtk qt kde m otif opengl mozilla apache2 acpi apm crypt dga gd ipv6 java ldap oss pam samba s sl xml xml2 zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage" FEATURES="sandbox ccache distcc userpriv usersandbox fixpackages"
Which version of ccache and distcc are you using? Are your distcc hosts using the same versions? I'm also using distcc/ccache and don't experience any problems. The difference between your emerge log and mine is that in your case the compiler is called as "ccache distcc" instead of "gcc" - it should definitely not be like this. Please re-emerge ccache and distcc if you can't fix this problem manually, then try again and tell me what happened.
Miguel? Still there?
Hi Patrick, Sorry for the delay. The thing is that the host wich failed possibly had some altered environment variables, like CC, etc.... So the build might have been affected by that, and because of that I can't really confirm this bug, sorry.. my fault, should've checked the config properly. Has soon has possible i'll try to re-emerge nessus-libs in that machine. (funny thing, he he reiserfs crashed on that machine, i'm doing a reiserfsck --rebuild-tree right now..) Miguel Filipe
Ok. Please tell me if you are able to reproduce some problem, until then I consider this as RESOLVED/INVALID.