I'm getting the following error when attempting to emerge net-analyzer/libnasl-2.3.0: ---snip--- make[1]: Entering directory `/var/tmp/portage/libnasl-2.3.0/work/libnasl/nasl' /bin/sh /var/tmp/portage/libnasl-2.3.0/work/libnasl/libtool --silent gcc -pipe -O3 -march=pentium4 -funroll-loops -pipe `sh ./cflags` -c nasl_packet_forgery.c /bin/sh /var/tmp/portage/libnasl-2.3.0/work/libnasl/libtool --silent gcc -pipe -O3 -march=pentium4 -funroll-loops -pipe `sh ./cflags` -c nasl_socket.c sh: ./cflags: No such file or directory /bin/sh /var/tmp/portage/libnasl-2.3.0/work/libnasl/libtool --silent gcc -pipe -O3 -march=pentium4 -funroll-loops -pipe `sh ./cflags` -c nasl_crypto.c mkdir: cannot create directory `.libs': File exists nasl_socket.c:32:22: includes.h: No such file or directory In file included from nasl_socket.c:35: nasl_global_ctxt.h:35: error: parse error before "FILE" nasl_global_ctxt.h:35: warning: no semicolon at end of struct or union nasl_global_ctxt.h:39: error: parse error before ':' token nasl_global_ctxt.h:40: error: parse error before ':' token nasl_global_ctxt.h:41: warning: data definition has no type or storage class nasl_global_ctxt.h:43: error: parse error before '*' token nasl_global_ctxt.h:44: error: parse error before '*' token nasl_socket.c: In function `unblock_socket': nasl_socket.c:53: error: `F_GETFL' undeclared (first use in this function) nasl_socket.c:53: error: (Each undeclared identifier is reported only once nasl_socket.c:53: error: for each function it appears in.) nasl_socket.c:59: error: `F_SETFL' undeclared (first use in this function) nasl_socket.c:59: error: `O_NONBLOCK' undeclared (first use in this function) nasl_socket.c: In function `block_socket': nasl_socket.c:69: error: `F_GETFL' undeclared (first use in this function) nasl_socket.c:75: error: `F_SETFL' undeclared (first use in this function) nasl_socket.c:75: error: `O_NONBLOCK' undeclared (first use in this function) nasl_socket.c: In function `add_udp_data': nasl_socket.c:97: error: `harglst' undeclared (first use in this function) nasl_socket.c:97: error: `udp_data' undeclared (first use in this function) nasl_socket.c:99: error: `NULL' undeclared (first use in this function) nasl_socket.c:102: error: `ARG_PTR' undeclared (first use in this function) nasl_socket.c: In function `get_udp_data': nasl_socket.c:116: error: `harglst' undeclared (first use in this function) nasl_socket.c:116: error: `udp_data' undeclared (first use in this function) nasl_socket.c:120: error: `NULL' undeclared (first use in this function) nasl_socket.c:124: warning: assignment makes pointer from integer without a cast nasl_socket.c: In function `rm_udp_data': nasl_socket.c:135: error: `harglst' undeclared (first use in this function) nasl_socket.c:135: error: `udp_data' undeclared (first use in this function) nasl_socket.c:138: error: `NULL' undeclared (first use in this function) nasl_socket.c: In function `nasl_open_privileged_socket': nasl_socket.c:158: error: storage size of 'addr' isn't known nasl_socket.c:158: error: storage size of 'daddr' isn't known nasl_socket.c:162: error: storage size of 'tv' isn't known nasl_socket.c:163: error: `fd_set' undeclared (first use in this function) nasl_socket.c:163: error: parse error before "rd" nasl_socket.c:173: error: `NULL' undeclared (first use in this function) nasl_socket.c:181: error: `IPPROTO_TCP' undeclared (first use in this function) nasl_socket.c:182: error: `AF_INET' undeclared (first use in this function) nasl_socket.c:182: error: `SOCK_STREAM' undeclared (first use in this function) nasl_socket.c:184: error: `SOCK_DGRAM' undeclared (first use in this function) nasl_socket.c:184: error: `IPPROTO_UDP' undeclared (first use in this function) nasl_socket.c:216: warning: assignment makes pointer from integer without a cast nasl_socket.c:218: error: dereferencing pointer to incomplete type nasl_socket.c:226: error: `errno' undeclared (first use in this function) nasl_socket.c:226: error: `EADDRINUSE' undeclared (first use in this function) nasl_socket.c:239: error: `rd' undeclared (first use in this function) nasl_socket.c:242: error: `EINTR' undeclared (first use in this function) nasl_socket.c:247: error: `SOL_SOCKET' undeclared (first use in this function) nasl_socket.c:247: error: `SO_ERROR' undeclared (first use in this function) nasl_socket.c:249: error: `stderr' undeclared (first use in this function) nasl_socket.c: In function `nasl_open_priv_sock_tcp': nasl_socket.c:285: error: `IPPROTO_TCP' undeclared (first use in this function) nasl_socket.c: In function `nasl_open_priv_sock_udp': nasl_socket.c:290: error: `IPPROTO_UDP' undeclared (first use in this function) nasl_socket.c: In function `nasl_open_sock_tcp_bufsz': nasl_socket.c:315: error: `NULL' undeclared (first use in this function) nasl_socket.c: In function `nasl_open_sock_udp': nasl_socket.c:351: error: storage size of 'soca' isn't known nasl_socket.c:357: error: `NULL' undeclared (first use in this function) nasl_socket.c:359: warning: assignment makes pointer from integer without a cast nasl_socket.c:361: error: dereferencing pointer to incomplete type nasl_socket.c:363: error: `AF_INET' undeclared (first use in this function) nasl_socket.c:365: error: `SOCK_DGRAM' undeclared (first use in this function) nasl_socket.c: In function `nasl_recv': nasl_socket.c:386: error: `fd_set' undeclared (first use in this function) nasl_socket.c:386: error: parse error before "rd" nasl_socket.c:387: error: storage size of 'tv' isn't known nasl_socket.c:395: error: `NULL' undeclared (first use in this function) nasl_socket.c:402: warning: assignment makes pointer from integer without a cast nasl_socket.c:404: error: `SOL_SOCKET' undeclared (first use in this function) nasl_socket.c:404: error: `SO_TYPE' undeclared (first use in this function) nasl_socket.c:408: error: `SOCK_DGRAM' undeclared (first use in this function) nasl_socket.c:421: error: `rd' undeclared (first use in this function) nasl_socket.c: In function `nasl_recv_line': nasl_socket.c:489: error: `time_t' undeclared (first use in this function) nasl_socket.c:489: error: parse error before "t1" nasl_socket.c:494: error: `NULL' undeclared (first use in this function) nasl_socket.c:498: error: `t1' undeclared (first use in this function) nasl_socket.c:507: warning: assignment makes pointer from integer without a cast nasl_socket.c: In function `nasl_send': nasl_socket.c:561: error: `NULL' undeclared (first use in this function) nasl_socket.c:573: error: `SOL_SOCKET' undeclared (first use in this function) nasl_socket.c:573: error: `SO_TYPE' undeclared (first use in this function) nasl_socket.c:574: error: `SOCK_DGRAM' undeclared (first use in this function) nasl_socket.c: In function `nasl_close_socket': nasl_socket.c:604: error: `NULL' undeclared (first use in this function) nasl_socket.c:610: error: `SOL_SOCKET' undeclared (first use in this function) nasl_socket.c:610: error: `SO_TYPE' undeclared (first use in this function) nasl_socket.c:613: error: `SOCK_DGRAM' undeclared (first use in this function) nasl_socket.c: At top level: nasl_socket.c:628: error: field `in' has incomplete type nasl_socket.c:631: error: `NULL' undeclared here (not in a function) nasl_socket.c: In function `nasl_join_multicast_group': nasl_socket.c:639: error: storage size of 'm' isn't known nasl_socket.c:655: error: `INADDR_ANY' undeclared (first use in this function) nasl_socket.c:670: error: `AF_INET' undeclared (first use in this function) nasl_socket.c:670: error: `SOCK_DGRAM' undeclared (first use in this function) nasl_socket.c:673: error: `errno' undeclared (first use in this function) nasl_socket.c:677: error: `IPPROTO_IP' undeclared (first use in this function) nasl_socket.c:677: error: `IP_ADD_MEMBERSHIP' undeclared (first use in this function) nasl_socket.c:686: warning: assignment makes pointer from integer without a cast nasl_socket.c: In function `nasl_leave_multicast_group': nasl_socket.c:711: error: storage size of 'ia' isn't known nasl_socket.c: In function `nasl_get_source_port': nasl_socket.c:741: error: storage size of 'ia' isn't known nasl_socket.c:760: error: `errno' undeclared (first use in this function) make[1]: *** [nasl_socket.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from nasl_packet_forgery.c:858: nasl_packet_forgery.c: In function `set_udp_elements': nasl_packet_forgery.c:42: warning: passing arg 1 of `np_in_cksum' from incompatible pointer type make[1]: Leaving directory `/var/tmp/portage/libnasl-2.3.0/work/libnasl/nasl' make: *** [all] Error 2 ---snip--- Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. emerge -u nessus Actual Results: See details. It fails to compile. Expected Results: Compile and install properly. Portage 2.0.51-r10 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc3 i686) ================================================================= System uname: 2.6.10-rc3 i686 Intel(R) Xeon(TM) CPU 3.06GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Jun 10 2004, 11:21:23)] dev-lang/python: 2.2.3-r5, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.4.21, 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://www.ibiblio.org/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.noved.org/ ftp://cs.ubishops.ca/pub/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X acl adns apm arts avi berkdb bitmap-fonts crypt cups encode fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 ipv6 java jpeg junit kde ldap libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba sdl slang snmp spell ssl svga tcltk tcpd tiff truetype xml2 xmms xv zlib" Unset: LDFLAGS
Same here.
I have the same problem (portage 2.0.51-r10). Strange thing is I can `emerge /path/to/libnasl-2.3.0.ebuild clean compile merge`. I use it as a workaround for my `emerge world -u`. # emerge info Portage 2.0.51-r10 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Sep 5 2004, 01:43:18)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig confcache cvs distlocks parallel-fetch prelink sandbox sfperms sign strict userpriv usersandbox verify-rdepend" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/overlay" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X acl acpi alsa apache2 avi berkdb bitmap-fonts cdr cjk composite crypt cups dba dga dv dvd dvdr encode fam fbcon flac foomaticdb fortran gd gd-external gdbm gif gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java javascript jpeg junit kde ldap libwww mad md5sum mikmod mmx mozcalendar mozilla mpeg mysql ncurses nls oggvorbis openal opengl oss pam pdflib perl png postgres prelude python qt quicktime readline real samba sasl sdl session slang spell sqlite sse sse2 ssl tcltk tcpd truetype usb xml xml2 xmms xv xvid yv12 zlib linguas_en linguas_vi" Unset: LDFLAGS
This ebuild doesn't like FEATURES="userpriv", remove it from FEATURES let it emerge.
*** Bug 77711 has been marked as a duplicate of this bug. ***
Hi, after setting MAKEOPTS to "-j1" I was able to successfully emerge libnasl. Can anyone confirm this? Poly
Changing MAKEOPTS to "-j1" also worked me.
FEATURES="userpriv" does not seem to be the culprit. I have the same problem (see http://bugs.gentoo.org/show_bug.cgi?id=77711 , which is a duplicate filed by me due to searching for nessus iso libnasl - mea culpa), but do not have "userpriv" in my features. FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" gives the same problem.
Setting MAKEOPTS to "-j1" is also working for me.
fixed - thanks for the solution too.
Using MAKEOPTS="-j1" fixed it for me too.