[OpenAFS] Re:compile problem winnt 1.2.9
Rolf Sattler
rolf@multi-os-net.de
Tue, 22 Apr 2003 15:51:38 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0031_01C308E7.0F7B43F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thanks Scott D. Williams for his solution :
add: #include <limits.h> to the file: src/rx/xdr_mem.c
and the next one :
src/WINNT/pthread/pthread.c missing TryEnterCriticalSection()
any ideas ?
thanks
Rolf
-------------------------------------------------------------
cd ..\..
echo ***** pthread
***** pthread
cd src\WINNT\pthread
nmake /nologo /f ntmakefile install
cl -c -W3 -DCRTAPI1=3D_cdecl -DCRTAPI2=3D_cdecl -nologo =
-D_X86_=3D1 -D_WINNT -D_WIN32_WINNT=3D0x0400 -D_WIN32_IE=3D0x40
DWINVER=3D0x0400 -Z7 -DWIN32 -D_WIN32 -D_MT -D_DLL -MD /Oy- /GF /Gd =
/Gy /GX /Os /Ox /Z7 /W3 -I. -IY:\DEST\inc
e -IY:\DEST\include\afs -IY:\DEST\include\rx -DWIN32_LEAN_AND_MEAN =
-DSTRICT -D_WIN32_IE=3D0x0400 -DAFS_AFSDB_ENV
AFS_FREELANCE_CLIENT /c pthread.c -DAFS_WIN95_ENV /Fopthread_95.obj
Command line warning D4002 : ignoring unknown option '/Oy-'
Command line warning D4002 : ignoring unknown option '/Os'
pthread.c
echo #define AFS_VERINFO_BUILD "OpenAFS1.2.9" =
>AFS_component_version_number.h
rc -DWIN32 -D_WIN32 -DWINVER=3D0x0400 /r /d =
"AFSPRODUCT_VERSION=3D\"1.2.9\"" pthread95.rc
link /OUT:Y:\DEST\lib\win95\afspthread.dll -debug:full =
-debugtype:cv /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE
LEASE /NOLOGO -entry:_DllMainCRTStartup@12 -dll /FIXED:NO /VERBOSE:LIB =
msvcrt.lib oldnames.lib kernel32.lib ws2_32.
mswsock.lib advapi32.lib binmode.obj pthread_95.obj pthread95.res =
/DEF:pthread.def
Searching Libraries
Searching c:\MsVsVC98\LIB\msvcrt.lib:
Searching c:\MsVsVC98\LIB\oldnames.lib:
Searching c:\MsVsVC98\LIB\kernel32.lib:
Done Searching Libraries
Creating library Y:\DEST\lib\win95\afspthread.lib and object =
Y:\DEST\lib\win95\afspthread.exp
Searching Libraries
Searching c:\MsVsVC98\LIB\msvcrt.lib:
Done Searching Libraries
rebase -i Y:\DEST\NTDllmap.txt -x Y:\DEST\lib\win95 -q =
Y:\DEST\lib\win95\afspthread.dll
REBASE: afspthread.dll rebased to 0x00000000 (size 0x00010000)
cl -c -W3 -DCRTAPI1=3D_cdecl -DCRTAPI2=3D_cdecl -nologo =
-D_X86_=3D1 -D_WINNT -D_WIN32_WINNT=3D0x0400 -D_WIN32_IE=3D0x40
DWINVER=3D0x0400 -Z7 -DWIN32 -D_WIN32 -D_MT -D_DLL -MD /Oy- /GF /Gd =
/Gy /GX /Os /Ox /Z7 /W3 -I. -IY:\DEST\inc
e -IY:\DEST\include\afs -IY:\DEST\include\rx -DWIN32_LEAN_AND_MEAN =
-DSTRICT -D_WIN32_IE=3D0x0400 -DAFS_AFSDB_ENV
AFS_FREELANCE_CLIENT /c pthread.c
Command line warning D4002 : ignoring unknown option '/Oy-'
Command line warning D4002 : ignoring unknown option '/Os'
pthread.c
pthread.c(125) : warning C4013: 'TryEnterCriticalSection' undefined; =
assuming extern returning int
rc -DWIN32 -D_WIN32 -DWINVER=3D0x0400 /r /d =
"AFSPRODUCT_VERSION=3D\"1.2.9\"" pthread.rc
link /OUT:Y:\DEST\lib\afspthread.dll -debug:full -debugtype:cv =
/NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEA
/NOLOGO -entry:_DllMainCRTStartup@12 -dll /FIXED:NO /VERBOSE:LIB =
msvcrt.lib oldnames.lib kernel32.lib ws2_32.lib ms
ck.lib advapi32.lib binmode.obj pthread.obj pthread.res /DEF:pthread.def
Searching Libraries
Searching c:\MsVsVC98\LIB\msvcrt.lib:
Searching c:\MsVsVC98\LIB\oldnames.lib:
Searching c:\MsVsVC98\LIB\kernel32.lib:
Searching c:\MsVsVC98\LIB\ws2_32.lib:
Searching c:\MsVsVC98\LIB\mswsock.lib:
Searching c:\MsVsVC98\LIB\advapi32.lib:
Searching c:\MsVsVC98\LIB\msvcrt.lib:
Searching c:\MsVsVC98\LIB\oldnames.lib:
Done Searching Libraries
Creating library Y:\DEST\lib\afspthread.lib and object =
Y:\DEST\lib\afspthread.exp
Searching Libraries
Searching c:\MsVsVC98\LIB\msvcrt.lib:
Searching c:\MsVsVC98\LIB\oldnames.lib:
Searching c:\MsVsVC98\LIB\kernel32.lib:
Searching c:\MsVsVC98\LIB\ws2_32.lib:
Searching c:\MsVsVC98\LIB\mswsock.lib:
Searching c:\MsVsVC98\LIB\advapi32.lib:
Done Searching Libraries
pthread.obj : error LNK2001: unresolved external symbol =
_TryEnterCriticalSection
Y:\DEST\lib\afspthread.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'c:\MsVsVC98\BIN\NMAKE.EXE' : return code =
'0x2'
Stop.
-------------------------------------------------------------
------=_NextPart_000_0031_01C308E7.0F7B43F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=3DArial><FONT size=3D2>
<BODY>
<DIV>
<DIV><FONT face=3DArial size=3D2>Thanks Scott D. Williams for his =
solution=20
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>add: #include=20
<limits.h> to the file: =20
src/rx/xdr_mem.c<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>and the next one :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2>src/WINNT/pthread/pthread.c =20
missing TryEnterCriticalSection()<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>any ideas ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Rolf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>-------------------------------------------------------------</F=
ONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> cd=20
..\..<BR> echo ***** =
pthread<BR>*****=20
pthread<BR> cd=20
src\WINNT\pthread<BR> nmake =
/nologo /f=20
ntmakefile install<BR> cl -c -W3=20
-DCRTAPI1=3D_cdecl -DCRTAPI2=3D_cdecl -nologo -D_X86_=3D1 -D_WINNT=20
-D_WIN32_WINNT=3D0x0400 -D_WIN32_IE=3D0x40<BR>DWINVER=3D0x0400 -Z7 =
-DWIN32 =20
-D_WIN32 -D_MT -D_DLL -MD /Oy- /GF /Gd /Gy =
/GX /Os /Ox /Z7 /W3 -I. -IY:\DEST\inc<BR>e =20
-IY:\DEST\include\afs -IY:\DEST\include\rx =20
-DWIN32_LEAN_AND_MEAN -DSTRICT -D_WIN32_IE=3D0x0400 =20
-DAFS_AFSDB_ENV<BR>AFS_FREELANCE_CLIENT /c pthread.c =
-DAFS_WIN95_ENV=20
/Fopthread_95.obj<BR>Command line warning D4002 : ignoring unknown =
option=20
'/Oy-'<BR>Command line warning D4002 : ignoring unknown option=20
'/Os'<BR>pthread.c<BR> echo =
#define=20
AFS_VERINFO_BUILD "OpenAFS1.2.9"=20
>AFS_component_version_number.h<BR>  =
; =20
rc -DWIN32 -D_WIN32 -DWINVER=3D0x0400 /r /d=20
"AFSPRODUCT_VERSION=3D\"1.2.9\""=20
pthread95.rc<BR> link=20
/OUT:Y:\DEST\lib\win95\afspthread.dll -debug:full -debugtype:cv =
/NODEFAULTLIB=20
/INCREMENTAL:NO /PDB:NONE<BR>LEASE /NOLOGO -entry:_DllMainCRTStartup@12=20
-dll /FIXED:NO /VERBOSE:LIB msvcrt.lib oldnames.lib =
kernel32.lib =20
ws2_32.<BR> mswsock.lib advapi32.lib binmode.obj pthread_95.obj=20
pthread95.res /DEF:pthread.def</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Searching =
Libraries<BR> Searching=20
c:\MsVsVC98\LIB\msvcrt.lib:<BR> Searching=20
c:\MsVsVC98\LIB\oldnames.lib:<BR> Searching=20
c:\MsVsVC98\LIB\kernel32.lib:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Done Searching =
Libraries<BR> Creating=20
library Y:\DEST\lib\win95\afspthread.lib and object=20
Y:\DEST\lib\win95\afspthread.exp</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Searching =
Libraries<BR> Searching=20
c:\MsVsVC98\LIB\msvcrt.lib:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Done Searching=20
Libraries<BR> rebase -i=20
Y:\DEST\NTDllmap.txt -x Y:\DEST\lib\win95 -q=20
Y:\DEST\lib\win95\afspthread.dll<BR>REBASE: afspthread.dll =
rebased=20
to 0x00000000 (size =
0x00010000)<BR> cl=20
-c -W3 -DCRTAPI1=3D_cdecl -DCRTAPI2=3D_cdecl -nologo -D_X86_=3D1 =
-D_WINNT=20
-D_WIN32_WINNT=3D0x0400 -D_WIN32_IE=3D0x40<BR>DWINVER=3D0x0400 -Z7 =
-DWIN32 =20
-D_WIN32 -D_MT -D_DLL -MD /Oy- /GF /Gd /Gy =
/GX /Os /Ox /Z7 /W3 -I. -IY:\DEST\inc<BR>e =20
-IY:\DEST\include\afs -IY:\DEST\include\rx =20
-DWIN32_LEAN_AND_MEAN -DSTRICT -D_WIN32_IE=3D0x0400 =20
-DAFS_AFSDB_ENV<BR>AFS_FREELANCE_CLIENT /c =
pthread.c<BR>Command line=20
warning D4002 : ignoring unknown option '/Oy-'<BR>Command line warning =
D4002 :=20
ignoring unknown option '/Os'<BR>pthread.c<BR>pthread.c(125) : warning =
C4013:=20
'TryEnterCriticalSection' undefined; assuming extern returning=20
int<BR> rc -DWIN32 -D_WIN32=20
-DWINVER=3D0x0400 /r /d "AFSPRODUCT_VERSION=3D\"1.2.9\""=20
pthread.rc<BR> link=20
/OUT:Y:\DEST\lib\afspthread.dll -debug:full -debugtype:cv /NODEFAULTLIB=20
/INCREMENTAL:NO /PDB:NONE /RELEA<BR>/NOLOGO -entry:_DllMainCRTStartup@12 =
-dll /FIXED:NO /VERBOSE:LIB msvcrt.lib oldnames.lib =
kernel32.lib =20
ws2_32.lib ms<BR>ck.lib advapi32.lib binmode.obj pthread.obj pthread.res =
/DEF:pthread.def</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Searching =
Libraries<BR> Searching=20
c:\MsVsVC98\LIB\msvcrt.lib:<BR> Searching=20
c:\MsVsVC98\LIB\oldnames.lib:<BR> Searching=20
c:\MsVsVC98\LIB\kernel32.lib:<BR> Searching=20
c:\MsVsVC98\LIB\ws2_32.lib:<BR> Searching=20
c:\MsVsVC98\LIB\mswsock.lib:<BR> Searching=20
c:\MsVsVC98\LIB\advapi32.lib:<BR> Searching=20
c:\MsVsVC98\LIB\msvcrt.lib:<BR> Searching=20
c:\MsVsVC98\LIB\oldnames.lib:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Done Searching =
Libraries<BR> Creating=20
library Y:\DEST\lib\afspthread.lib and object=20
Y:\DEST\lib\afspthread.exp</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Searching =
Libraries<BR> Searching=20
c:\MsVsVC98\LIB\msvcrt.lib:<BR> Searching=20
c:\MsVsVC98\LIB\oldnames.lib:<BR> Searching=20
c:\MsVsVC98\LIB\kernel32.lib:<BR> Searching=20
c:\MsVsVC98\LIB\ws2_32.lib:<BR> Searching=20
c:\MsVsVC98\LIB\mswsock.lib:<BR> Searching=20
c:\MsVsVC98\LIB\advapi32.lib:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Done Searching Libraries<BR>pthread.obj =
: error=20
LNK2001: unresolved external symbol=20
_TryEnterCriticalSection<BR>Y:\DEST\lib\afspthread.dll : fatal error =
LNK1120: 1=20
unresolved externals<BR>NMAKE : fatal error U1077: 'link' : return code=20
'0x460'<BR>Stop.<BR>NMAKE : fatal error U1077: =
'c:\MsVsVC98\BIN\NMAKE.EXE' :=20
return code '0x2'<BR>Stop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>-------------------------------------------------------------</F=
ONT></DIV>
<DIV> </DIV></DIV></BODY></HTML></FONT></FONT>
------=_NextPart_000_0031_01C308E7.0F7B43F0--