build error

Umberto Nicoletti umberto.nicoletti at GMAIL.COM
Wed Apr 18 11:16:32 EDT 2007


I was able to build php mapscript with the changes I have sent you. If
I try to load php_mapscript I get this error:

--------------/BEGIN


<HTML>
<BODY>


Warning: dl(): Unable to load dynamic library
'/usr/lib/php5/20060613+lfs/php_mapscript.so' -
/usr/lib/php5/20060613+lfs/php_mapscript.so: cannot open shared
object file: Too many levels of symbolic links in
/home/unicoletti/Workspace/scratch/mapserver/mapscript/php3/test.php
on line 11
phpinfo()
PHP Version => 5.2.1

System => Linux ziggy 2.6.20-14-generic #2 SMP Mon Apr 2 20:37:49 UTC 2007 i686
Build Date => Feb 20 2007 19:08:11
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
additional .ini files parsed => /etc/php5/cli/conf.d/ldap.ini,
/etc/php5/cli/conf.d/mysql.ini,
/etc/php5/cli/conf.d/mysqli.ini,
/etc/php5/cli/conf.d/pdo.ini,
/etc/php5/cli/conf.d/pdo_mysql.ini,
/etc/php5/cli/conf.d/pdo_pgsql.ini,
/etc/php5/cli/conf.d/pgsql.ini

PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => zip, php, file, data, http, ftp,
compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl,
sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper,
string.tolower, string.strip_tags, convert.*, consumed,
convert.iconv.*, bzip2.*, zlib.*


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

--------------/END

Maybe because php5 is not supported?
Umberto

On 4/18/07, Umberto Nicoletti <umberto.nicoletti at gmail.com> wrote:
> I hope that's the last error!
> Change the line to read as:
>
>     map->layers[map->numlayers]->index = map->numlayers;
>
> that is: change the dot before index to an arrow.
> Umberto
>
> On 4/18/07, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
> >
> > 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