Anybody using PHP mapscript on Solaris ? (was: Re: problems making PHP mapscript)

A. Giacomelli andreag at crs4.it
Mon Feb 12 07:51:24 EST 2001


Thanks to Daniel Morissette for his feedback.

Following Daniel's hint, I changed the options for ld to conform to my
ld's syntax (from -assert nodefinitions to -z nodefs would seem to make
sense), but the result is identical.

I would like to know if there is anybody on the list who has
successfully built PHP mapscript on Solaris, just to check how they got
it working.


Regards,



Daniel Morissette wrote:
> 
> "A. Giacomelli" wrote:
> >
> > Hi,
> >
> > I am getting problems building the php mapscript module...
> >
> > This is an excerpt from my make output:
> >
> > --
> > cd mapscript/php3; make; cd ../..
> > make[1]: Entering directory
> > `/opt/gislab/src/mapserv_new/mapserver/mapscript/php3'
> > ld -assert nodefinitions  -o php_mapscript.so php_mapscript_util.o
> > php_mapscript.o mapscript_i.o  -L/opt/gislab/src/mapserv_new/maps
> > erver -lmap        -L/opt/gislab/src/mapserv_new/mapserver/gd-1.2 -lgd
> > -lm
> > ld: warning: cannot find entry symbol _start; defaulting to 00011494
> > php_mapscript_util.o: In function `_phpms_report_mapserver_error':
> > php_mapscript_util.o(.text+0x28): undefined reference to `php3_error'
> > php_mapscript_util.o: In function `_phpms_fetch_handle2':
> > php_mapscript_util.o(.text+0x58): undefined reference to `php3_error'
> > php_mapscript_util.o(.text+0x74): undefined reference to
> > `_php3_hash_find'
> > php_mapscript_util.o(.text+0x90): undefined reference to `php3_error'
> > .........
> > .........
> > .........
> > etc.
> >
> 
> Andrea,
> 
> When building a .so on Unix, it is normal to have undefined symbols,
> i.e. when libphp3.so loads php_mapscript.so at runtime then the
> php3_error and other symbols will become available.  By default ld does
> not complain about undefined symbols so I suspect that the problem must
> be coming from the "-assert nodefinitions" in your ld line... try
> removing it.


-- 
=========================================
Andrea Giacomelli
Centre for Advanced Studies, Research and
Development in Sardinia
Environment Group

http://www.crs4.it/~andreag
=========================================



More information about the mapserver-users mailing list