[Mapserver-users] mapserver win32 compilation problems
Swaminathan, Gayathri
gayathri at ou.edu
Mon May 12 09:53:05 PDT 2003
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C318A6.F562B370
Content-Type: text/plain;
charset="iso-8859-1"
Hi ,
I have got the exact errors you mention, earlier in my attempts to compile.
For some reason the u_short does not work well for "cl" in windows.,
if you change u_short to short - it will compile without those u_short
errors ( I am not sure of the implications).,
Again if you check that error, "Libwww/Library/src/HTHstMan.h(94) : error
C2079: 'sock_addr' uses undefined struct 'sockaddr_in'"
and open HTHstMan.h, you will see that, this is actually coming from a
inclusion of the header "wwwsys.h" and that requires a "in.h" which under
cygwin lib.,
sockaddr_in is defined in "in.h", somehow the VC++ compiler overlooks this
and we have this persistent error.
But the way I overcame these errors when I hurt real bad to compile
Mapserver with WMS was,
by using the VC++ workspace Prashant Desai posted sometime back and setting
my lib paths in VC workspace and compiling mapserver using a VC++ workspace.
If you would like to have a copy of the workspace let me know. Will send it
to you.
Thanks,
Gayathri
-----Original Message-----
From: Rosangela Silva [mailto:rosangela.silva at zenitpolar.com.br]
Sent: Monday, May 12, 2003 7:40 AM
To: Mapserver-Users at Lists. Gis. Umn. Edu
Cc: vladimir.kozlov at idm.ru; jnovak at novacell.com
Subject: [Mapserver-users] mapserver win32 compilation problems
Hello,
I'm trying to compile mapserver on win32 (winxp) and I'm looking
for some help but I coundn't find it in lists (mapserver, libwww).
I'm using the precompiled Libwww avaiable for Vladimir A. Kozlov
( <ftp://ftp.idm.ru/libwww/> ftp://ftp.idm.ru/libwww).
And I'm using the "compiling postgis with mapserver" instructions by
Gayathri Swaminathan
( http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003469.html
<http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003469.html>
). About
postgis, I don't know if it will run, because the warnings "ignored" lines.
The mapserver compilation erros results are:
nmake /f Makefile.vc
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl libpq7.3.2/libpq.lib libpq7.3.2/interfaces/libpq/libpqdll.lib
/nologo
/Zi /W3 /DDEBUG /DWIN32 libpq7.3.2/libpq.lib
libpq7.3.2/interfaces/libpq/libpqd
ll.lib -I gd-1.8.4 -I tiff-v3.5.7/libtiff -I proj-4.4.5/src
-Iphp-4.3.1\rege
x -DPHP_NO_ALIASES -Igdal-1.1.7/ogr/ogrsf_frmts -Igdal-1.1.7/ogr
-Igdal-1.1.7/og
r/../port -Igdal-1.1.7/core -I Libwww/library/src -I
Libwww/modules/expat/xmlpa
rse -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP
-DUSE_
EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_
JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR
-DUSE_OGR -
DUSE_WMS -DUSE_WMS_LYR -DIGNORE_MISSING_DATA -DUSE_GDAL -DFEATURE_INFO_HTML
/c
mapwmslayer.c /Fomapwmslayer.obj
Command line warning D4027 : source file 'libpq7.3.2/libpq.lib' ignored
Command line warning D4027 : source file
'libpq7.3.2/interfaces/libpq/libpqdll.l ib' ignored
Command line warning D4027 : source file 'libpq7.3.2/libpq.lib' ignored
Command line warning D4027 : source file
'libpq7.3.2/interfaces/libpq/libpqdll.l ib' ignored
mapwmslayer.c
Libwww/Library/src/HTProt.h(58) : error C2061: syntax error : identifier
'HTProtocolId'
Libwww/Library/src/HTProt.h(58) : error C2059: syntax error : ';'
Libwww/Library/src/HTProt.h(85) : error C2146: syntax error : missing ')'
before identifier 'port'
Libwww/Library/src/HTProt.h(85) : error C2081: 'HTProtocolId' : name in
formal parameter list illegal
Libwww/Library/src/HTProt.h(85) : error C2061: syntax error : identifier
'port'
Libwww/Library/src/HTProt.h(85) : error C2059: syntax error : ';'
Libwww/Library/src/HTProt.h(85) : error C2059: syntax error : ','
Libwww/Library/src/HTProt.h(88) : error C2059: syntax error : ')'
Libwww/Library/src/HTProt.h(132) : error C2061: syntax error : identifier
'HTProtocol_id'
Libwww/Library/src/HTProt.h(132) : error C2059: syntax error : ';'
Libwww/Library/src/HTProt.h(132) : error C2059: syntax error : 'type'
Libwww/Library/src/HTHost.h(65) : error C2146: syntax error : missing ')'
before identifier 'u_port'
Libwww/Library/src/HTHost.h(65) : error C2081: 'u_short' : name in formal
parameter list illegal
Libwww/Library/src/HTHost.h(65) : error C2061: syntax error : identifier
'u_port'
Libwww/Library/src/HTHost.h(65) : error C2059: syntax error : ';'
Libwww/Library/src/HTHost.h(65) : error C2059: syntax error : ')'
Libwww/Library/src/HTHost.h(66) : error C2146: syntax error : missing ')'
before identifier 'u_port'
Libwww/Library/src/HTHost.h(66) : error C2081: 'u_short' : name in formal
parameter list illegal
Libwww/Library/src/HTHost.h(66) : error C2061: syntax error : identifier
'u_port'
Libwww/Library/src/HTHost.h(66) : error C2059: syntax error : ';'
Libwww/Library/src/HTHost.h(66) : error C2059: syntax error : ')'
Libwww/Library/src/HTHstMan.h(60) : error C2061: syntax error : identifier
'u_short'
Libwww/Library/src/HTHstMan.h(94) : error C2079: 'sock_addr' uses undefined
struct 'sockaddr_in'
Libwww/Library/src/HTHstMan.h(110) : error C2059: syntax error : '}'
mapwmslayer.c(292) : warning C4013: 'index' undefined; assuming extern
returning int
mapwmslayer.c(292) : warning C4047: '=' : 'const char *' differs in levels
of in direction from 'int '
mapwmslayer.c(340) : warning C4013: 'isspace' undefined; assuming extern
returning int
mapwmslayer.c(368) : warning C4090: 'function' : different 'const'
qualifiers
mapwmslayer.c(368) : warning C4024: 'strcasecmp' : different types for
formal and actual parameter 2
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
All helps are welcome,
Thanks
Rosângela
------_=_NextPart_001_01C318A6.F562B370
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>Hi
,</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>I have got the exact
errors you mention, earlier in my attempts to compile. </FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>For some reason
the<STRONG> u_short does not work well for "cl" in windows</STRONG>.,
</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2><STRONG>if you
change u_short to short</STRONG> - it will compile without those u_short
errors ( I am not sure of the implications)., </FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>Again if you check
that error, "Libwww/Library/src/HTHstMan.h(94) : error C2079: 'sock_addr' uses
undefined struct 'sockaddr_in'"</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial color=#0000ff size=2><FONT
color=#000000>and open HTHstMan.h, you will see that, this is actually coming
from a inclusion of the header "wwwsys.h" and that requires a "in.h" which under
cygwin lib.,</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2><STRONG>sockaddr_in
is defined in "in.h"</STRONG>, somehow the VC++ compiler overlooks this and we
have this persistent error.</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>But the way I
overcame these errors when I hurt real bad to compile <SPAN
class=602484918-12052003><FONT face=Arial size=2>Mapserver with WMS
was</FONT></SPAN>, </FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>by using the VC++
workspace Prashant Desai posted sometime back and setting my lib paths in VC
workspace and compiling mapserver using a VC++ workspace.</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial size=2>If you would like to
have a copy of the workspace let me know. Will send it to
you.</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2>Gayathri</FONT></SPAN></DIV>
<DIV><SPAN class=602484918-12052003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Rosangela Silva
[mailto:rosangela.silva at zenitpolar.com.br]<BR><B>Sent:</B> Monday, May 12,
2003 7:40 AM<BR><B>To:</B> Mapserver-Users at Lists. Gis. Umn. Edu<BR><B>Cc:</B>
vladimir.kozlov at idm.ru; jnovak at novacell.com<BR><B>Subject:</B>
[Mapserver-users] mapserver win32 compilation problems<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to compile mapserver on win32 (winxp)
and I'm looking</FONT></DIV>
<DIV><FONT face=Arial size=2>for some help but I coundn't find it in lists
(mapserver, libwww).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using the precompiled Libwww avaiable
for Vladimir A. Kozlov</FONT></DIV>
<DIV><FONT face=Arial size=2>(<A href="ftp://ftp.idm.ru/libwww/"><FONT
face="Times New Roman"
size=3>ftp://ftp.idm.ru/libwww</FONT></A>).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And I'm using the "compiling postgis with
mapserver" </FONT><FONT face=Arial size=2>instructions by Gayathri Swaminathan
</FONT></DIV>
<DIV><FONT face=Arial size=2>(<A
href="http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003469.html">http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003469.html</A>).
About</FONT></DIV>
<DIV><FONT face=Arial size=2>postgis, I don't know if it will run, because the
warnings "ignored" lines.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The mapserver compilation erros results
are:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>nmake /f Makefile.vc</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Microsoft (R) Program Maintenance
Utility Version 6.00.8168.0<BR>Copyright (C) Microsoft Corp
1988-1998. All rights reserved.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cl
libpq7.3.2/libpq.lib libpq7.3.2/interfaces/libpq/libpqdll.lib
/nologo<BR> /Zi /W3 /DDEBUG /DWIN32 libpq7.3.2/libpq.lib
libpq7.3.2/interfaces/libpq/libpqd<BR>ll.lib -I gd-1.8.4 -I
tiff-v3.5.7/libtiff -I proj-4.4.5/src
-Iphp-4.3.1\rege<BR>x -DPHP_NO_ALIASES -Igdal-1.1.7/ogr/ogrsf_frmts
-Igdal-1.1.7/ogr -Igdal-1.1.7/og<BR>r/../port -Igdal-1.1.7/core -I
Libwww/library/src -I Libwww/modules/expat/xmlpa<BR>rse -DHAVE_STRING_H
-DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_<BR>EPPL
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_<BR>JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_GD_TTF
-DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -<BR>DUSE_WMS -DUSE_WMS_LYR
-DIGNORE_MISSING_DATA -DUSE_GDAL -DFEATURE_INFO_HTML /c<BR>mapwmslayer.c
/Fomapwmslayer.obj<BR>Command line warning D4027 : source file
'libpq7.3.2/libpq.lib' ignored<BR>Command line warning D4027 : source file
'libpq7.3.2/interfaces/libpq/libpqdll.l ib' ignored<BR>Command line warning
D4027 : source file 'libpq7.3.2/libpq.lib' ignored<BR>Command line warning
D4027 : source file 'libpq7.3.2/interfaces/libpq/libpqdll.l ib'
ignored<BR>mapwmslayer.c<BR>Libwww/Library/src/HTProt.h(58) : error C2061:
syntax error : identifier 'HTProtocolId'<BR>Libwww/Library/src/HTProt.h(58) :
error C2059: syntax error : ';'<BR>Libwww/Library/src/HTProt.h(85) : error
C2146: syntax error : missing ')' before identifier
'port'<BR>Libwww/Library/src/HTProt.h(85) : error C2081: 'HTProtocolId' : name
in formal parameter list illegal<BR>Libwww/Library/src/HTProt.h(85) : error
C2061: syntax error : identifier 'port'<BR>Libwww/Library/src/HTProt.h(85) :
error C2059: syntax error : ';'<BR>Libwww/Library/src/HTProt.h(85) : error
C2059: syntax error : ','<BR>Libwww/Library/src/HTProt.h(88) : error C2059:
syntax error : ')'<BR>Libwww/Library/src/HTProt.h(132) : error C2061: syntax
error : identifier 'HTProtocol_id'<BR>Libwww/Library/src/HTProt.h(132) : error
C2059: syntax error : ';'<BR>Libwww/Library/src/HTProt.h(132) : error C2059:
syntax error : 'type'<BR>Libwww/Library/src/HTHost.h(65) : error C2146: syntax
error : missing ')' before identifier
'u_port'<BR>Libwww/Library/src/HTHost.h(65) : error C2081: 'u_short' : name in
formal parameter list illegal<BR>Libwww/Library/src/HTHost.h(65) : error
C2061: syntax error : identifier 'u_port'<BR>Libwww/Library/src/HTHost.h(65) :
error C2059: syntax error : ';'<BR>Libwww/Library/src/HTHost.h(65) : error
C2059: syntax error : ')'<BR>Libwww/Library/src/HTHost.h(66) : error C2146:
syntax error : missing ')' before identifier
'u_port'<BR>Libwww/Library/src/HTHost.h(66) : error C2081: 'u_short' : name in
formal parameter list illegal<BR>Libwww/Library/src/HTHost.h(66) : error
C2061: syntax error : identifier 'u_port'<BR>Libwww/Library/src/HTHost.h(66) :
error C2059: syntax error : ';'<BR>Libwww/Library/src/HTHost.h(66) : error
C2059: syntax error : ')'<BR>Libwww/Library/src/HTHstMan.h(60) : error C2061:
syntax error : identifier 'u_short'<BR>Libwww/Library/src/HTHstMan.h(94) :
error C2079: 'sock_addr' uses undefined struct
'sockaddr_in'<BR>Libwww/Library/src/HTHstMan.h(110) : error C2059: syntax
error : '}'<BR>mapwmslayer.c(292) : warning C4013: 'index' undefined; assuming
extern returning int<BR>mapwmslayer.c(292) : warning C4047: '=' : 'const
char *' differs in levels of in direction from 'int '<BR>mapwmslayer.c(340) :
warning C4013: 'isspace' undefined; assuming extern returning
int<BR>mapwmslayer.c(368) : warning C4090: 'function' : different 'const'
qualifiers<BR>mapwmslayer.c(368) : warning C4024: 'strcasecmp' : different
types for formal and actual parameter 2<BR>NMAKE : fatal error U1077: 'cl' :
return code '0x2'<BR>Stop.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>All helps are welcome,</DIV></FONT>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Rosângela</DIV></BLOCKQUOTE></FONT></BODY></HTML>
------_=_NextPart_001_01C318A6.F562B370--
More information about the MapServer-users
mailing list