Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78497 - libnasl & nessus-libraries version bump (libnasl-2.3.0 does not compile with gcc 3.4.3)
Summary: libnasl & nessus-libraries version bump (libnasl-2.3.0 does not compile with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 03:49 UTC by Roland Bramm
Modified: 2005-05-15 06:25 UTC (History)
1 user (show)

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 Roland Bramm 2005-01-18 03:49:10 UTC
libnasl does not compile with gcc 3.4.3 on AthlonXP Gentoo "unstable"

it is compiling using gcc 3.3.4

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
/bin/sh /var/tmp/portage/libnasl-2.3.0/work/libnasl/libtool --silent gcc -pipe
-O2 -mcpu=i686 -pipe  `sh ./cflags`  -c nasl_packet_forgery.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-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
nasl_packet_forgery.c:103: error: dereferencing pointer to incomplete type
snip ... lots of the stuff 
nasl_packet_forgery.c: In function `nasl_pcap_next':
nasl_packet_forgery.c:1447: error: dereferencing pointer to incomplete type
nasl_packet_forgery.c:1450: error: dereferencing pointer to incomplete type
make[1]: *** [nasl_packet_forgery.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/libnasl-2.3.0/work/libnasl/nasl'
make: *** [all] Error 2

(of course its the same when my CFlags are on
CFLAGS="-O2 -mtune=athlon-xp -pipe -frename-registers -fomit-frame-pointer -mmmx
-msse -m3dnow -mfpmath=sse")


emerge info:
#Portage 2.0.51-r13 (default-linux/x86/2004.2, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r5 i686)
=================================================================
System uname: 2.6.10-gentoo-r5 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 10 2005, 08:41:47)]
ccache version 2.3 [enabled]
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.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks noinfo prelink sandbox
sfperms strict userpriv usersandbox"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aac aalib alsa apache2 apm avi bash-completion berkdb
bitmap-fonts bonobo bzlib cdr crypt cups curl curlwrappers dga directfb
divx4linux doc dvd encode esd f77 fam fftw flac font-server foomatic foomaticdb
fortran freetype ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile icq
ifbcon imagemagick imap imlib ipv6 jack java jpeg junit ldap lesstif libg++
libwww mad mikmod mime mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis
opengl oscar oss pam pda pdflib perl php png portaudio ppds python qt quicktime
readline recode ruby scanner sdl slang slp socks5 spell spl sse ssl svg svga
tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts usb wmf
wxwindows x86 xine xinerama xml xml2 xmlrpc xmms xosd xsl xv xvid zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY

gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--enable-java-awt=gtk --enable-languages=c,c++,f77,objc,java
Thread model: posix
gcc version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, HTB-1.00)
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-05-14 23:54:28 UTC
There is a new version, 2.3.1, of nessus-libraries and libnasl out that compiles with both gcc 3.4 and 4.0.  Reassigning to netmon so they can bump the packages.

(note: the SRC_URI has changed slightly ftp://ftp.nessus.org/pub/nessus/experimental/nessus-2.3.1/src/)
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-05-15 06:25:45 UTC
both in CVS.