Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153834 - net-analyzer/netdude "array type has incomplete element type"
Summary: net-analyzer/netdude "array type has incomplete element type"
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://netdude.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 09:25 UTC by Frank Mileto
Modified: 2006-11-27 16:27 UTC (History)
0 users

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


Attachments
patch (netdude.patch,3.01 KB, patch)
2006-11-02 16:35 UTC, Frank Mileto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Mileto 2006-11-02 09:25:08 UTC
gcc version 4.1.1 (Gentoo 4.1.1)
//error*******************************************
./nd_ip.h:44: error: array type has incomplete element type
./nd_ip.h:45: error: array type has incomplete element type
./nd_ip.h:46: error: array type has incomplete element type
//error********************************************
//Patch*******************************************
Only in netdude-0.4.6/protocols/ip/: .deps
Only in netdude-0.4.6/protocols/ip/: .libs
Only in netdude-0.4.6/protocols/ip/: Makefile
Only in netdude-0.4.6/protocols/ip/: callbacks.lo
Only in netdude-0.4.6/protocols/ip/: callbacks.o
Only in netdude-0.4.6/protocols/ip/: interface.lo
Only in netdude-0.4.6/protocols/ip/: interface.o
diff -up tmp/netdude-0.4.6/protocols/ip/nd_ip.c netdude-0.4.6/protocols/ip/nd_ip.c
--- tmp/netdude-0.4.6/protocols/ip/nd_ip.c	2004-02-02 12:00:31.000000000 -0600
+++ netdude-0.4.6/protocols/ip/nd_ip.c	2006-11-02 02:26:10.000000000 -0600
@@ -82,7 +82,7 @@ static ND_ProtoField ip_opt_fields[] = {
 
 /* Menu definitions: */
 
-ND_MenuData ip_menu_p_data[] = {
+ND_MenuData *ip_menu_p_data = {
   { N_("TCP"),       N_("TCP"),                                    IPPROTO_TCP,  nd_ip_p_value_cb },
   { N_("UDP"),       N_("UDP"),                                    IPPROTO_UDP,  nd_ip_p_value_cb },
   { N_("ICMP"),      N_("ICMP"),                                   IPPROTO_ICMP, nd_ip_p_value_cb },
@@ -98,7 +98,7 @@ ND_MenuData ip_menu_p_data[] = {
 };
 
 
-ND_MenuData ip_menu_tos_data[] = {
+ND_MenuData *ip_menu_tos_data = {
   { N_("Low delay"),         N_("Minimize delay"),       IPTOS_LOWDELAY,    nd_ip_tos_value_cb },
   { N_("Throughput"),        N_("Maximize throughput"),  IPTOS_THROUGHPUT,  nd_ip_tos_value_cb },
   { N_("Reliability"),       N_("Maximize reliability"), IPTOS_RELIABILITY, nd_ip_tos_value_cb },
@@ -109,7 +109,7 @@ ND_MenuData ip_menu_tos_data[] = {
 };
 
 
-ND_MenuData ip_menu_ecn_data[] = {
+ND_MenuData *ip_menu_ecn_data = {
   { N_("-"),                 N_("Not ECN-capable transport"),     0x00,     nd_ip_ecn_value_cb },
   { N_("ECT(0)"),            N_("Sender ECN-capable"),            0x01,     nd_ip_ecn_value_cb },
   { N_("ECT(1)"),            N_("Receiver ECN-capable"),          0x02,     nd_ip_ecn_value_cb },
diff -up tmp/netdude-0.4.6/protocols/ip/nd_ip.h netdude-0.4.6/protocols/ip/nd_ip.h
--- tmp/netdude-0.4.6/protocols/ip/nd_ip.h	2003-03-28 18:20:03.000000000 -0600
+++ netdude-0.4.6/protocols/ip/nd_ip.h	2006-11-02 02:16:58.000000000 -0600
@@ -41,9 +41,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE 
 #define ND_IP_PAYLOAD(iphdr) (((guchar *) iphdr) + (iphdr->ip_hl << 2))
 #define ND_IP_FRAG_OFFSET(iphdr) ((ntohs(iphdr->ip_off) & IP_OFFMASK) << 3)
 
-extern ND_MenuData ip_menu_p_data[];
-extern ND_MenuData ip_menu_tos_data[];
-extern ND_MenuData ip_menu_ecn_data[];
+extern ND_MenuData *ip_menu_p_data;
+extern ND_MenuData *ip_menu_tos_data;
+extern ND_MenuData *ip_menu_ecn_data;
 
 
 /* These are the implementations for IPv4 of ND_Protocol's callbacks: */
Only in netdude-0.4.6/protocols/ip/: nd_ip.la
Only in netdude-0.4.6/protocols/ip/: nd_ip.lo
Only in netdude-0.4.6/protocols/ip/: nd_ip.o
Only in netdude-0.4.6/protocols/ip/: nd_ip_callbacks.lo
Only in netdude-0.4.6/protocols/ip/: nd_ip_callbacks.o
Only in netdude-0.4.6/protocols/ip/: nd_ipfrag.lo
Only in netdude-0.4.6/protocols/ip/: nd_ipfrag.o
Only in netdude-0.4.6/protocols/ip/: support.lo
Only in netdude-0.4.6/protocols/ip/: support.o
//patch********************************************************
//emerge --info**************************************************
Portage 2.1.2_pre2-r1 (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.1
Last Sync: Thu, 02 Nov 2006 06:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
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.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4  -O3 -pipe -fomit-frame-pointer -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4  -O3 -pipe -fomit-frame-pointer -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ "
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.gentoo.org/gentoo-portage"
USE="x86 X bash-completion berkdb bitmap-fonts cli cracklib crypt dlloader dri elibc_glibc fortran gdbm gpm gtk iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
//emerge --info *********************************************************
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-02 09:50:33 UTC
Please, don't paste patches inline, use attachments.
Comment 2 Frank Mileto 2006-11-02 16:35:53 UTC
Created attachment 101103 [details, diff]
patch

sorry
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2006-11-27 16:27:30 UTC
fixed by $upstream with version bump, please test with latest version now :)