Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] what happened to wiretap/ascend-grammar.h ?

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

From: Jeff Morriss <jeff_morriss@xxxxxxxxxxx>
Date: Fri, 05 Mar 2004 09:55:38 -0500

My builds in wiretap are failing here:

source='ascend-scanner.c' object='ascend-scanner.o' libtool=no \
depfile='.deps/ascend-scanner.Po' tmpdepfile='.deps/ascend-scanner.TPo' \
depmode=gcc3 /bin/sh ./../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -D_U_="__attribute__((unused))" -Wall -W  -g -O2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/include -c `test -f ascend-scanner.c || echo './'`ascend-scanner.c
./ascend-scanner.l:38:28: ascend-grammar.h: No such file or directory
./ascend-scanner.l: In function `ascendlex':
./ascend-scanner.l:107: error: `ascendlval' undeclared (first use in this function)
./ascend-scanner.l:107: error: (Each undeclared identifier is reported only once
./ascend-scanner.l:107: error: for each function it appears in.)
./ascend-scanner.l:108: error: `WDS_PREFIX' undeclared (first use in this function)
./ascend-scanner.l:121: error: `STRING' undeclared (first use in this function)
./ascend-scanner.l:137: error: `DECNUM' undeclared (first use in this function)
./ascend-scanner.l:152: error: `HEXNUM' undeclared (first use in this function)
./ascend-scanner.l:185: error: `COUNTER' undeclared (first use in this function)
./ascend-scanner.l:190: error: `HEXBYTE' undeclared (first use in this function)
./ascend-scanner.l:203: error: `WDD_DATE' undeclared (first use in this function)
./ascend-scanner.l:226: error: `KEYWORD' undeclared (first use in this function)
./ascend-scanner.l:263: error: `WDD_CHUNK' undeclared (first use in this function)


The Makefile says:

ascend-grammar.h: ascend-grammar.c
libwiretap.a: $(libwiretap_a_OBJECTS) $(libwiretap_a_DEPENDENCIES)
        -rm -f libwiretap.a
        $(libwiretap_a_AR) libwiretap.a $(libwiretap_a_OBJECTS) $(libwiretap_a_>
        $(RANLIB) libwiretap.a

Changing "ascend-scanner.c" to do:

#include "ascend-grammar.c"

(instead of ".h") makes it compile.  Is that correct?