build error

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed Apr 18 10:59:54 EDT 2007


 
Thx.  Here's what I get after applying the patches to mapscript_i.c and php_mapscript.c:
 
$ make
...
mapscript_i.c: In function "layerObj_new":
mapscript_i.c:462: error: request for member "index" in something not a structure or union
make[1]: *** [mapscript_i.o] Error 1
make[1]: Leaving directory `/usr/local/src/mapserver/cvs/mapserver/mapscript/php3'

 
 

	-----Original Message----- 
	From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] 
	Sent: Wed 18-Apr-07 10:54 
	To: Kralidis,Tom [Burlington] 
	Cc: MAPSERVER-DEV at lists.umn.edu 
	Subject: Re: [UMN_MAPSERVER-DEV] build error
	
	

	I don't have an environment to build php yet, so I din't test them but
	the following two patches should fix your build.
	
	Please note that they don't add reference counting to php mapscript,
	they simply allow php mapscript to build on latest cvs.
	
	Let me know how it goes.
	
	Umberto
	
	
	On 4/18/07, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
	>
	> Thx.  The patches seemed to work, but now
	> $ patch -p0 < rfc24-pathKralidis-mapogcsld.patch
	> patching file mapogcsld.c
	> $ patch -p0 < rfc24-pathKralidis-mapswf.patch
	> patching file mapswf.c
	>
	> $ make
	>
	> ......
	>
	> mapogcfilter.o
	> mapogcfilter.c: In function âFLTGetQueryResultsForNodeâ:
	> mapogcfilter.c:375: warning: assignment from incompatible pointer type
	> mapogcfilter.c:381: error: expected identifier before â)â token
	> mapogcfilter.c:559: error: expected â;â before â}â token
	> mapogcfilter.c:610: error: invalid storage class for function âaddResultâ
	> mapogcfilter.c: In function âFLTAddToLayerResultCacheâ:
	> mapogcfilter.c:659: warning: assignment from incompatible pointer type
	> mapogcfilter.c: In function âFLTArraysNotâ:
	> mapogcfilter.c:761: warning: assignment from incompatible pointer type
	> mapogcfilter.c: In function âFLTApplySimpleSQLFilterâ:
	> mapogcfilter.c:998: warning: assignment from incompatible pointer type
	> mapogcfilter.c:1047: error: expected identifier before â)â token
	> mapogcfilter.c:1070: error: expected â;â before â}â token
	> mapogcfilter.c:996: warning: unused variable âpszBufferâ
	> mapogcfilter.c:994: warning: unused variable âmsErrâ
	> mapogcfilter.c:988: warning: unused variable âszExpressionâ
	> mapogcfilter.c: In function âFLTApplyFilterToLayerâ:
	> mapogcfilter.c:1151: warning: initialization from incompatible pointer type
	> mapogcfilter.c: In function âFLTLayerApplyPlainFilterToLayerâ:
	> mapogcfilter.c:1196: warning: assignment from incompatible pointer type
	> mapogcfilter.c: In function âFLTGetQueryResultsForNodeâ:
	> mapogcfilter.c:3624: error: expected declaration or statement at end of input
	> mapogcfilter.c:348: warning: unused variable âdfCurrentToleranceâ
	> mapogcfilter.c:344: warning: unused variable âpanResultsâ
	> mapogcfilter.c:343: warning: unused variable âsProjTmpâ
	> mapogcfilter.c:342: warning: unused variable ânTokensâ
	> mapogcfilter.c:341: warning: unused variable âtokensâ
	> mapogcfilter.c:336: warning: unused variable âiâ
	> mapogcfilter.c:336: warning: unused variable ânEpsgTmpâ
	> make: *** [mapogcfilter.o] Error 1
	>
	> ..so then I made changes to mapogcfilter.c:
	>
	> $ cvs diff mapogcfilter.c
	> Index: mapogcfilter.c
	> ===================================================================
	> RCS file: /data2/cvsroot/mapserver/mapogcfilter.c,v
	> retrieving revision 1.71
	> diff -r1.71 mapogcfilter.c
	> 381c381
	> <         initClass(&(lp->class[0]->);
	> ---
	> >         initClass(&(lp->class[0]));
	> 408c408
	> <                     initClass(&(lp->class[1]->);
	> ---
	> >                     initClass(&(lp->class[1]));
	> 1047c1047
	> <     initClass(&(lp->class[0]->);
	> ---
	> >     initClass(&(lp->class[0]));
	>
	>
	> ...and then receive the following error:
	>
	> php_mapscript.c: In function âphp3_ms_map_getAllLayerNamesâ:
	> php_mapscript.c:3903: error: request for member ânameâ in something not a structure or union
	> make[1]: *** [php_mapscript.o] Error 1
	> make[1]: Leaving directory `/usr/local/src/mapserver/cvs/mapserver/mapscript/php3'
	>
	> $ make
	> ...
	>
	> php_mapscript.c: In function "php3_ms_map_getAllLayerNames":
	> php_mapscript.c:3903: error: request for member ânameâ in something not a structure or union
	> make[1]: *** [php_mapscript.o] Error 1
	> make[1]: Leaving directory `/usr/local/src/mapserver/cvs/mapserver/mapscript/php3'
	>
	> Again, I have not committed anything as this looks like a bunch of wholesale changes.
	>
	> ..Tom
	>
	>
	>         -----Original Message-----
	>         From: UMN MapServer Developers List on behalf of Umberto Nicoletti
	>         Sent: Wed 18-Apr-07 05:24
	>         To: MAPSERVER-DEV at LISTS.UMN.EDU
	>         Cc:
	>         Subject: Re: [UMN_MAPSERVER-DEV] build error
	>
	>
	>
	>         After applying the following two patches mapserver *compiles* in this
	>         configuration.
	>
	>         ./configure --with-threads --without-pdf --without-tiff --with-gdal
	>         --with-proj --with-geos --with-ming --with-ogr --with-wms --with-wcs
	>         --with-sos -with-agg --with-wmsclient --with-wfsclient --with-eppl
	>
	>         I am on Ubuntu Feisty.
	>         I cannot apply the patches today, since I am at a customer site
	>         without cvs access.
	>
	>         Please report status so I can commit the changes asap.
	>
	>         Umberto
	>
	>
	>         On 4/18/07, Umberto Nicoletti <umberto.nicoletti at gmail.com> wrote:
	>         > I'm working on fixing it...
	>         > I'll make a patch available later today.
	>         >
	>         > Umberto
	>         >
	>         >
	>         > On 4/17/07, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
	>         > > on FC6, using latest CVS, using:
	>         > >
	>         > > $ ./configure --enable-debug --with-freetype=/usr/local/bin/freetype-config --with-zlib=/usr/local/ --with-png=/usr/local/ --w
	>         > > ith-jpeg=/usr/local/ --with-gd=/usr/local --with-pdf=/usr/local --with-eppl --with-proj=/usr/local --with-ogr=/usr/local/bin
	>         > > /gdal-config --with-gdal=/usr/local/bin/gdal-config --without-tiff --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs
	>         > > --with-wcs --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config --with-xpm=/usr/local --with-php=
	>         > > /usr/local/src/php/php-5.2.1 --with-ming=/usr/local --with-sos --with-geos=/usr/local/bin/geos-config --with-agg=/usr/local/
	>         > > src/agg/agg-2.5/
	>         > >
	>         > > .......
	>         > >
	>         > > mapswf.c: In function âmsDrawMarkerSymbolSWFâ:
	>         > > mapswf.c:1326: error: expected â)â before â;â token
	>         > > mapswf.c:1539: warning: assignment from incompatible pointer type
	>         > > mapswf.c:1539: error: expected â;â before â}â token
	>         > > mapswf.c:1266: warning: unused variable âfcâ
	>         > >
	>         > > I fixed (but did not commit) this in mapswf.c, but then I got errors in mapogcfilter.c.  Checking HEAD shows numerous updates related to RFC 24.  As this looks like a huge bunch of changes, I did not touch anything, for maybe Umberto to check first.
	>         > >
	>         > > ..Tom
	>         > >
	>         > >
	>         >
	>
	>
	>
	>
	



More information about the mapserver-dev mailing list