Ethereal-dev: [Ethereal-dev] ethereal-0.10.9 compile error in plugins/mate/packet-mate.c on RH

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Michael Coyle <spammedinbox@xxxxxxxxx>
Date: Fri, 4 Mar 2005 07:13:16 -0800 (PST)
Building ethereal 0.10.9 on RH 7.3, I get a
compilation error in plugins/mate/mate.c.

if /bin/sh ../../libtool --mode=compile gcc
-DHAVE_CONFIG_H -I. -I. -I../.. -I../.. 
-I/usr/local/include -I/usr/include/pcap  -DINET6
-D_U_="__attribute__((unused))" -Wall -W  -g -O2
-I/usr/local/include  -D_REENTRANT
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
-I/usr/include/pcap -MT packet-mate.lo -MD -MP -MF
".deps/packet-mate.Tpo" -c -o packet-mate.lo
packet-mate.c; \
then mv -f ".deps/packet-mate.Tpo"
".deps/packet-mate.Plo"; else rm -f
".deps/packet-mate.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I/usr/local/include -I/usr/include/pcap -DINET6
"-D_U_=__attribute__((unused))" -Wall -W -g -O2
-I/usr/local/include -D_REENTRANT
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pcap -MT packet-mate.lo -MD -MP -MF
.deps/packet-mate.Tpo -c packet-mate.c  -fPIC -DPIC -o
packet-mate.lo
In file included from packet-mate.c:33:
mate.h:327: parse error before `,`
packet-mate.c: In function `init_mate':
packet-mate.c:244: `mate_packet' undeclared (first use
in this function)
packet-mate.c:244: (Each undeclared identifier is
reported only once
packet-mate.c:244: for each function it appears in.)
make: *** [packet-mate.lo] Error 1

# gcc --version
2.96

# gtk-config --version
1.2.10

# uname -a
Linux getz 2.4.18-3custom #3 Thu Dec 9 18:01:20 CST
2004 i586 unknown

If I remove the "_U_" from line 327 of mate.h, I no
longer receive the error.

# diff mate.h mate.h.new
327c327
< extern int mate_packet(void* _U_, packet_info* _U_,
epan_dissect_t* _U_,const void* _U_);
---
> extern int mate_packet(void*, packet_info*,
epan_dissect_t*, const void*);

Thanks!
Mike

P.S.	Ethereal is a wonderful too!  Thanks for all your
efforts.  I use it all the time.


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/