Ethereal-dev: RE: [Ethereal-dev] fix "parse error" with Debian's flex

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

From: "Dermot Bradley" <dermot.bradley@xxxxxxxxxxxx>
Date: Mon, 7 Jul 2003 17:26:58 +0100
> When I build ethereal's CVS head under Debian unstable, I get a "parse
> error" when building ascend-scanner.

I just hit the same problem today on Debian ("testing" dist) and used your
workaround - thanks!

However the build has failed again later on:

(cd .libs && gcc -c -fno-builtin -fno-rtti -fno-exceptions "etherealS.c")
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
rm -f .libs/etherealS.c .libs/ethereal.nm .libs/ethereal.nmS
.libs/ethereal.nmT
gcc -DINET6
"-D_U_=__attribute__((unused))" -Wall -W -g -O2 -I. -I./wiretap -I/usr/local
/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/incl
ude -o .libs/ethereal packet-aarp.o packet-acap.o packet-afp.o packet-afs.o
...
... lots of object files listed
...
 crypt-rc4.o packet-dcerpc-nt.o follow.o g711.o in_cksum.o ipproto.o
pcap-util.o prefs.o print.o ps.o ptvcursor.o reassemble.o ringbuffer.o tap.o
timestats.o util.o xdlc.o xmlstub.o register.o capture.o file.o filters.o
proto_hier_stats.o summary.o
.libs/etherealS.o -rdynamic -Wl,--export-dynamic
plugins/artnet/.libs/artnet.so -L/usr/local/lib
plugins/docsis/.libs/docsis.so plugins/giop/.libs/cosnaming.so
plugins/giop/.libs/coseventcomm.so plugins/gryphon/.libs/gryphon.so
plugins/megaco/.libs/megaco.so plugins/mgcp/.libs/mgcp.so
plugins/pcli/.libs/pcli.so plugins/rtnet/.libs/rtnet.so wiretap/libwiretap.a
gtk/libui.a epan/libethereal.a epan/ftypes/libftypes.a
epan/dfilter/libdfilter.a -lpcap -L/usr/lib -L/usr/X11R6/lib
/usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgmodule.so
/usr/lib/libglib.so -ldl -lXi -lXext -lX11 -lm -lz -Wl,--rpath -Wl,/usr/lib/
ethereal/plugins/0.9.13
epan/dfilter/libdfilter.a(scanner.o)(.text+0x13af): In function
`df_scanner_file':
../../tools/lemon/lemonflex-tail.inc:37: undefined reference to
`yy_create_buffer'
epan/dfilter/libdfilter.a(scanner.o)(.text+0x13e6): In function
`df_scanner_cleanup':
../../tools/lemon/lemonflex-tail.inc:45: undefined reference to
`yy_delete_buffer'
epan/dfilter/libdfilter.a(scanner.o)(.text+0x1399): In function
`df_scanner_text':
../../tools/lemon/lemonflex-tail.inc:29: undefined reference to
`yy_scan_string'
epan/dfilter/libdfilter.a(scanner.o)(.text+0x13bb): In function
`df_scanner_file':
../../tools/lemon/lemonflex-tail.inc:38: undefined reference to
`yy_switch_to_buffer'
collect2: ld returned 1 exit status
make[3]: *** [ethereal] Error 1
make[3]: Leaving directory `/home/db0099/ethereal/ethereal-2003-07-07'