From: <no...@so...> - 2001-08-24 17:11:03
|
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@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@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@kilner ~/0/cscope-15.3 ]Dooh failed again! ---------------------------------------------------------------------- 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 |