[mapserver-users] MS 5.4.1 Build problems on Windows

Stephen Woodbridge woodbri at swoodbridge.com
Tue Jun 16 23:54:20 EDT 2009


Hi all,

This is my first time trying to build mapserver under Windows and it is 
dying in the regex-0.12 source with the the errors below. Any thoughts 
on how to resolved this?

Thanks,
   -Steve W.

         cl /nologo /Ox /MD /W3  /EHsc 
-Ic:\projects\mapserver\..\gdwin32     -Ic
:\projects\mapserver\..\proj-4.6.1/src -Ic:\projects\mapserver\..\regex-0.12
    -Ic:\projects\mapserver\..\postgresql-8.3.7/src/interfaces/libpq 
-Ic:\project
s\mapserver\..\postgresql-8.3.7/src/include 
-Ic:\projects\mapserver\..\z
lib-1.2.3    -Ic:\projects\mapserver\..\libpng-1.2.8  -DHAVE_STRING_H 
-DREGEX_MA
LLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DNEED_STRRSTR 
-DNEED_S
TRCASESTR -DUSE_POSTGIS   -DUSE_PROJ -DUSE_PROJ_API_H   -DUSE_GD_PNG 
-DUSE_GD_JP
EG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT 
-DGD_HAS_GETBIT
MAPFONT -DGD_HAS_FTEX_XSHOW   -DUSE_THREAD    -DIGNORE_MISSING_DATA
   -DUSE_GD_ANTIALIAS              -DWIN32 -D_WIN32 /c 
c:\projects\mapserver\..\r
egex-0.12\regex.c /Foc:\projects\mapserver\..\regex-0.12\regex.obj
regex.c

[snip lots of warnings]

c:\projects\mapserver\..\regex-0.12\regex.c(4877) : warning C4996: 
'errcode': Th
is name was supported during some Whidbey pre-releases. Instead, use the 
standar
d name errno_t.
         C:\Program Files\Microsoft Visual Studio 
9.0\VC\INCLUDE\crtdefs.h(548) :
  see declaration of 'errcode'
c:\projects\mapserver\..\regex-0.12\regex.c(4877) : error C2081: 'preg' 
: name i
n formal parameter list illegal
c:\projects\mapserver\..\regex-0.12\regex.c(4877) : error C2081: 
'errbuf' : name
  in formal parameter list illegal
c:\projects\mapserver\..\regex-0.12\regex.c(4877) : error C2081: 
'errbuf_size' :
  name in formal parameter list illegal
c:\projects\mapserver\..\regex-0.12\regex.c(4878) : error C2055: 
expected formal
  parameter list, not a type list
c:\projects\mapserver\..\regex-0.12\regex.c(4878) : error C2082: 
redefinition of
  formal parameter 'errcode'
c:\projects\mapserver\..\regex-0.12\regex.c(4886) : warning C4996: 
'errcode': Th
is name was supported during some Whidbey pre-releases. Instead, use the 
standar
d name errno_t.
         C:\Program Files\Microsoft Visual Studio 
9.0\VC\INCLUDE\crtdefs.h(548) :
  see declaration of 'errcode'
c:\projects\mapserver\..\regex-0.12\regex.c(4886) : error C2059: syntax 
error :
'type'
c:\projects\mapserver\..\regex-0.12\regex.c(4894) : error C2275: 
'errcode' : ill
egal use of this type as an expression
         C:\Program Files\Microsoft Visual Studio 
9.0\VC\INCLUDE\crtdefs.h(548) :
  see declaration of 'errcode'
c:\projects\mapserver\..\regex-0.12\regex.c(4911) : warning C4996: 
'strcpy': Thi
s function or variable may be unsafe. Consider using strcpy_s instead. 
To disabl
e deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.


More information about the mapserver-users mailing list