Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25544

Summary: tcpdump-3.7.2 does not compile with sctp enabled headers
Product: Gentoo Linux Reporter: andres.meyer
Component: Current packagesAssignee: Olivier Crete (RETIRED) <tester>
Status: RESOLVED FIXED    
Severity: normal CC: anti, hanno, mholzer
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: change header file inclusion in print-sctp.c
tcpdump-3.7.2.ebuild (header fix)
tcpdump-3.7.2-sctp.patch (header fix)

Description andres.meyer 2003-07-29 17:28:52 UTC
redifinition of SCTP constants -> no compile 

Reproducible: Always
Steps to Reproduce:
1. emerge tcpdump on a system with very recent headers (eg amd64) 
2. 
3. 



could be fixed with this patch: 
 
diff -rNu /usr/portage/net-analyzer/tcpdump/files/tcpdump-3.7.2-sctp.patch 
./files/tcpdump-3.7.2-sctp.patch 
--- /usr/portage/net-analyzer/tcpdump/files/tcpdump-3.7.2-sctp.patch    1970-01-01 
01:00:00.000000000 +0100 
+++ ./files/tcpdump-3.7.2-sctp.patch    2003-07-30 02:07:03.481241608 +0200 
@@ -0,0 +1,17 @@ 
+--- print-sctp.c.orig  2003-02-26 07:07:22.000000000 +0100 
++++ print-sctp.c       2003-07-30 02:03:56.775625176 +0200 
+@@ -47,11 +47,13 @@ 
+ #include <sys/socket.h> 
+ 
+ #include <unistd.h> 
++ 
++#include <netinet/in.h> 
++ 
+ #include "sctpHeader.h" 
+ #include "sctpConstants.h" 
+ #include <assert.h> 
+ 
+-#include <netinet/in.h> 
+ 
+ #include <stdio.h> 
+ #include <string.h> 
diff -rNu /usr/portage/net-analyzer/tcpdump/tcpdump-3.7.2.ebuild ./tcpdump-3.7.2.ebuild 
--- /usr/portage/net-analyzer/tcpdump/tcpdump-3.7.2.ebuild      2003-04-28 
08:20:28.000000000 +0200 
+++ ./tcpdump-3.7.2.ebuild      2003-07-30 02:12:21.231936160 +0200 
@@ -13,11 +13,18 @@ 
 
 LICENSE="BSD" 
 SLOT="0" 
-KEYWORDS="x86 ppc sparc alpha mips hppa arm" 
+KEYWORDS="x86 ppc sparc alpha mips hppa arm ~amd64" 
 
 DEPEND=">=net-libs/libpcap-0.6.1 
        ssl? ( >=dev-libs/openssl-0.6.9 )" 
 
+src_unpack() { 
+        unpack ${A} 
+        cd ${S} 
+        epatch ${FILESDIR}/${P}-sctp.patch 
+ 
+} 
+ 
 src_compile() { 
        local myconf
Comment 1 andres.meyer 2003-07-29 18:23:09 UTC
Created attachment 15206 [details, diff]
change header file inclusion in print-sctp.c
Comment 2 Daniel Mannarino 2003-10-06 19:00:10 UTC
Created attachment 18879 [details]
tcpdump-3.7.2.ebuild (header fix)

It worked for me.  Here it is in ebuild and patch form though.

-- Daniel Mannarino
Comment 3 Daniel Mannarino 2003-10-06 19:01:02 UTC
Created attachment 18880 [details, diff]
tcpdump-3.7.2-sctp.patch (header fix)

Here is the patch.

- Daniel Mannarino
Comment 4 Thomas Moerkerken 2003-10-23 08:50:36 UTC
I can confirm the patch works.

net-analyzer/tcpdump-3.7.2 does not compile without the patch.
net-analyzer/tcpdump-3.7.2 compiles with the patch applied. Thanks.

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.6.0-test8)
=================================================================
System uname: 2.6.0-test8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.11
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml
gdbm berkdb slang readline arts aalib bonobo svga java X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl
mozilla gphoto2 cdr -oss samba sse fbcon gtk2 tcltk dvd dvdr alsa directfb
mysql gd apache2"
Comment 5 KF1RdJJ3VXc 2003-10-23 10:28:37 UTC
The patch works for me as well.

net-analyzer/tcpdump-3.7.2 does not compile without the patch.
net-analyzer/tcpdump-3.7.2 compiles with the patch applied.

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://cudlug.cudenver.edu/gentoo/
http://oss.redundant.com/pub/gentoo http://adelie.polymtl.ca/ http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif imlib jpeg libg++
libwww mad mikmod motif mpeg ncurses nls oggvorbis pdflib png qt quicktime
sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline tcltk
java gpm tcpd pam ssl perl python opengl -X -gtk -gnome -alsa -kde"
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-27 04:08:19 UTC
*** Bug 32061 has been marked as a duplicate of this bug. ***
Comment 7 Will Woods (RETIRED) gentoo-dev 2003-11-04 11:14:48 UTC
Added tcpdump-3.7.2-sctp.patch and committed changes to ebuild.