Wireshark-dev: Re: [Wireshark-dev] ../../epan/dissectors/packet-per.h:37: error: expected decla

From: "yin sun" <sunyin51@xxxxxxxxx>
Date: Fri, 27 Jul 2007 16:39:57 -0400
the epan/dissectors/packet-per.h is missing this
#include <epan/asn1.h>

On 7/27/07, yin sun <sunyin51@xxxxxxxxx > wrote:
I am recompilling my plugins from 0.99.5 to 0.99.6 under Suse linux
everything is ok under 0.99.5, 0.99.6 wireshark also complies, but my plugin compilation failed

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/local/scratch/usr/local/include -I/usr/local/include -I/usr/include -DINET6 "-D_U_=__attribute__((unused))" -g -O2 -Wall -W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -I/usr/local/include -pthread -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -I/opt/gnome/include/gtk- 2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include -MT packet-jser.lo -MD -MP -MF .deps/packet- jser.Tpo -c packet-jser.c  -fPIC -DPIC -o .libs/packet-jser.o
In file included from packet-jser-template.c:35:

../../epan/dissectors/packet-per.h:37: error: expected declaration specifiers or '...' before 'asn1_ctx_t'                                                                                                      
../../epan/dissectors/packet-per.h:70: error: expected declaration specifiers or '...' before 'asn1_ctx_t'
../../epan/dissectors/packet-per.h:72: error: expected declaration specifiers or '...' before 'asn1_ctx_t'
../../epan/dissectors/packet-per.h:74: error: expected declaration specifiers or '...' before 'asn1_ctx_t'                                                                                                     
...

anyone can help me?

thanks,
/Yin