[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(mgp-users 00342) Re: Compilation problem on DEC alpha
- To: mgp-users@mew.org
- Subject: (mgp-users 00342) Re: Compilation problem on DEC alpha
- From: Ivan Laurette <Ivan.Laurette@unice.fr>
- Date: Fri, 30 Jun 2000 18:17:23 +0900
- In-reply-to: <1245.962293710@localhost>
- Posted: Fri, 30 Jun 2000 11:28:06 +0100 (GMT+0100)
- References: <> <1245.962293710@localhost>
- Reply-to: mgp-users@mew.org
- Reply-to: Ivan Laurette <Ivan.Laurette@unice.fr>
Hello,
>>>>> "J" == Jun-ichiro itojun Hagino <itojun@iijlab.net> writes:
J> hmm, could you try using bison/flex (GNU variant of
J> yacc/lex)?
I installed yacc/lex. I am not familiar with this, so I am not able to
say if the compilation process takes yacc/lex into account. However, I
changed the Makefiles to have the variables LEX=flex and YACC=bison. I
don't know if this is the right way do to it.
For the compilation, I still have the same errors:
-------------------------------------------------
cc -c -O2 -std1 -I/usr/include -DLONG_BIT=64 -DNO_MESSAGE_CATALOG -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LOCALE_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_POLL=1 -DHAVE_STRSTR=1 -DHAVE_USLEEP=1 -DHAVE_STRDUP=1 -DHAVE_MKSTEMP=1 -DHAVE_MEMCMP=1 -DMGPLIBDIR=\"/usr/lib/X11/mgp\" -DUUDECODE=\" scanner.c
cc: Error: ./scanner.l, line 196: Invalid declarator.
yywrap()
^
cc: Error: ./scanner.l, line 226: Declaration has no type or storage class.
sign = 1;
----------------^
cc: Error: ./scanner.l, line 227: Invalid declarator.
if (*s == '0') {
--------^
cc: Error: ./scanner.l, line 236: Invalid declarator.
} else if (*s == '-') {
----------^
cc: Error: ./scanner.l, line 240: Invalid declarator.
while (*s)
--------^
cc: Error: ./scanner.l, line 61: The function "stoi" has internal linkage, occurs in a context that requires its definition, and has no definition.
static int stoi __P((char *));
-----------^
*** Exit 1
Stop.
-------------------------------------------------
I don't know if this can help, but during the configuration, I have this
message:
-------------------------------------------------
loading cache ./config.cache
checking whether make sets ${MAKE}... (cached) yes
checking host system type... alpha-dec-osf4.0
checking how to run the C preprocessor... (cached) gcc -E
checking for mawk... (cached) gawk
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) no
-------------------------------------------------