|
From: Alfred C. <alf...@t-...> - 2005-07-10 23:51:24
|
Hi, i tried to compile the stable version of htcobol 0.62 within the actual=20 debian-sarge. The used gcc is gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) Copyright =A9 2003 Free Software Foundation, Inc. the result of make gives a result like that: alfred@tux:/usr/local/src/tinycobol-0.62/compiler$ make gcc -I/usr/include -I/usr/local/include -I../lib -I../ -c scan.c scan.c:1060: error: Syntaxfehler before "YY_PROTO" scan.l:120: error: Syntaxfehler before "switch" scan.l:123: error: redefinition of `yy_start' scan.c:272: error: `yy_start' previously defined here scan.l:123: Warnung: data definition has no type or storage class scan.l:124: error: Syntaxfehler before "break" Is anybody out there, who can give me a hint ? Thanks, Alfred |
|
From: David E. <de...@us...> - 2005-07-11 05:45:35
|
Alfred Cleve wrote: > i tried to compile the stable version of htcobol 0.62 within the actual > debian-sarge. The used gcc is > > gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) > > the result of make gives a result like that: > alfred@tux:/usr/local/src/tinycobol-0.62/compiler$ make > gcc -I/usr/include -I/usr/local/include -I../lib -I../ -c scan.c > scan.c:1060: error: Syntaxfehler before "YY_PROTO" > scan.l:120: error: Syntaxfehler before "switch" > scan.l:123: error: redefinition of `yy_start' > scan.c:272: error: `yy_start' previously defined here > scan.l:123: Warnung: data definition has no type or storage class > scan.l:124: error: Syntaxfehler before "break" > > Is anybody out there, who can give me a hint ? I think this a problem with GCC 3.3.x relating to the following 'define'. $grep -n YY_PROTO *.l scan.l:59:#define YY_DECL int yylex2 YY_PROTO((void)) scan.l:741:int yylex YY_PROTO((void)) I seams to work fine with versions prior to GCC 3.3 . No idea why this is a problem, nor how to fix it. Maybe some thing to do with the C99 standard again. |
|
From: Carlucio L. <car...@te...> - 2005-07-11 11:54:32
|
On Mon, 11 Jul 2005 01:51:17 +0200 Alfred Cleve <alf...@t-...> wrote: > Hi, > > i tried to compile the stable version of htcobol 0.62 within the actual > debian-sarge. The used gcc is > > gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) > Copyright © 2003 Free Software Foundation, Inc. > > the result of make gives a result like that: > alfred@tux:/usr/local/src/tinycobol-0.62/compiler$ make > gcc -I/usr/include -I/usr/local/include -I../lib -I../ -c scan.c > scan.c:1060: error: Syntaxfehler before "YY_PROTO" > scan.l:120: error: Syntaxfehler before "switch" > scan.l:123: error: redefinition of `yy_start' > scan.c:272: error: `yy_start' previously defined here > scan.l:123: Warnung: data definition has no type or storage class > scan.l:124: error: Syntaxfehler before "break" > > Is anybody out there, who can give me a hint ? install version: carlucio@cpd1:~$ dpkg -l |grep bison ii bison 1.35-3 A parser generator that is compatible with Y ii flex 2.5.4a-24 A fast lexical analyzer generator. bye Carlucio Lopes - Debian Gnu/Linux+Tinycobol+Tcl+Postgresql compilador Cobol FREE http://tinycobol.org site em Portugues Por que COBOL? http://www.clubecobol.com.br/cc_porque_cobol.asp Pirataria!!??.. entenda o que e'.-> www.carlinux.hpg.com.br Goiania-Goias-Brasil 62-526-8006 62-9946-3523 icq - 267274130 msn - car...@ho... |
|
From: Alfred C. <alf...@t-...> - 2005-07-12 18:42:10
|
Hello Carlucio, > install version: > ii bison 1.35-3 > ii flex 2.5.4a-24 which version of gcc and which version of Debian is used at your system ? bye, Alfred |
|
From: Carlucio L. <car...@te...> - 2005-07-12 19:35:43
|
On Tue, 12 Jul 2005 20:41:53 +0200 Alfred Cleve <alf...@t-...> wrote: > Hello Carlucio, > > > install version: > > ii bison 1.35-3 > > ii flex 2.5.4a-24 > > which version of gcc and which version of Debian is used at your system ? > I have Debian Sarge, for install bison and flex deb ftp://ftp.debian.org/debian woody main contrib non-free carlucio@cpd1:~$ gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13) carlucio@cpd1:~$ bye Carlucio Lopes - Debian Gnu/Linux+Tinycobol+Tcl+Postgresql compilador Cobol FREE http://tinycobol.org site em Portugues Por que COBOL? http://www.clubecobol.com.br/cc_porque_cobol.asp Pirataria!!??.. entenda o que e'.-> www.carlinux.hpg.com.br Goiania-Goias-Brasil 62-526-8006 62-9946-3523 icq - 267274130 msn - car...@ho... |