[OpenAFS-devel] OpenAFS 1.0.1 compile failure
M. Hwang
minjae@diva.yonsei.ac.kr
Sun, 21 Jan 2001 15:54:52 +0900
Hello...
It is result of compile pre-build error_table_nt.c
cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -
D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -Z7 -DWIN32 -D_WIN32 -
D_MT -D_DLL -MD /Oy- /GF /Gd /Gy /GX /Os /Ox /Z7 /W3 -I. -Ic:\Projects\O
penAFS-1.0.1\DEST\include -Ic:\Projects\OpenAFS-1.0.1\DEST\include\afs -Ic:\Pr
ojects\OpenAFS-1.0.1\DEST\include\rx -DWIN32_LEAN_AND_MEAN -DSTRICT -D_WIN32_
IE=0x0400 /c error_table_nt.c
error_table_nt.c
bison.simple(154) : error C2059: syntax error : 'do'
bison.simple(168) : error C2059: syntax error : 'else'
bison.simple(172) : error C2059: syntax error : 'while'
bison.simple(325) : error C2065: 'yychar' : undeclared identifier
bison.simple(563) : warning C4013: 'yylex' undefined; assuming extern returning
int
et_lex.lex.l(605) : warning C4013: 'fileno' undefined; assuming extern returning
int
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
It is result of compile with Win32 version of bison & flex. error occur in /src/cmd
c:\Projects\OpenAFS-1.0.1\DEST\bin\compile_et cmd_errors -h cmd
Including cmd.p.h at beginning of cmd.h file.
parse error
Line number 7; last token was '(null)'
cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -
D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -Z7 -DWIN32 -D_WIN32 -
D_MT -D_DLL -MD /Oy- /GF /Gd /Gy /GX /Os /Ox /Z7 /W3 -I. -Ic:\Projects\O
penAFS-1.0.1\DEST\include -Ic:\Projects\OpenAFS-1.0.1\DEST\include\afs -Ic:\Pr
ojects\OpenAFS-1.0.1\DEST\include\rx -DWIN32_LEAN_AND_MEAN -DSTRICT -D_WIN32_
IE=0x0400 /c cmd_errors.c
cmd_errors.c
cmd_errors.c(15) : error C2061: syntax error : identifier '_error_table'
cmd_errors.c(15) : error C2059: syntax error : ';'
cmd_errors.c(15) : error C2059: syntax error : 'type'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
cmd_errors.c:
/*
* cmd_errors.c:
* This file is automatically generated; please do not edit it.
*/
#include <afs/param.h>
#include <afs/error_table.h>
static const char * const text[] = {
0
};
static const struct error_table et = { text, 0L, 0 };
static struct et_list etlink = { 0, &et};
void initialize_(null)_error_table (void) {
add_to_error_table(&etlink);
}
initialize_(null) <- may be this occurs error.
Anybody has clue?
Thanks...
------------------------------
MinJae Hwang
minjae@diva.yonsei.ac.kr