Compile Errors - Mapserver 4.10.0 and Regex 0.12

Fernando Simon fsimon at UNIVALI.BR
Wed Feb 7 08:40:52 EST 2007


Hi Dewald,
    In the last year I had the same problem to compile it on windows, a
regex problem with VC 2005.
    I found one solution and added the patch in the bug number 1651
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1651)
    Folks, someone can help how definitely solve this problem in the UMN
Mapserver? Maybe we can add a hint in the Win32 how to.
    Best regards.

-------------------------------------------------------------------
Fernando Simon
UMN Mapserver and Oracle Spatial developer
-------------------------------------------------------------------

Dewald Troskie wrote:
> Hi,
>  
> I am trying to compile Mapserver 4.10.0 under VC 2005 (.NET 2.0) on Windows
> XP SP2. I have managed to sort out most of the compilation errrors (GD
> related libraries, despite using the precompiled bgd.lib stub), but keep
> getting these Regex errors. I am new to C / C++ so I need help. 
>  
> I am using to stock regex library from GNU.org, and have tried the GnuWin
> Regex Library, as well as thew Boost C++ regex library. Is it the VC8
> non-standard "safe" C++ compiler? I don't know where to go from here. I am
> following the documentation / Win32 Compile howto from the UMN Mapserver
> site. Is it maybe also the crtdefs.c include causing problems, and if so
> what is the workaround.
>  
> Below is the output from the compile nmake /f makefile.vc for Mapserver:
>  
>
>
> C:\projects\mapserver-4.10.0>nmake /f makefile.vc
>  
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
> Copyright (C) Microsoft Corporation.  All rights reserved.
>  
>         cl /nologo /Zi /MD /W3 /DDEBUG /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_N
> ONSTDC_NO_DEPRECATE -Ic:\projects\gdwin32  -Ic:\projects\jpeg-6b   -Ic:\projects
> \proj-4.5.0/src -Ic:\projects\regex-0.12 -Ic:\projects\gdal-1.4.0/gcore -Ic:\pro
> jects\gdal-1.4.0/alg -Ic:\projects\gdal-1.4.0/ogr -Ic:\projects\gdal-1.4.0/port
>               -Ic:\projects\zlib-1.2.3  -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_ST
> RCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT    -DUSE_PROJ -DUSE_PROJ_API_H  -DUSE
> _JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFP
> TR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DGD_HAS_FTEX_XSHOW  -DUSE_WMS_SVR -DUSE_T
> HREAD    -DIGNORE_MISSING_DATA   -DENABLE_STDERR_DEBUG   -DUSE_GDAL         -DUS
> E_GD_ANTIALIAS       -DUSE_ZLIB  -DWIN32 -D_WIN32 /c c:\projects\regex-0.12\rege
> x.c /Foc:\projects\regex-0.12\regex.obj
> regex.c
> c:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : signed/unsigned misma
> tch
> c:\projects\regex-0.12\regex.c(774) : warning C4018: '<' : signed/unsigned misma
> tch
> c:\projects\regex-0.12\regex.c(1123) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1189) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1204) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1297) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1322) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1336) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1346) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1358) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1364) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1372) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1608) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1638) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1683) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1698) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1726) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1813) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1926) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1932) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1937) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1941) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1945) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1949) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1957) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(1975) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(2023) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(2027) : warning C4018: '>' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(2042) : warning C4013: 'free' undefined; assuming
>  extern returning int
> c:\projects\regex-0.12\regex.c(2236) : warning C4018: '<=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(2784) : warning C4013: 'abort' undefined; assumin
> g extern returning int
> c:\projects\regex-0.12\regex.c(2834) : warning C4047: '=' : 'regoff_t *' differs
>  in levels of indirection from 'int'
> c:\projects\regex-0.12\regex.c(3313) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(3403) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(3427) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(3480) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(3496) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(3760) : warning C4018: '<' : signed/unsigned mism
> atch
> c:\projects\regex-0.12\regex.c(3771) : warning C4018: '<=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(3918) : warning C4018: '<=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(3971) : warning C4018: '<=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(4079) : warning C4018: '>=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(4110) : warning C4018: '<=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(4123) : warning C4018: '<=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(4293) : warning C4018: '>=' : signed/unsigned mis
> match
> c:\projects\regex-0.12\regex.c(3771) : warning C4101: 'destination' : unreferenc
> ed local variable
> c:\projects\regex-0.12\regex.c(3918) : warning C4101: 'destination' : unreferenc
> ed local variable
> c:\projects\regex-0.12\regex.c(3971) : warning C4101: 'destination' : unreferenc
> ed local variable
> c:\projects\regex-0.12\regex.c(4110) : warning C4101: 'destination' : unreferenc
> ed local variable
> c:\projects\regex-0.12\regex.c(4123) : warning C4101: 'destination' : unreferenc
> ed local variable
> c:\projects\regex-0.12\regex.c(4876) : warning C4996: 'errcode' was declared dep
> recated
>         C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s
> ee declaration of 'errcode'
>         Message: 'This name was supported during some Whidbey pre-releases. Inst
> ead, use the standard name errno_t.'
> c:\projects\regex-0.12\regex.c(4876) : error C2081: 'preg' : name in formal para
> meter list illegal
> c:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf' : name in formal pa
> rameter list illegal
> c:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf_size' : name in form
> al parameter list illegal
> c:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter li
> st, not a type list
> c:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal param
> eter 'errcode'
> c:\projects\regex-0.12\regex.c(4885) : warning C4996: 'errcode' was declared dep
> recated
>         C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s
> ee declaration of 'errcode'
>         Message: 'This name was supported during some Whidbey pre-releases. Inst
> ead, use the standard name errno_t.'
> c:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : 'type'
> c:\projects\regex-0.12\regex.c(4893) : error C2275: 'errcode' : illegal use of t
> his type as an expression
>         C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s
> ee declaration of 'errcode'
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
> l.EXE"' : return code '0x2'
> Stop.
>  
> C:\projects\mapserver-4.10.0>
>  
>  
>  
> Thanks in advance,
>  
> Dewald Troskie
> GIS Developer / Database Architect
> Network Administrator
> GIS Global Image (Pty) Ltd.
> Helping the world make informed decisions
> P.O Box 15 The Innovation Hub 0087 
> Cell: +27 (0)82 615 0248
> Tel: +27 (0)12 844 0660
> Fax: +27 (0)86 619 3958
> Email: dewald at globalimage.co.za 
> Web: www.globalimage.co.za 
> Web: www.mapme.co.za
> Registered Linux User No: 371874
> Office L15 Enterprise Building 
> The Innovation Hub - Hotel Street
> Lynnwood, Pretoria, 0087
>  
>  
>
>   



More information about the mapserver-dev mailing list