net-analyzer/libnasl-2.2.0 fails to compile Reproducible: Always Steps to Reproduce: 1. emerge -u net-analyzer/libnasl 2. 3. Actual Results: .... creating include/config.h creating nasl/strutils.h cd nasl && make make[1]: Entering directory `/var/tmp/portage/libnasl-2.2.0/work/libnasl/nasl' /bin/sh /var/tmp/portage/libnasl-2.2.0/work/libnasl/libtool --silent gcc -pipe -mcpu=pentium3 -O3 -pipe `sh ./cflags` -c nasl_packet_forgery.c `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. nasl_packet_forgery.c: In function `forge_ip_packet': nasl_packet_forgery.c:90: error: invalid application of `sizeof' to incomplete type `ip' nasl_packet_forgery.c:92: error: invalid application of `sizeof' to incomplete type `ip' nasl_packet_forgery.c:95: error: dereferencing pointer to incomplete type nasl_packet_forgery.c:96: error: dereferencing pointer to incomplete type nasl_packet_forgery.c:97: error: dereferencing pointer to incomplete type nasl_packet_forgery.c:100: error: dereferencing pointer to incomplete type nasl_packet_forgery.c:102: error: dereferencing pointer to incomplete type .... Expected Results: emerge successfully Portage 2.0.51-r2 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.4 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc distlocks keeptemp keepwork noauto noclean notitles sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.inode.at http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.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="X alsa apm arts avi berkdb bitmap-fonts crypt cups dba encode esd f77 foomaticdb gd gdbm gif gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sasl sdl session slang spell ssl svga tcpd tiff truetype wmf x86 xml2 xmms xv zlib"
Can't replicate the problem. I've used gcc 3.4.2 and MAKEOPTS="-j2" and it compiles fine. Try to re-emerge with MAKEOPTS="-j1".
Neither MAKEOPTS="-j1" nor MAKEOPTS="-j2" works for me. Still the same problems.
I also have the same problem as valli. The compile still fails regardless of my MAKEOPTS with gcc 3.4.2 and glibc-2.3.4.20041006.
Removing "-mcpu=pentium3" from "CFLAGS" allowed libnasl to compile on my system.
Does it compile with -march=pentium3 or -mtune=pentium3?
Oh yes, When I change from CFLAGS="-mcpu=pentium3 -O3 -pipe" to CFLAGS="-march=pentium3 -O3 -pipe" it compiles without any problems. Thanks.
please try version bump in bug 73780
generic gcc bug