windows buildkit, regex change

Szekeres Tamás szekeres.tamas at FREEMAIL.HU
Sun Apr 2 13:01:24 EDT 2006


Bart,


I really don't know why am I kicked off the mapserver-dev list.
I just wanted to propose for visiting

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1651


Best Regards,

Tamas



-----Original Message-----
From: UMN MapServer Developers List [mailto:MAPSERVER-DEV at LISTS.UMN.EDU] On
Behalf Of Bart van den Eijnden (OSGIS)
Sent: Sunday, April 02, 2006 3:24 PM
To: MAPSERVER-DEV at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-DEV] windows buildkit, regex change

Hi Howard, list,

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)

otherwise you get the following with Visual Studio 8:

c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4876) : error C2081: 
'preg' :
name in formal parameter list illegal
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4876) : error C2081: 
'errbuf'
: name in formal parameter list illegal
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4876) : error C2081: 
'errbuf_s
ize' : name in formal parameter list illegal
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4877) : error C2055: 
expected
formal parameter list, not a type list
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4877) : error C2082: 
redefinit
ion of formal parameter 'errcode'
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4885) : warning C4996: 
'errcod
e' was declared deprecated
        C:\Program Files\Microsoft Visual Studio 
8\VC\INCLUDE\crtdefs.h(393) : s
ee declaration of 'errcode'
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4885) : error C2059: 
syntax er
ror : 'type'
c:\buildkit\mapserver-4.8.3\..\regex-0.12\regex.c(4893) : error C2275: 
'errcode'
 : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio 
8\VC\INCLUDE\crtdefs.h(393) : 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.

Best regards,
Bart

-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 2006.03.31.
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 2006.03.31.
 



More information about the mapserver-dev mailing list