Compiling Mapserver-5.0.0 with Regex

Joe Nannery joealan at SBCGLOBAL.NET
Mon Feb 4 13:46:04 PST 2008


Hello everyone,

I've been trying to post on the users list on the UMN site, but nothing seems to be appearing, so I apologize in advance if this is the 3rd time I've sent this.

I'm compiling with regex-0.12, and am experiencing some of the usual problems some people have posted.  I have tried the steps in the Win32 Comp, replacing:

//extern void printchar ();
with:
void printchar( int i ) {}
However, there are still problems.  Is there a different regex.c file without all these errors?  I have tried a couple others with no luck.
This is the error:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SE_GD_ANTIALIAS       -DUSE_ZLIB    -DWIN32 -D_WIN32 /c C:\Mapserver\mapserver-5
.0.0\regex\regex.c /FoC:\Mapserver\mapserver-5.0.0\regex\regex.obj
regex.c
C:\Mapserver\mapserver-5.0.0\regex\regex.c(769) : warning C4018: '<' : signed/un
signed mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(775) : warning C4018: '<' : signed/un
signed mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1124) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1190) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1205) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1298) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1323) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1337) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1347) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1359) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1365) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1373) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1609) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1639) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1684) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1699) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1727) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1814) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1927) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1933) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1938) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1942) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1946) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1950) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1954) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1958) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(1976) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(2024) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(2028) : warning C4018: '>' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(2043) : warning C4013: 'free' undefin
ed; assuming extern returning int
C:\Mapserver\mapserver-5.0.0\regex\regex.c(2237) : warning C4018: '<=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(2785) : warning C4013: 'abort' undefi
ned; assuming extern returning int
C:\Mapserver\mapserver-5.0.0\regex\regex.c(2835) : warning C4047: '=' : 'regoff_
t *' differs in levels of indirection from 'int'
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3314) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3404) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3428) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3481) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3497) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3761) : warning C4018: '<' : signed/u
nsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3772) : warning C4018: '<=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3919) : warning C4018: '<=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3972) : warning C4018: '<=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4080) : warning C4018: '>=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4111) : warning C4018: '<=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4124) : warning C4018: '<=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4294) : warning C4018: '>=' : signed/
unsigned mismatch
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3772) : warning C4101: 'destination'
: unreferenced local variable
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3919) : warning C4101: 'destination'
: unreferenced local variable
C:\Mapserver\mapserver-5.0.0\regex\regex.c(3972) : warning C4101: 'destination'
: unreferenced local variable
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4111) : warning C4101: 'destination'
: unreferenced local variable
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4124) : warning C4101: 'destination'
: unreferenced local variable
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : warning C4996: 'errcode' was
declared deprecated
        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:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : error C2081: 'preg' : name in
 formal parameter list illegal
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : error C2081: 'errbuf' : name
in formal parameter list illegal
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : error C2081: 'errbuf_size' :
name in formal parameter list illegal
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4878) : error C2055: expected formal
parameter list, not a type list
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4878) : error C2082: redefinition of
formal parameter 'errcode'
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4886) : warning C4996: 'errcode' was
declared deprecated
        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:\Mapserver\mapserver-5.0.0\regex\regex.c(4886) : error C2059: syntax error : '
type'
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4894) : error C2275: 'errcode' : ille
gal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s
ee declaration of 'errcode'
C:\Mapserver\mapserver-5.0.0\regex\regex.c(4911) : warning C4996: 'strcpy' was d
eclared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy
_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online hel
p for details.'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.

C:\Mapserver\mapserver-5.0.0>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks in advance for any help!

Joe Nannery
joealan at sbcglobal.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080204/e1e65d66/attachment.htm>


More information about the MapServer-users mailing list