[Mapserver-users] mapserver win32 compilation problems
Rosangela Silva
rosangela.silva at zenitpolar.com.br
Mon May 12 12:16:36 PDT 2003
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C318A1.DC7B1140
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Gayathri,
I have 2 files "in.h" in my computer:
Directory of c:\cygwin\usr\include\cygwin
18/03/2003 11:21 5.970 in.h
1 File(s) 5.970 bytes
Directory of c:\cygwin\usr\include\netinet
18/03/2003 11:21 325 in.h
1 File(s) 325 bytes
But the second file refer to the first, and contens only this
lines:
#ifndef _NETINET_IN_H
#define _NETINET_IN_H
#include <cygwin/in.h>
#endif /* _NETINET_IN_H */
in.h needs types.h that causes others erros.
I don't know what to do. Any suggest??
I saw in your message (WMS support when building mapserver with VC++6.0)
that you have problems with links and no answers about it. But you
have sucess with visual c++ compiling, and it's solve your problem.=20
I thought that compiling by command line will be more easy, but now, I =
don't
know if I try to do it again in visual C++. I would like to ask you to =
send me all
mapserver directory, including the libraries, not only workspace :-))=20
but this can not be convenient (or polite), I don't know. Or just =
mapserver.exe,
did you compile it with postgis0.7.5, don't you??? To continue testing =
my requirements
it's ok, but (at some moment) it is interesting that I have the project =
of mapserver here=20
for others increases.=20
Thanks
Ros=E2ngela.=20
----- Original Message -----=20
From: Swaminathan, Gayathri=20
To: 'Rosangela Silva' ; Mapserver-Users at Lists. Gis. Umn. Edu=20
Sent: Monday, May 12, 2003 2:50 PM
Subject: RE: [Mapserver-users] mapserver win32 compilation problems
Hi:
I am sure of a way that will, make this work under, command line =
compiler.,
May be the in.h under cygwin is different than the inet.h Microsoft =
VC++ uses., in some ways.,
I am thinking the declarations of sockaddr_in under cygwin/in.h and =
/include/inet.h are different.,
You are probably getting errors using, the workspace because, the =
paths to lib or include files do not match right., To change these to =
point to right
places, go under Projects->Settings-> Link, and Check the =
Tools->Options->Include file paths and Lib file paths in the VC++ =
workspace. Set them to the
right paths to where you library or include files are.
Also, dont bother about the postgresql7.3.2-1 and postgis 0.7.5, I =
have these only, and the instructions you obtained of the mailing lists, =
was the procedure I used to get mapserver
to compile with Postgis.
Thanks,
Gayathri
-----Original Message-----
From: Rosangela Silva [mailto:rosangela.silva at zenitpolar.com.br]
Sent: Monday, May 12, 2003 10:41 AM
To: Swaminathan, Gayathri; Mapserver-Users at Lists. Gis. Umn. Edu
Subject: Re: [Mapserver-users] mapserver win32 compilation problems
Hi Gayathri,
Thanks for your help.
I change the u_short to short and it's solve the erros in
HTProt.h and HTHost.h files.=20
But about 'sockaddr_in' , how you sad, the file "in.h" is=20
in Cygwin directory. But I'm not compiling mapserver
under Cygwin, is it wrong?? I try to copy this file
and others files of cygwin../include/sys directory, but
other erros had appeared.
About workspace and compile mapserver with VC++,
I tried to make this when Prashant Desai posted your dsw, but
I had many many erros of LINK that they had made me to give up . =20
But I need to compile mapserver, specially because I'm using
posgresql7.3.2-1 and postgis 0.7.5.=20
Thanks
Rosangela.
From: Swaminathan, Gayathri=20
To: 'Rosangela Silva' ; Mapserver-Users at Lists. Gis. Umn. Edu=20
Cc: vladimir.kozlov at idm.ru ; jnovak at novacell.com=20
Sent: Monday, May 12, 2003 1:53 PM
Subject: RE: [Mapserver-users] mapserver win32 compilation =
problems
Hi ,
I have got the exact errors you mention, earlier in my attempts to =
compile.=20
For some reason the u_short does not work well for "cl" in =
windows.,=20
if you change u_short to short - it will compile without those =
u_short errors ( I am not sure of the implications).,=20
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,=20
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).
And I'm using the "compiling postgis with mapserver" =
instructions by Gayathri Swaminathan=20
=
(http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003469.htm=
l). 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: '=3D' : '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=E2ngela
------=_NextPart_000_000F_01C318A1.DC7B1140
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003>Gayathri,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>I have =
2 files=20
"in.h" in my computer:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003> Directory of=20
c:\cygwin\usr\include\cygwin</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003>18/03/2003 =20
11:21 &n=
bsp;=20
5.970=20
in.h<BR>  =
; =20
1 File(s) 5.970=20
bytes</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003> Directory of=20
c:\cygwin\usr\include\netinet</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003>18/03/2003 =20
11:21 &n=
bsp; =20
325=20
in.h<BR>  =
; =20
1 =
File(s) =
325=20
bytes</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>But =
the second file=20
refer to the first, and contens only this</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003>lines:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003>#ifndef=20
_NETINET_IN_H<BR>#define _NETINET_IN_H</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003>#include=20
<cygwin/in.h></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>#endif =
/*=20
_NETINET_IN_H */<BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>in.h =
needs types.h=20
that causes others erros.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>I =
don't know what to=20
do. Any suggest??</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>I saw =
in your=20
message (WMS support when building mapserver with=20
VC++6.0)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>that =
you have=20
problems with links and no answers about it. But you</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>have =
sucess with=20
visual c++ compiling, and it's solve your problem. =
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>I =
thought that=20
compiling by command line will be more easy, but now, I=20
don't</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>know =
if I try to do=20
it again in visual C++. I would like to ask you =
to send me=20
all</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003>mapserver directory, including the=20
libraries, not only workspace :-)) </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003>but this can=20
not be convenient (or polite), I don't know.=20
Or just mapserver.exe,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>did =
you compile it=20
with postgis0.7.5, don't you??? To continue testing my=20
requirements</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>it's =
ok, but (at=20
some moment) it is interesting that I have the project of mapserver =
here </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D733444819-12052003>for =
others=20
increases. </SPAN></FONT><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003>Ros=E2ngela.</SPAN></FONT><FONT face=3DArial =
size=3D2><SPAN=20
class=3D733444819-12052003> </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D733444819-12052003></SPAN></FONT><FONT=20
face=3DArial size=3D2><SPAN =
class=3D733444819-12052003> </DIV></SPAN></FONT>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dgayathri at ou.edu =
href=3D"mailto:gayathri at ou.edu">Swaminathan,=20
Gayathri</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
title=3Drosangela.silva at zenitpolar.com.br=20
href=3D"mailto:rosangela.silva at zenitpolar.com.br">'Rosangela =
Silva'</A> ; <A=20
title=3Dmapserver-users at lists.gis.umn.edu=20
href=3D"mailto:Mapserver-Users at Lists. Gis. Umn. =
Edu">Mapserver-Users at Lists. Gis.=20
Umn. Edu</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, May 12, 2003 2:50 =
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Mapserver-users] =
mapserver=20
win32 compilation problems</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003>Hi:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D733444819-12052003>I am=20
sure of a way that will, make this work under, command line=20
compiler.,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D733444819-12052003>May=20
be the in.h under cygwin is different than the inet.h Microsoft VC++ =
uses., in=20
some ways.,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D733444819-12052003>I am=20
thinking the declarations of sockaddr_in under cygwin/in.h and =
/include/inet.h=20
are different.,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D733444819-12052003>You=20
are probably getting errors using, the workspace because, the paths to =
lib or=20
include files do not match right., To change these to point to=20
right</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003>places, go under Projects->Settings-> =
Link, and=20
Check the Tools->Options->Include file paths and Lib file paths =
in the=20
VC++ workspace. Set them to the</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003>right paths to where you library or include =
files=20
are.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003>Also, dont bother about the =
postgresql7.3.2-1 and=20
postgis 0.7.5, I have these only, and the instructions you =
obtained of=20
the mailing lists, was the procedure I used to get=20
mapserver</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D733444819-12052003>to=20
compile with Postgis.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003>Gayathri</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D733444819-12052003></SPAN></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Rosangela Silva=20
[mailto:rosangela.silva at zenitpolar.com.br]<BR><B>Sent:</B> Monday, =
May 12,=20
2003 10:41 AM<BR><B>To:</B> Swaminathan, Gayathri; =
Mapserver-Users at Lists.=20
Gis. Umn. Edu<BR><B>Subject:</B> Re: [Mapserver-users] mapserver =
win32=20
compilation problems<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hi Gayathri,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I change the u_short to short and =
it's solve=20
the erros in</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>HTProt.h and HTHost.h files. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But about 'sockaddr_in' , how you =
sad, the file=20
"in.h" is </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in Cygwin directory. But I'm =
not compiling=20
mapserver</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>under Cygwin, is it wrong?? I try =
to copy this=20
file</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and others files of =
cygwin../include/sys=20
directory, but</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>other erros had =
appeared.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>About workspace and compile =
mapserver with=20
VC++,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I tried to =
make this when=20
Prashant Desai posted your dsw, but</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I had many many erros=20
of LINK that they had made me to give=20
up .</FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But I need to compile mapserver, =
specially=20
because I'm using</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>posgresql7.3.2-1 and postgis 0.7.5. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Rosangela.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial"><STRONG>From:</STRONG> <A=20
title=3Dgayathri at ou.edu =
href=3D"mailto:gayathri at ou.edu">Swaminathan,=20
Gayathr</A><A title=3Dgayathri at ou.edu =
href=3D"mailto:gayathri at ou.edu">i</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><STRONG>To:</STRONG> <A=20
title=3Drosangela.silva at zenitpolar.com.br=20
href=3D"mailto:rosangela.silva at zenitpolar.com.br">'Rosangela =
Silva'</A> ; <A=20
title=3Dmapserver-users at lists.gis.umn.edu=20
href=3D"mailto:Mapserver-Users at Lists. Gis. Umn. =
Edu">Mapserver-Users at Lists.=20
Gis. Umn. Edu</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Dvladimir.kozlov at idm.ru=20
href=3D"mailto:vladimir.kozlov at idm.ru">vladimir.kozlov at idm.ru</A> =
; <A=20
title=3Djnovak at novacell.com=20
href=3D"mailto:jnovak at novacell.com">jnovak at novacell.com</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, May 12, 2003 =
1:53=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: =
[Mapserver-users]=20
mapserver win32 compilation problems</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><BR></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>Hi=20
,</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>I have got the=20
exact errors you mention, earlier in my attempts to compile.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>For some=20
reason the<STRONG> u_short does not work well for "cl" in=20
windows</STRONG>., </FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2><STRONG>if you=20
change u_short to short</STRONG> - it will compile without =
those=20
u_short errors ( I am not sure of the=20
implications)., </FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>Again if you=20
check that error, "Libwww/Library/src/HTHstMan.h(94) : error =
C2079:=20
'sock_addr' uses undefined struct =
'sockaddr_in'"</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2><FONT color=3D#000000>and open HTHstMan.h, you will see =
that, this is=20
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=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2><STRONG>sockaddr_in is defined in "in.h"</STRONG>, =
somehow the VC++=20
compiler overlooks this and we have this persistent=20
error.</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>But the=20
way I overcame these errors when I hurt real bad to compile <SPAN=20
class=3D602484918-12052003><FONT face=3DArial size=3D2>Mapserver =
with WMS=20
was</FONT></SPAN>, </FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>by using the=20
VC++ workspace Prashant Desai posted sometime back and setting my =
lib=20
paths in VC workspace and compiling mapserver using a VC++=20
workspace.</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial =
size=3D2>If you would=20
like to have a copy of the workspace let me know. Will send it to=20
you.</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2>Gayathri</FONT></SPAN></DIV>
<DIV><SPAN class=3D602484918-12052003><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Rosangela =
Silva=20
[mailto:rosangela.silva at zenitpolar.com.br]<BR><B>Sent:</B> =
Monday, May=20
12, 2003 7:40 AM<BR><B>To:</B> Mapserver-Users at Lists. Gis. Umn.=20
Edu<BR><B>Cc:</B> vladimir.kozlov at idm.ru;=20
jnovak at novacell.com<BR><B>Subject:</B> [Mapserver-users] =
mapserver win32=20
compilation problems<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to compile mapserver =
on win32=20
(winxp) and I'm looking</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for some help but I coundn't =
find it in=20
lists (mapserver, libwww).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm using the =
precompiled Libwww=20
avaiable for Vladimir A. Kozlov</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(<A =
href=3D"ftp://ftp.idm.ru/libwww/"><FONT=20
face=3D"Times New Roman"=20
size=3D3>ftp://ftp.idm.ru/libwww</FONT></A>).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>And I'm using the =
"compiling postgis=20
with mapserver" </FONT><FONT face=3DArial size=3D2>instructions =
by Gayathri=20
Swaminathan </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(<A=20
=
href=3D"http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003=
469.html">http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/0=
03469.html</A>).=20
About</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>postgis, I don't know if it =
will run,=20
because the warnings "ignored" lines.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The mapserver compilation erros =
results=20
are:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>nmake /f =
Makefile.vc</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Microsoft (R) Program =
Maintenance=20
Utility Version 6.00.8168.0<BR>Copyright (C) =
Microsoft Corp=20
1988-1998. All rights reserved.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
cl libpq7.3.2/libpq.lib libpq7.3.2/interfaces/libpq/libpqdll.lib =
/nologo<BR> /Zi /W3 /DDEBUG /DWIN32 libpq7.3.2/libpq.lib=20
libpq7.3.2/interfaces/libpq/libpqd<BR>ll.lib -I gd-1.8.4 -I=20
tiff-v3.5.7/libtiff -I proj-4.4.5/src =20
-Iphp-4.3.1\rege<BR>x -DPHP_NO_ALIASES =
-Igdal-1.1.7/ogr/ogrsf_frmts=20
-Igdal-1.1.7/ogr -Igdal-1.1.7/og<BR>r/../port =
-Igdal-1.1.7/core -I=20
Libwww/library/src -I Libwww/modules/expat/xmlpa<BR>rse =
-DHAVE_STRING_H=20
-DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP =20
-DUSE_<BR>EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF =
-DUSE_GD_GIF=20
-DUSE_GD_PNG -DUSE_GD_<BR>JPEG -DUSE_GD_WBMP -DUSE_GD_TTF =20
-DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -<BR>DUSE_WMS=20
-DUSE_WMS_LYR -DIGNORE_MISSING_DATA -DUSE_GDAL =
-DFEATURE_INFO_HTML=20
/c<BR>mapwmslayer.c /Fomapwmslayer.obj<BR>Command line warning =
D4027 :=20
source file 'libpq7.3.2/libpq.lib' ignored<BR>Command line =
warning D4027=20
: source file 'libpq7.3.2/interfaces/libpq/libpqdll.l ib'=20
ignored<BR>Command line warning D4027 : source file=20
'libpq7.3.2/libpq.lib' ignored<BR>Command line warning D4027 : =
source=20
file 'libpq7.3.2/interfaces/libpq/libpqdll.l ib'=20
ignored<BR>mapwmslayer.c<BR>Libwww/Library/src/HTProt.h(58) : =
error=20
C2061: syntax error : identifier=20
'HTProtocolId'<BR>Libwww/Library/src/HTProt.h(58) : error C2059: =
syntax=20
error : ';'<BR>Libwww/Library/src/HTProt.h(85) : error C2146: =
syntax=20
error : missing ')' before identifier=20
'port'<BR>Libwww/Library/src/HTProt.h(85) : error C2081: =
'HTProtocolId'=20
: name in formal parameter list=20
illegal<BR>Libwww/Library/src/HTProt.h(85) : error C2061: syntax =
error :=20
identifier 'port'<BR>Libwww/Library/src/HTProt.h(85) : error =
C2059:=20
syntax error : ';'<BR>Libwww/Library/src/HTProt.h(85) : error =
C2059:=20
syntax error : ','<BR>Libwww/Library/src/HTProt.h(88) : error =
C2059:=20
syntax error : ')'<BR>Libwww/Library/src/HTProt.h(132) : error =
C2061:=20
syntax error : identifier=20
'HTProtocol_id'<BR>Libwww/Library/src/HTProt.h(132) : error =
C2059:=20
syntax error : ';'<BR>Libwww/Library/src/HTProt.h(132) : error =
C2059:=20
syntax error : 'type'<BR>Libwww/Library/src/HTHost.h(65) : error =
C2146:=20
syntax error : missing ')' before identifier=20
'u_port'<BR>Libwww/Library/src/HTHost.h(65) : error C2081: =
'u_short' :=20
name in formal parameter list =
illegal<BR>Libwww/Library/src/HTHost.h(65)=20
: error C2061: syntax error : identifier=20
'u_port'<BR>Libwww/Library/src/HTHost.h(65) : error C2059: =
syntax error=20
: ';'<BR>Libwww/Library/src/HTHost.h(65) : error C2059: syntax =
error :=20
')'<BR>Libwww/Library/src/HTHost.h(66) : error C2146: syntax =
error :=20
missing ')' before identifier=20
'u_port'<BR>Libwww/Library/src/HTHost.h(66) : error C2081: =
'u_short' :=20
name in formal parameter list =
illegal<BR>Libwww/Library/src/HTHost.h(66)=20
: error C2061: syntax error : identifier=20
'u_port'<BR>Libwww/Library/src/HTHost.h(66) : error C2059: =
syntax error=20
: ';'<BR>Libwww/Library/src/HTHost.h(66) : error C2059: syntax =
error :=20
')'<BR>Libwww/Library/src/HTHstMan.h(60) : error C2061: syntax =
error :=20
identifier 'u_short'<BR>Libwww/Library/src/HTHstMan.h(94) : =
error C2079:=20
'sock_addr' uses undefined struct=20
'sockaddr_in'<BR>Libwww/Library/src/HTHstMan.h(110) : error =
C2059:=20
syntax error : '}'<BR>mapwmslayer.c(292) : warning C4013: =
'index'=20
undefined; assuming extern =
returning int<BR>mapwmslayer.c(292) :=20
warning C4047: '=3D' : 'const char *' differs in levels of in =
direction=20
from 'int '<BR>mapwmslayer.c(340) : warning C4013: 'isspace' =
undefined;=20
assuming extern returning int<BR>mapwmslayer.c(368) : warning =
C4090:=20
'function' : different 'const' qualifiers<BR>mapwmslayer.c(368) =
:=20
warning C4024: 'strcasecmp' : different types for formal and =
actual=20
parameter 2<BR>NMAKE : fatal error U1077: 'cl' : return code=20
'0x2'<BR>Stop.<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>All helps are =
welcome,</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial=20
=
size=3D2>Ros=E2ngela</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQ=
UOTE></FONT></BODY></HTML>
------=_NextPart_000_000F_01C318A1.DC7B1140--
More information about the MapServer-users
mailing list