Bugs item #454678, was opened at 2001-08-23 12:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=104664&aid=454678&group_id=4664
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Hans-Bernhard Broeker (broeker)
Summary: yytext problem on ultra-10 sunos 5.7
Initial Comment:
I installed flex and adjusted my PATH so flex is in it
and lex isn't.
I tried --with-flex option but it didn't help.
Here's some output:
]./configure
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh
-c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking host system type... sparc-sun-solaris2.7
checking user specification of lexer...
checking user specification of yacc...
checking for a BSD compatible install... ./install-sh
-c
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc
-E
checking for flex... (cached) lex
checking for flex... (cached) lex
checking for yywrap in -ll... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) no
checking for bison... no
checking for byacc... no
checking location of ncurses.h file
Found ncurses on /usr/include/ncurses.h
checking for ncurses version... VERSION:NCURSES_VERSION
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/window.h... (cached) no
checking for sys/termios.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached)
void
checking for getcwd... (cached) yes
checking for regcmp... (cached) yes
checking for regcomp... (cached) yes
checking for strerror... (cached) yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
creating ./config.status
creating Makefile
creating doc/Makefile
creating src/Makefile
creating contrib/Makefile
creating config.h
config.h is unchanged
Sun 560$ kilner@... ~/0/cscope-15.3
]gnumake clean
Making clean in .
gnumake[1]: Entering directory
`/home/kilner/0/cscope-15.3'
gnumake[1]: Nothing to be done for `clean-am'.
gnumake[1]: Leaving directory
`/home/kilner/0/cscope-15.3'
Making clean in contrib
gnumake[1]: Entering directory
`/home/kilner/0/cscope-15.3/contrib'
gnumake[1]: Nothing to be done for `clean'.
gnumake[1]: Leaving directory
`/home/kilner/0/cscope-15.3/contrib'
Making clean in src
gnumake[1]: Entering directory
`/home/kilner/0/cscope-15.3/src'
test -z "cscope" || rm -f cscope
test -z "scanner.c fscanner.c egrep.c" || rm -f
scanner.c fscanner.c egrep.c
rm -f *.o core *.core
gnumake[1]: Leaving directory
`/home/kilner/0/cscope-15.3/src'
Making clean in doc
gnumake[1]: Entering directory
`/home/kilner/0/cscope-15.3/doc'
gnumake[1]: Nothing to be done for `clean'.
gnumake[1]: Leaving directory
`/home/kilner/0/cscope-15.3/doc'
Sun 561$ kilner@... ~/0/cscope-15.3
]gnumake
gnumake all-recursive
gnumake[1]: Entering directory
`/home/kilner/0/cscope-15.3'
Making all in doc
gnumake[2]: Entering directory
`/home/kilner/0/cscope-15.3/doc'
gnumake[2]: Nothing to be done for `all'.
gnumake[2]: Leaving directory
`/home/kilner/0/cscope-15.3/doc'
Making all in src
gnumake[2]: Entering directory
`/home/kilner/0/cscope-15.3/src'
/bin/sh ./ylwrap "lex" scanner.l lex.yy.c scanner.c --
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c
scanner.c
In file included from scanner.l:39:
scanner.h:81: conflicting types for `yytext'
scanner.c:623: previous declaration of `yytext'
lex.yy.c: In function `yylex':
lex.yy.c:919: invalid operands to binary -
lex.yy.c:994: `yytext' has an incomplete type
lex.yy.c:994: `yytext' has an incomplete type
lex.yy.c:994: invalid operands to binary -
scanner.l:515: `yytext' has an incomplete type
scanner.l:515: `yytext' has an incomplete type
scanner.l:515: invalid operands to binary -
lex.yy.c:1632: invalid operands to binary -
lex.yy.c: In function `yy_get_next_buffer':
lex.yy.c:1780: invalid operands to binary -
lex.yy.c:1800: invalid operands to binary -
lex.yy.c:1891: `yytext' has an incomplete type
lex.yy.c: In function `yyunput':
lex.yy.c:1995: `yytext' has an incomplete type
lex.yy.c: In function `input':
lex.yy.c:2024: invalid operands to binary -
lex.yy.c: In function `yy_load_buffer_state':
lex.yy.c:2128: `yytext' has an incomplete type
scanner.l: At top level:
scanner.h:81: warning: array `yytext' assumed to have
one element
gnumake[2]: *** [scanner.o] Error 1
gnumake[2]: Leaving directory
`/home/kilner/0/cscope-15.3/src'
gnumake[1]: *** [all-recursive] Error 1
gnumake[1]: Leaving directory
`/home/kilner/0/cscope-15.3'
gnumake: *** [all-recursive-am] Error 2
Sun 562$ kilner@... ~/0/cscope-15.3
]Dooh failed again!
----------------------------------------------------------------------
>Comment By: Hans-Bernhard Broeker (broeker)
Date: 2001-08-27 03:04
Message:
Logged In: YES
user_id=27517
The remaining problem is partly in your flex installation.
Note this configure output line:
checking for yywrap in -lfl... no
This means that configure failed to find your 'libfl'. It
should probably stop immediately at that point and refuse to
cooperate until that is fixed, but unfortunately it doesn't,
at the moment.
The latest CVS version of cscope contains a change that
removes the need for yywrap() altogether, and thus the need
for libfl (fscanner.l as of version 1.6).
As to your previous question about uploading: there's a HTML
form for that at the bottom of the bugreport page at SF.
Note the "Check to Upload & Attach" box and the filename
entry field (with the "Browse" button next to it).
And you should re-check your GCC and Sun SDK installations:
those redefinition warnings among two system-supplied
headerfiles shouldn't happen.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-08-24 15:58
Message:
Logged In: NO
I did make dist-clean and then did configure with
--with-flex
Now the problem is during linking:
Undefined first referenced
symbol in file
yywrap fscanner.o
ld: fatal: Symbol referencing errors. No output written to
Below is the configure, and compile output followed by the
beginning of fscanner.c There was no scanner.c generated
-Fred
]./configure --with-flex
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking host system type... sparc-sun-solaris2.7
checking user specification of lexer... flex
checking user specification of yacc...
checking for a BSD compatible install... ./install-sh -c
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for bison... no
checking for byacc... no
checking location of ncurses.h file
Found ncurses on /usr/include/ncurses.h
checking for ncurses version... VERSION:NCURSES_VERSION
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/window.h... no
checking for sys/termios.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for getcwd... yes
checking for regcmp... yes
checking for regcomp... yes
checking for strerror... yes
checking for vsnprintf... yes
checking for snprintf... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating src/Makefile
creating contrib/Makefile
creating config.h
Sun 572$ kilner@... ~/0/cscope-15.3
]gnumake
gnumake all-recursive
gnumake[1]: Entering directory `/home/kilner/0/cscope-15.3'
Making all in doc
gnumake[2]: Entering directory
`/home/kilner/0/cscope-15.3/doc'
gnumake[2]: Nothing to be done for `all'.
gnumake[2]: Leaving directory
`/home/kilner/0/cscope-15.3/doc'
Making all in src
gnumake[2]: Entering directory
`/home/kilner/0/cscope-15.3/src'
/bin/sh ./ylwrap "flex" fscanner.l lex.yy.c fscanner.c --
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c fscanner.c
yacc egrep.y && mv y.tab.c egrep.c
conflicts: 2 shift/reduce
if test -f y.tab.h; then \
if cmp -s y.tab.h egrep.h; then rm -f y.tab.h; else mv
y.tab.h egrep.h; fi; \
else :; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c egrep.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c alloc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c basename.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c command.c
In file included from /usr/include/ncurses.h:23,
from command.c:41:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c compath.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c crossref.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c dir.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c display.c
In file included from /usr/include/ncurses.h:23,
from display.c:45:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c edit.c
In file included from /usr/include/ncurses.h:23,
from edit.c:40:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c exec.c
In file included from /usr/include/ncurses.h:23,
from exec.c:47:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c find.c
In file included from /usr/include/ncurses.h:23,
from find.c:41:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c help.c
In file included from /usr/include/ncurses.h:23,
from help.c:41:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c history.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c input.c
In file included from /usr/include/ncurses.h:23,
from input.c:40:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c invlib.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c logdir.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c lookup.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c main.c
In file included from /usr/include/ncurses.h:23,
from main.c:45:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of
the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of
the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of
the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of
the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c mouse.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c mygetenv.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c mypopen.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c vpaccess.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c vpfopen.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c vpinit.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c vpopen.c
gcc -g -O2 -o cscope fscanner.o egrep.o alloc.o
basename.o command.o compath.o crossref.o dir.o display.o
edit.o exec.o find.o help.o history.o input.o invlib.o
logdir.o lookup.o main.o mouse.o mygetenv.o mypopen.o
vpaccess.o vpfopen.o vpinit.o vpopen.o -lncurses
Undefined first referenced
symbol in file
yywrap fscanner.o
ld: fatal: Symbol referencing errors. No output written to
cscope
collect2: ld returned 1 exit status
gnumake[2]: *** [cscope] Error 1
gnumake[2]: Leaving directory
`/home/kilner/0/cscope-15.3/src'
gnumake[1]: *** [all-recursive] Error 1
gnumake[1]: Leaving directory `/home/kilner/0/cscope-15.3'
gnumake: *** [all-recursive-am] Error 2
Sun 573$ kilner@... ~/0/cscope-15.3
]
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91
96/09/10 16:58:48 vern Exp $
*/
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus"
*/
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
#if __STDC__
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an
unsigned
* integer for use as an array index. If the signed char is
negative,
* we want to instead treat it as an 8-bit unsigned char,
hence the
* double cast.
*/
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* Enter a start condition. This macro really ought to take
a parameter,
* but we do it the disgusting crufty way forced on us by
the ()-less
* definition of BEGIN.
*/
#define BEGIN yy_start = 1 + 2 *
/* Translate the current start state into a value that can
be later handed
* to BEGIN to return to the state. The YYSTATE alias is
for lex
* compatibility.
*/
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* The funky do-while in the following #define is used to
turn the definition
* int a single C statement (which needs a semi-colon
terminator). This
* avoids problems with code like:
*
* if ( condition_holds )
* yyless( 5 );
* else
* do_something_else();
*
* Prior to using the do-while the compiler would get upset
at the
* "else" because it interpreted the "if" statement as being
all
* done when it reached the ';' after the yyless() call.
*/
/* Return all but the first 'n' matched characters back to
the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
*yy_cp = yy_hold_char; \
YY_RESTORE_YY_MORE_OFFSET \
yy_c_buf_p = yy_cp = yy_bp + n -
YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again
*/ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext_ptr )
/* The following is because we cannot portably get our hands
on size_t
* (without autoconf's help, which isn't available because
we want
* flex-generated scanners to compile on their own).
*/
typedef unsigned int yy_size_t;
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position
in input buffer */
/* Size of input buffer in bytes, not including room
for EOB
* characters.
*/
yy_size_t yy_buf_size;
/* Number of characters read into yy_ch_buf, not
including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we
created it,
* and can realloc() it to grow it, and should
free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if
so, and
* if we're using stdio for input, then we want to
use getc()
* instead of fread(), to make sure we stop fetching
input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning
of a line.
* If so, '^' rules will be active on the next
match, otherwise
* not.
*/
int yy_at_bol;
/* Whether to try to fill the input buffer when we
reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some
text to process
* then we mark the buffer as YY_EOF_PENDING, to
indicate that we
* shouldn't try reading from the input source any
more. We might
* still have a bunch of tokens to match, though,
because of
* possible backing-up.
*
* When we actually see the EOF, we change the
status to "new"
* (via yyrestart()), so that the user can continue
scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
static YY_BUFFER_STATE yy_current_buffer = 0;
/* We provide macros for accessing buffer states in case in
the
* future we want to put the buffer states in a more general
* "scanner state".
*/
#define YY_CURRENT_BUFFER yy_current_buffer
/* yy_hold_char holds the character lost when yytext is
formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read
into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1; /* whether we need to
initialize */
static int yy_start = 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer
switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE
new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int
size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file
));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base,
yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char
*yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char
*bytes, int len ));
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t
));
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin,
YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive =
is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin,
YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state YY_PROTO(( void
));
static yy_state_type yy_try_NUL_trans YY_PROTO((
yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
/* Done after the current pattern has been matched and
before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 64
#define YY_END_OF_BUFFER 65
static yyconst short int yy_accept[596] =
{ 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0,
32, 32, 0, 0, 0, 0, 55, 55, 65,
63,
63, 43, 46, 7, 35, 63, 44, 21, 22,
25,
63, 63, 61, 24, 26, 23, 40, 63, 41,
35,
35, 35, 35, 35, 6, 20, 52, 52, 63,
35,
35, 8, 8, 8, 8, 8, 64, 12, 39,
39,
39, 37, 39, 33, 32, 33, 31, 50, 48,
47,
50, 45, 55, 57, 56, 53, 7, 35,
1, 2,
61, 54, 60, 61, 42, 35, 35, 35, 35,
35,
52, 52, 3, 35, 35, 9, 9, 9,
9, 9,
9, 12, 0, 0, 0, 0, 38, 37, 0,
37,
37, 37, 0, 0, 0, 32, 32, 0,
31, 0,
49, 51, 55, 57, 56, 58, 56, 59, 53,
60,
60, 35, 35, 0, 34, 0, 35, 35, 52,
35,
35, 9, 9, 9, 9, 15, 9, 9,
9, 0,
0, 0, 38, 37, 37, 0, 36, 0,
0, 0,
0, 32, 32, 0, 30, 0, 0, 35,
29, 0,
35, 35, 35, 35, 9, 9, 9, 9,
9, 9,
9, 0, 0, 0, 0, 0, 0, 0,
0, 0,
0, 0, 35, 0, 0, 35, 35, 35, 9,
17,
16, 9, 9, 9, 9, 11, 0, 0,
0, 0,
----------------------------------------------------------------------
Comment By: Fred W Kilner Genius (stupidfred)
Date: 2001-08-24 10:11
Message:
Logged In: YES
user_id=306965
How do I upload files? I don't see a spot to do that.
I went to the ftp.sorceforge.net but didn't see an upload
directory.
Hmmm. I could try putting file on my ucsc webpage if you
don't have an
upload spot.
-Fred
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-08-24 09:39
Message:
Logged In: NO
Ok if I log in with my password do I get to upload files..
Lets see!
I'm trying to upload a tar'd version of what I compiled for
cscope and
flex along with captued text showing commands I entered and
a few
other things.
I made a quick attempt at editing configure to make it
chose flex nomatter what but it didn't work. I did try the
--with-flex option before
and it didn't help.
In the tar'd up cscope is a file
A_COMPILE_ATTEMPT_WITH_OUTPUT.T
The current executable of cscope started getting segfaults
which is why
I wanted to have the source so I could compile it with debug
options and
use gdb if the problem didn't go away. I ended up just
filtering my file
list that it scans and that fixed it.
I use cscope with a big forth code source tree (openboot) so
I need to give it the list of files and then scan for just
text and that works great! for finding stuff.
Thanks
-Fred
----------------------------------------------------------------------
Comment By: Hans-Bernhard Broeker (broeker)
Date: 2001-08-24 05:23
Message:
Logged In: YES
user_id=27517
You may have to convince it to really use flex. In order to
do that, it may be necessary to remove that "(cached)"
information produced by earlier "./configure" runs:
make distclean
./configure --with-flex
should help.
To see what the problem with the lex-generated scanner.c is,
I may need a copy of it. Esp. the sections close to where
the error messages were reported by the compiler (around
lines 623 and 919 of scanner.c). Either mail them or Upload
them to this bugreport form.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=104664&aid=454678&group_id=4664
|