Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144205 - net-analyzer/iptraf does NOT compile w/ linux-headers-2.6.17
Summary: net-analyzer/iptraf does NOT compile w/ linux-headers-2.6.17
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High major (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 149271 (view as bug list)
Depends on:
Blocks: 146939
  Show dependency tree
 
Reported: 2006-08-17 07:05 UTC by Conrad Kostecki
Modified: 2006-10-10 06:49 UTC (History)
7 users (show)

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


Attachments
a replacement iptraf-3.0.0-headerfix.patch (iptraf-3.0.0-headerfix.patch,727 bytes, patch)
2006-09-26 18:48 UTC, Bo Ørsted Andresen (RETIRED)
Details | Diff
a replacement iptraf-3.0.0-ipv6-headerfix.patch (iptraf-3.0.0-ipv6-headerfix.patch,462 bytes, patch)
2006-09-26 18:50 UTC, Bo Ørsted Andresen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2006-08-17 07:05:36 UTC
Hello!
I just can't compile net-analyzer/iptraf-3.0.0-r2 !

I also tried it bis DISABLED LDFLAGS ans CFLAGS="-march=k6-2 -O3 -pipe" !
Comment 1 Conrad Kostecki gentoo-dev 2006-08-17 07:05:40 UTC
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o deskman.o deskman.c
In file included from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/types.h:62: Fehler: In Konflikt stehende Typen f
Comment 2 Conrad Kostecki gentoo-dev 2006-08-17 07:05:40 UTC
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o deskman.o deskman.c
In file included from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/types.h:62: Fehler: In Konflikt stehende Typen für »dev_t«
/usr/include/linux/types.h:27: Fehler: Vorherige Deklaration von »dev_t« war hier
/usr/include/sys/types.h:72: Fehler: In Konflikt stehende Typen für »mode_t«
/usr/include/linux/types.h:33: Fehler: Vorherige Deklaration von »mode_t« war hier
/usr/include/sys/types.h:77: Fehler: In Konflikt stehende Typen für »nlink_t«
/usr/include/linux/types.h:36: Fehler: Vorherige Deklaration von »nlink_t« war hier
In file included from /usr/include/sys/types.h:134,
                 from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/time.h:105: Fehler: In Konflikt stehende Typen für »timer_t«
/usr/include/linux/types.h:45: Fehler: Vorherige Deklaration von »timer_t« war hier
In file included from /usr/include/sys/types.h:221,
                 from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/select.h:78: Fehler: In Konflikt stehende Typen für »fd_set«
/usr/include/linux/types.h:24: Fehler: Vorherige Deklaration von »fd_set« war hier
In file included from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/types.h:235: Fehler: In Konflikt stehende Typen für »blkcnt_t«
/usr/include/linux/types.h:158: Fehler: Vorherige Deklaration von »blkcnt_t« war hier
make: *** [othptab.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
make: Leaving directory `/var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0/src'

!!! ERROR: net-analyzer/iptraf-3.0.0-r2 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  iptraf-3.0.0-r2.ebuild, line 53:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 3 Conrad Kostecki gentoo-dev 2006-08-17 07:06:55 UTC
BlackBox ~ # emerge --info
Portage 2.1.1_pre5-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r5 i586)
=================================================================
System uname: 2.6.17-gentoo-r5 i586 Geode(TM) Integrated Processor by AMD PCS
Gentoo Base System version 1.12.4
Last Sync: Wed, 16 Aug 2006 21:20:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow a52 aac aalib acpi alsa apache2 bash-completion bzip2 cdinstall clamav crypt dedicated dts dvd elibc_glibc fbcon ftp gd gif gpm iconv imap innodb input_devices_keyboard input_devices_mouse javascript jpeg kernel_linux linguas_de mmx mp3 mpeg mysql mysqli ncurses nls nptl odbc ogg pam pcre php png quicktime readline samba session skey slang spell ssl symlink szip tcpd threads tiff truetype unicode upnp usb userland_GNU v4l vcd vhosts video_cards_fbdev video_cards_nsc video_cards_v4l video_cards_vesa video_cards_vga vorbis wifi win32codecs xml xvid zlib"
Unset:  CTARGET, INSTALL_MASK
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-08-17 07:39:54 UTC
Reopen with error messages in English. Set your locales to C when reporting bugs, please.
Comment 5 Conrad Kostecki gentoo-dev 2006-08-17 07:58:29 UTC
Ok! Here!

>>> Compiling source in /var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0 ...
make: Entering directory `/var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0/src'
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o iptraf.o iptraf.c
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o itrafmon.o itrafmon.c
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o packet.o packet.c
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o tcptable.o tcptable.c
gcc -march=k6-2 -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer -fno-align-functions -fno-align-loops -fno-align-jumps  -fno-align-labels -mfpmath=387 -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i586-pc-linux-gnu\"     -c -o othptab.o othptab.c
In file included from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:27: error: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:33: error: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:36: error: previous declaration of 'nlink_t' was here
In file included from /usr/include/sys/types.h:134,
                 from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/time.h:105: error: conflicting types for 'timer_t'
/usr/include/linux/types.h:45: error: previous declaration of 'timer_t' was here
In file included from /usr/include/sys/types.h:221,
                 from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:24: error: previous declaration of 'fd_set' was here
In file included from /usr/include/stdlib.h:439,
                 from tcptable.h:10,
                 from othptab.c:25:
/usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t'
/usr/include/linux/types.h:158: error: previous declaration of 'blkcnt_t' was here
make: *** [othptab.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0/src'

!!! ERROR: net-analyzer/iptraf-3.0.0-r2 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  iptraf-3.0.0-r2.ebuild, line 53:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 6 Conrad Kostecki gentoo-dev 2006-08-20 10:35:33 UTC
Could somebody reopen this bug?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-20 10:41:22 UTC
(In reply to comment #5)
> Could somebody reopen this bug?

Why don't you reopen it yourself? :-)
 

Comment 8 Conrad Kostecki gentoo-dev 2006-08-20 11:27:40 UTC
Oh? I didn't know, that I can do this :D

Thx 4 Info!
Comment 9 António Godinho 2006-08-22 04:10:46 UTC
Same thing here:

>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0 ...
make: Entering directory `/var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0/src'
gcc -march=pentium4 -O3 -pipe -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i686-pc-linux-gnu\"     -c -o iptraf.o iptraf.c
gcc -march=pentium4 -O3 -pipe -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i686-pc-linux-gnu\"     -c -o itrafmon.o itrafmon.c
gcc -march=pentium4 -O3 -pipe -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i686-pc-linux-gnu\"     -c -o packet.o packet.c
gcc -march=pentium4 -O3 -pipe -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i686-pc-linux-gnu\"     -c -o tcptable.o tcptable.c
gcc -march=pentium4 -O3 -pipe -DWORKDIR=\"/var/lib/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/sbin\" -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"i686-pc-linux-gnu\"     -c -o othptab.o othptab.c
In file included from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:24:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:27: error: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:33: error: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:36: error: previous declaration of 'nlink_t' was here
In file included from /usr/include/sys/types.h:133,
                 from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:24:
/usr/include/time.h:105: error: conflicting types for 'timer_t'
/usr/include/linux/types.h:45: error: previous declaration of 'timer_t' was here
In file included from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:24:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:24: error: previous declaration of 'fd_set' was here
In file included from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:24:
/usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t'
/usr/include/linux/types.h:158: error: previous declaration of 'blkcnt_t' was here
make: *** [othptab.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0/src'

!!! ERROR: net-analyzer/iptraf-3.0.0-r2 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  iptraf-3.0.0-r2.ebuild, line 53:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

gandalf bitchx # emerge --info
Portage 2.1.1_pre5-r2 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.17.8-grsec i686)
=================================================================
System uname: 2.6.17.8-grsec i686 Intel(R) Pentium(R) 4 CPU 1600MHz
Gentoo Base System version 1.12.4
Last Sync: Sun, 20 Aug 2006 20:00:09 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoclean autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo/ http://darkstar.ist.utl.pt/gentoo/ ftp://mirrors1.netvisao.pt/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache apache2 apm atm avi berkdb bitmap-fonts cli crypt dlloader dri eds elibc_glibc emboss encode foomaticdb fortran gd gif gpm gstreamer gtk2 imap input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ libwww mad mmx motif mpeg mysql ncurses nls nptl ogg opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl server session spell spl sqlite sse ssl tcpd threads truetype truetype-fonts type1-fonts udev userland_GNU video_cards_ati video_cards_fbdev video_cards_vesa xml xml2 xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

gandalf bitchx # 
Comment 10 Conrad Kostecki gentoo-dev 2006-09-09 07:57:26 UTC
Is it possible that somebody could write an patch?
Comment 11 FieldySnuts 2006-09-25 15:29:19 UTC
I am seeing this issue though it's with net-analyzer/iptraf-2.7.0-r1 .

I am using sys-kernel/linux-headers-2.6.17-r1.

emerge --info says I'm using gcc 3.4.6 but that is actually not true. I am in the middle of an emerge -e world after moving to 4.1.1 following the guide. gcc --version, glibc-config -c, glibc-config -l, and doing a psauxxx | grep gcc while emerging confirms I am using 4.1.1.

Portage 2.1.2_pre1-r1 (default-linux/x86/2006.1/desktop, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.18-ifc i686)
=================================================================
System uname: 2.6.18-ifc i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 24 Sep 2006 20:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://156.56.247.193/gentoo-portage"
USE="x86 3dnow X a52 alsa berkdb bitmap-fonts bzip2 cairo cdr chroot cli crypt dbus dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog jpeg kde kdeenablefinal kernel_linux ldap libg++ linguas_en mad mikmod mmx mp3 mpeg ncurses network nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd pwdb python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl svg theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_ati video_cards_fglrx video_cards_radeon vorbis win32codecs xml xml2 xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2006-09-25 16:13:21 UTC
(In reply to comment #10)
> I am seeing this issue though it's with net-analyzer/iptraf-2.7.0-r1 .
> I am using sys-kernel/linux-headers-2.6.17-r1.

x86@: I've confirmed this bug, can you please stable 3.0.0-r2 which is patched for this and compiles with 2.6.17-r1 headers?
Comment 13 Conrad Kostecki gentoo-dev 2006-09-25 16:20:21 UTC
iptraf-3.0.0-r2 does not compile with linux-headers-2.6.17-r1
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-26 03:34:27 UTC
1) emerges fine
2) passes collision test
3) works

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.5
Last Sync: Tue, 26 Sep 2006 07:20:02 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa artworkextra asf audiofile bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds elibc_glibc emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg jpeg2k kde kernel_linux ldap leim libg++ linguas_de lm_sensors mad maildir matroska mbox mhash mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb userland_GNU vcd video_cards_fbdev video_cards_radeon video_cards_vesa videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Conrad Kostecki gentoo-dev 2006-09-26 03:44:15 UTC
I still can't compile :(

BlackBox Jinzora # emerge --info
Portage 2.1.2_pre1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo i586)
=================================================================
System uname: 2.6.18-gentoo i586 Geode(TM) Integrated Processor by AMD PCS
Gentoo Base System version 1.12.5
Last Sync: Tue, 26 Sep 2006 00:20:01 +0000
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.6-r1, 2.0.30
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -Os -mmmx -m3dnow -pipe -fomit-frame-pointer -mfpmath=387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=k6-2 -Os -mmmx -m3dnow -pipe -fomit-frame-pointer -mfpmath=387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 / acpi alsa apache2 berkdb bzip2 caps cdinstall clamav crypt cups dedicated elibc_glibc ftp gd gpm iconv imap input_devices_keyboard input_devices_mouse javascript jpeg jpeg2k kernel_linux ldap linguas_de mbox mmx mp3 mysql mysqli ncurses nls nptl odbc offensive pam pcre php png readline samba sasl session slang snmp spell ssl symlink tcpd threads tiff truetype unicode usb userland_GNU vhosts video_cards_cyrix video_cards_fbdev video_cards_nsc video_cards_v4l video_cards_vesa video_cards_vga vorbis xinetd xml zlib"
Unset:  CTARGET, INSTALL_MASK
Comment 16 Stuart W. Finlayson 2006-09-26 10:34:06 UTC
It doesn't compile for me either...

wolverine ~ # emerge --info
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.5
Last Sync: Tue, 26 Sep 2006 14:30:07 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --exclude=*app-backup"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa amr arts bash-completion bitmap-fonts bzip2 bzlib cli crypt curl dlloader dri dvd dvdr elibc_glibc encode esd flac fortran gif gpm iconv idn imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux kqemu mad mmx mmx2 mng mp3 mp4 ncurses network no-old-linux nptl nptlonly ogg opengl pam pcre perl png ppds pppd python qt4 quicktime readline reflection rtc sdl session spell spl sse sse2 ssl symlink tcpd tetex tiff truetype truetype-fonts type1-fonts udev userland_GNU userlocales video_cards_dummy video_cards_fbdev video_cards_nvidia video_cards_vesa video_cards_vga vorbis x264 xml xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 17 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-09-26 17:48:44 UTC
This failed for me too. I noticed that Opfer has ipv6 in global USE so I tried:

USE=ipv6 emerge -v iptraf

and it turned out that worked. I assume it has to do with the patches that are applied only if the ipv6 USE flag is enabled..
Comment 18 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-09-26 18:48:40 UTC
Created attachment 98183 [details, diff]
a replacement iptraf-3.0.0-headerfix.patch

If iptraf-3.0.0-headerfix.patch is replaced with this patch iptraf-3.0.0-r2 compiles without the ipv6 USE flag. This simply adds "#include <sys/types.h>" in  othptab.c (which was the file that failed to compile).
Comment 19 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-09-26 18:50:56 UTC
Created attachment 98184 [details, diff]
a replacement iptraf-3.0.0-ipv6-headerfix.patch

And this is an updated iptraf-3.0.0-ipv6-headerfix.patch to make it succeed after the previous patch... Goes to FILESDIR too. These two replaced patches requires no changes to the ebuild.
Comment 20 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-09-26 19:03:06 UTC
Oh, and just to make it clear. The reason it worked with the ipv6 use flag was because it added "#include <netinet/icmp6.h>" (which in turn includes <sys/types.h>) in the very same spot where I have added "#include <sys/types.h>". I added <sys/types.h> before <netinet/icmp6.h> when the ipv6 USE flag is enabled.

Obviously all of this is a workaround to make e.g. sys/types.h be included before linux/types.h (because linux/types.h doesn't define stuff like __dev_t_defined whereas sys/types.h does)...
Comment 21 Conrad Kostecki gentoo-dev 2006-09-26 22:20:46 UTC
Thank You!
IPTraf does now compile!
Comment 22 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-27 02:20:19 UTC
*** Bug 149271 has been marked as a duplicate of this bug. ***
Comment 23 Philipp Riegger 2006-10-08 03:35:00 UTC
Could somebody please change the summary so that it is clear, that not only 3.x.x is affected?
Comment 24 Markus Ullmann (RETIRED) gentoo-dev 2006-10-10 06:49:46 UTC
Replaced patches in CVS, thanks for providing them :)

(In reply to comment #22)
> Could somebody please change the summary so that it is clear, that not only
> 3.x.x is affected?
You're right, but we're about to keyword 3.0.0-r2 stable per bug 146939 and drop 2.7 afterwards