Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128965 - net-analyzer/iptraf-3.0.0-r2
Summary: net-analyzer/iptraf-3.0.0-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-04-05 14:20 UTC by Michal Jakubowski
Modified: 2006-04-15 15:31 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 Michal Jakubowski 2006-04-05 14:20:15 UTC
I have a problem:
Calculating dependencies... done!
>>> Emerging (1 of 1) net-analyzer/iptraf-3.0.0-r2 to /
>>> checksums files   ;-) iptraf-3.0.0.ebuild
>>> checksums files   ;-) iptraf-2.7.0-r1.ebuild
>>> checksums files   ;-) iptraf-3.0.0-r1.ebuild
>>> checksums files   ;-) iptraf-2.7.0-r2.ebuild
>>> checksums files   ;-) iptraf-3.0.0-r2.ebuild
>>> checksums files   ;-) files/digest-iptraf-2.7.0-r1
>>> checksums files   ;-) files/digest-iptraf-3.0.0
>>> checksums files   ;-) files/iptraf-2.7.0-atheros.patch
>>> checksums files   ;-) files/iptraf-3.0.0-atheros.patch
>>> checksums files   ;-) files/iptraf-2.7.0-2.6.patch
>>> checksums files   ;-) files/iptraf-3.0.0-linux-headers.patch
>>> checksums files   ;-) files/iptraf-3.0.0-build.patch
>>> checksums files   ;-) files/iptraf-3.0.0-Makefile.patch
>>> checksums files   ;-) files/digest-iptraf-3.0.0-r1
>>> checksums files   ;-) files/iptraf-2.7.0-ipv6-glibc24.patch
>>> checksums files   ;-) files/iptraf-3.0.0-bnep.patch
>>> checksums files   ;-) files/digest-iptraf-2.7.0-r2
>>> checksums files   ;-) files/digest-iptraf-3.0.0-r2
>>> checksums files   ;-) files/iptraf-3.0.0-ipv6-glibc24.patch
>>> checksums src_uri ;-) iptraf-3.0.0.tar.gz
>>> checksums src_uri ;-) iptraf-3.0.0-ipv6.patch.bz2
>>> Unpacking source...
>>> Unpacking iptraf-3.0.0.tar.gz to /var/tmp/portage/iptraf-3.0.0-r2/work
 * Applying iptraf-3.0.0-atheros.patch ...                                [ ok ]
 * Applying iptraf-3.0.0-build.patch ...                                  [ ok ]
 * Applying iptraf-3.0.0-linux-headers.patch ...                          [ ok ]
 * Applying iptraf-3.0.0-bnep.patch ...                                   [ ok ]
 * Applying iptraf-3.0.0-Makefile.patch ...                               [ ok ]
 * Applying iptraf-3.0.0-ipv6.patch.bz2 ...                               [ ok ]
 * Applying iptraf-3.0.0-ipv6-glibc24.patch ...                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/iptraf-3.0.0-r2/work/iptraf-3.0.0 ...
In file included from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/netinet/ip6.h:23,
                 from othptab.c:21:
/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/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/netinet/ip6.h:23,
                 from othptab.c:21:
/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/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/netinet/ip6.h:23,
                 from othptab.c:21:
/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
make: *** [othptab.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-analyzer/iptraf-3.0.0-r2 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  iptraf-3.0.0-r2.ebuild, line 47:   Called die

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


Portage 2.1_pre7-r4 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.16-hardened i686)
=================================================================
System uname: 2.6.16-hardened i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2-r1
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mfpmath=sse,387 -O2 -s -pipe -fomit-frame-pointer"
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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -mfpmath=sse,387 -O2 -s -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.edu.pl http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1,--enable-new-dtags,--sort-common,-Bdirect -s"
LINGUAS="pl"
MAKEOPTS="-j2 -s"
PKGDIR="/home/demon/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-xgl /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://gentoo.prz.edu.pl/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d adsl alsa apache2 apic apm arts atm avi berkdb bitmap-fonts cairo cdparanoia cdrom cmov crypt cups curl cx8 de divx4linux dri dv dvd dvdr dvdread dvi eds elibc_glibc emboss encode esd extramodules fam foomaticdb fortran fpu fxsr gdbm gg gif glitz gnome gpm gstreamer gtk gtk2 hal halimlib hardened hddtemp imlib ipv6 irssi isdnlog java jpeg kde kernel_linux libg++ libwww linguas_pl lirc mad mca mce mikmod mmx mmx2 mmxext motif mozilla mp3 mpeg mpeg2 mplayer msr mtrr mysql ncurses network nls nptl nptlonly nvidia ogg oggvorbis opengl opera oss pae pam pat pdf pdflib perl pge pic png ppdsdvdr pppd pse pse36 python qt quicktime readline sdl sep serial server spell sse ssl syscall tcpd tiff transcode truetype truetype-fonts tsc type1-fonts usb userland_GNU vme voice vorbis win32codecs wmf wxGTK x86 xml xml2 xmms xv zlib input_devices_keyboard input_devices_mouse video_cards_nvidia video_cards_vesa video_cards_fbdev video_cards_nv video_cards_vga"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-05 14:27:01 UTC
Well, I suspect that's the hardmasked linux-headers that break this for you...
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2006-04-06 11:20:21 UTC
netmon, the IPv6 patch needs editing:

* othptab.c -- netinet/ #includes need to go before the linux/ ones.
* Same for tr.c:

diff -ur iptraf-3.0.0/src/tr.c src/tr.c
--- iptraf-3.0.0/src/tr.c       2005-09-13 07:42:54.000000000 +0100
+++ src/tr.c    2006-04-06 19:02:30.000000000 +0100
@@ -7,8 +7,8 @@
  */

 #include <asm/types.h>
-#include <linux/if_tr.h>
 #include <netinet/in.h>
+#include <linux/if_tr.h>

 unsigned int get_tr_ip_offset(unsigned char *pkt)
 {
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2006-04-07 15:16:08 UTC
is that patch bound to some special versions (eg. latest hardened headers) or can that one be applied in general?
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2006-04-07 15:23:49 UTC
The patch for tr.c needs to be applied in all circumstances. The othptab.c problem is only there if and only if the IPv6 patch is applied; all that needs doing to the actual IPv6 patch is this:

diff -c /tmp/iptraf-3.0.0-ipv6.patch /tmp/iptraf-3.0.0-ipv6.patch.tmp
--- /tmp/iptraf-3.0.0-ipv6.patch        Fri Apr  7 23:21:46 2006
+++ /tmp/iptraf-3.0.0-ipv6.patch.tmp    Fri Apr  7 23:22:48 2006
@@ -736,9 +736,9 @@
 @@ -18,6 +18,8 @@

  #include <asm/types.h>
- #include <linux/if_ether.h>
 +#include <netinet/ip6.h>
 +#include <netinet/icmp6.h>
+ #include <linux/if_ether.h>
  #include <winops.h>
  #include "arphdr.h"
  #include "options.h"
Comment 5 Markus Ullmann (RETIRED) gentoo-dev 2006-04-15 15:31:49 UTC
Okay, as they're only compiletime fixes, added to 3.0.0-r2

Plasmaroo: thanks for your help :)

Fixed in cvs