Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2005 build problem #1651

Closed
mapserver-bot opened this issue Apr 3, 2012 · 5 comments
Closed

Visual Studio 2005 build problem #1651

mapserver-bot opened this issue Apr 3, 2012 · 5 comments

Comments

@mapserver-bot
Copy link

Reporter: szekerest
Date: 2006/02/08 - 21:50
Trac URL: http://trac.osgeo.org/mapserver/ticket/1651

When compiling mapserver with Visual Studio 2005 the following error occurs:

cl /nologo /Zi /MD /EHsc /w /DDEBUG -Ic:/projects/gdwin32    
-Ic:\projects\proj-4.4.9/src -Ic:\projects\regex-0.12
-Ic:\projects\gdal-1.3.1/gcore -Ic:\projects\gdal-1.3.1/alg
-Ic:\projects\gdal-1.3.1/ogr -Ic:\projects\gdal-1.3.1/port
-Ic:\projects\gdal-1.3.1/ogr/ogrsf_frmts -Ic:\projects\gdal-1.3.1/ogr
-Ic:\projects\gdal-1.3.1/port  -Ic:/projects/curl-7.14.0/include  
-IC:\projects\postgresql-8.0.3\src/interfaces/libpq
-IC:\projects\postgresql-8.0.3\src/include      -Ic:\projects\usr\include 
-DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP
-DNEED_STRLCAT -DUSE_POSTGIS  -DWIN32 -D_WIN32   -DUSE_PROJ -DUSE_PROJ_API_H  
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR
-DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD 
-DUSE_WMS_LYR  -DIGNORE_MISSING_DATA  -DENABLE_STDERR_DEBUG   -DUSE_GDAL  
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR    -DUSE_GD_ANTIALIAS    -DUSE_ICONV
/c c:\projects\regex-0.12\regex.c /Foc:\projects\regex-0.12\regex.obj
regex.c
c:\projects\regex-0.12\regex.c(4877) : error C2081: 'preg' : name in formal
parameter list illegal
c:\projects\regex-0.12\regex.c(4877) : error C2081: 'errbuf' : name in formal
parameter list illegal
c:\projects\regex-0.12\regex.c(4877) : error C2081: 'errbuf_size' : name in
formal parameter list illegal
c:\projects\regex-0.12\regex.c(4878) : error C2055: expected formal parameter
list, not a type list
c:\projects\regex-0.12\regex.c(4878) : error C2082: redefinition of formal
parameter 'errcode'
c:\projects\regex-0.12\regex.c(4886) : error C2059: syntax error : 'type'
c:\projects\regex-0.12\regex.c(4894) : error C2275: 'errcode' : illegal use of
this type as an expression
        C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) :
see declaration of 'errcode'

This problem is dedicated to the old style (not ANSI compliant) function
definitions in regex.c like

size_t
regerror (errcode, preg, errbuf, errbuf_size)
    int errcode;
    const regex_t *preg;
    char *errbuf;
    size_t errbuf_size;
{
...}

Tamas Szekeres
@mapserver-bot
Copy link
Author

Author: szekerest
Date: 2006/02/09 - 12:36


Ok, this fix could help. But I don't know how to handle it as a fix inside 
mapserver. Maybe it can be reported as a known issue. Thank you.

Tamas

@mapserver-bot
Copy link
Author

Author: bene
Date: 2007/10/22 - 15:30
Hi

Nice to find this one.
I had the problem with Mapserver 5

Is downloading the attachement from here still the solution in MS5?

Bye
Benedikt Rothe

@mapserver-bot
Copy link
Author

attachment http://trac.osgeo.org/mapserver/attachment/ticket/1651/regex.c :

   New version of regex.c to work with Visual Studio 2005

@tbonfort
Copy link
Member

@szekerest is this patch still needed on newer versions of visual studio and/or recent versions of mapserver? if not, I would close this one, with the "Too Old" label

@szekerest
Copy link
Member

No patch required with the current version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants