Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69412 - (nessus) net-analyzer/libnasl-2.2.0 fails to compile
Summary: (nessus) net-analyzer/libnasl-2.2.0 fails to compile
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-29 08:20 UTC by valli
Modified: 2005-01-08 23:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valli 2004-10-29 08:20:51 UTC
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"
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2004-10-30 05:46:25 UTC
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".

Comment 2 valli 2004-10-30 10:33:19 UTC
Neither MAKEOPTS="-j1" nor MAKEOPTS="-j2" works for me.
Still the same problems.
Comment 3 ChazeFroy 2004-10-31 12:17:43 UTC
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.
Comment 4 ChazeFroy 2004-10-31 19:32:23 UTC
Removing "-mcpu=pentium3" from "CFLAGS" allowed libnasl to compile on my system.
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2004-11-01 01:38:10 UTC
Does it compile with -march=pentium3 or -mtune=pentium3?
Comment 6 valli 2004-11-01 03:18:26 UTC
Oh yes,
When I change from
   CFLAGS="-mcpu=pentium3 -O3 -pipe"
to
   CFLAGS="-march=pentium3 -O3 -pipe"
it compiles without any problems.
Thanks.
   
Comment 7 Daniel Black (RETIRED) gentoo-dev 2005-01-08 03:04:20 UTC
please try version bump in bug 73780
Comment 8 Daniel Black (RETIRED) gentoo-dev 2005-01-08 23:59:32 UTC
generic gcc bug