Compile Errors - Mapserver 4.10.0 and Regex 0.12
Bart van den Eijnden (OSGIS)
bartvde at OSGIS.NL
Wed Feb 7 06:50:53 EST 2007
Hi,
you have to adapt the regex code for this, see also this e-mail from 2006
(search in mapserver-dev archives for "windows buildkit, regex change"):
the regex you provide in your buildkit is not compatible with Visual Studio
8, would you be able to change that? I am pretty positive this would also
work with Visual Studio 7.1, but cannot check that out here. Maybe somebody
else can check that?
In regex.c (line 4875), the following old-style function declaration
should be changed from:
size_t
regerror (errcode, preg, errbuf, errbuf_size)
int errcode;
const regex_t *preg;
char *errbuf;
size_t errbuf_size;
to:
size_t regerror( int errcode, const regex_t* preg, char* errbuf, size_t
errbuf_size)
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: Dewald Troskie <dewald at GLOBALIMAGE.CO.ZA>
Naar: MAPSERVER-DEV at LISTS.UMN.EDU <MAPSERVER-DEV at LISTS.UMN.EDU>
Onderwerp: [UMN_MAPSERVER-DEV] Compile Errors - Mapserver 4.10.0 and Regex
0.12
Datum: 07/02/07 09:11
> 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:projectsmapserver-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:projectsgdwin32 -Ic:projectsjpeg-6b
-Ic:projects
> proj-4.5.0/src -Ic:projectsregex-0.12 -Ic:projectsgdal-1.4.0/gcore -Ic:pro
> jectsgdal-1.4.0/alg -Ic:projectsgdal-1.4.0/ogr -Ic:projectsgdal-1.4.0/port
> -Ic:projectszlib-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:projectsregex-0.12rege
> x.c /Foc:projectsregex-0.12regex.obj
> regex.c
> c:projectsregex-0.12regex.c(768) : warning C4018: '<' : signed/unsigned
misma
> tch
> c:projectsregex-0.12regex.c(774) : warning C4018: '<' : signed/unsigned
misma
> tch
> c:projectsregex-0.12regex.c(1123) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1189) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1204) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1297) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1322) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1336) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1346) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1358) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1364) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1372) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1608) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1638) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1683) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1698) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1726) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1813) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1926) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1932) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1937) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1941) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1945) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1949) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1953) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1957) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(1975) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(2023) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(2027) : warning C4018: '>' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(2042) : warning C4013: 'free' undefined;
assuming
> extern returning int
> c:projectsregex-0.12regex.c(2236) : warning C4018: '<=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(2784) : warning C4013: 'abort' undefined;
assumin
> g extern returning int
> c:projectsregex-0.12regex.c(2834) : warning C4047: '=' : 'regoff_t *'
differs
> in levels of indirection from 'int'
> c:projectsregex-0.12regex.c(3313) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(3403) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(3427) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(3480) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(3496) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(3760) : warning C4018: '<' :
signed/unsigned mism
> atch
> c:projectsregex-0.12regex.c(3771) : warning C4018: '<=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(3918) : warning C4018: '<=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(3971) : warning C4018: '<=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(4079) : warning C4018: '>=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(4110) : warning C4018: '<=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(4123) : warning C4018: '<=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(4293) : warning C4018: '>=' :
signed/unsigned mis
> match
> c:projectsregex-0.12regex.c(3771) : warning C4101: 'destination' :
unreferenc
> ed local variable
> c:projectsregex-0.12regex.c(3918) : warning C4101: 'destination' :
unreferenc
> ed local variable
> c:projectsregex-0.12regex.c(3971) : warning C4101: 'destination' :
unreferenc
> ed local variable
> c:projectsregex-0.12regex.c(4110) : warning C4101: 'destination' :
unreferenc
> ed local variable
> c:projectsregex-0.12regex.c(4123) : warning C4101: 'destination' :
unreferenc
> ed local variable
> c:projectsregex-0.12regex.c(4876) : warning C4996: 'errcode' was declared
dep
> recated
> C:Program FilesMicrosoft Visual Studio 8VCINCLUDEcrtdefs.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:projectsregex-0.12regex.c(4876) : error C2081: 'preg' : name in formal
para
> meter list illegal
> c:projectsregex-0.12regex.c(4876) : error C2081: 'errbuf' : name in formal
pa
> rameter list illegal
> c:projectsregex-0.12regex.c(4876) : error C2081: 'errbuf_size' : name in
form
> al parameter list illegal
> c:projectsregex-0.12regex.c(4877) : error C2055: expected formal parameter
li
> st, not a type list
> c:projectsregex-0.12regex.c(4877) : error C2082: redefinition of formal
param
> eter 'errcode'
> c:projectsregex-0.12regex.c(4885) : warning C4996: 'errcode' was declared
dep
> recated
> C:Program FilesMicrosoft Visual Studio 8VCINCLUDEcrtdefs.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:projectsregex-0.12regex.c(4885) : error C2059: syntax error : 'type'
> c:projectsregex-0.12regex.c(4893) : error C2275: 'errcode' : illegal use
of t
> his type as an expression
> C:Program FilesMicrosoft Visual Studio 8VCINCLUDEcrtdefs.h(506) :
s
> ee declaration of 'errcode'
> NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio
8VCBINc
> l.EXE"' : return code '0x2'
> Stop.
>
> C:projectsmapserver-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