problems making PHP mapscript

A. Giacomelli andreag at crs4.it
Fri Feb 2 00:48:39 PST 2001


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.


I have noticed that the references are all to the functions contained in
my libphp3.so. I have tried forcing the linker to read this file (adding
-L and -l...), but this in turn returns other undefined references to
functions with an ap_ prefix (presumably related to Apache)


...one thing I had to change to the Makefile is that, although I am
using gcc, the configure script generates for the PHP mapscript Makefile
a CC=cc (which I changed to gcc). I don't know whether this may be
related to the above problem...


Any suggestions ?


Regards,


p.s. I am in a Solaris environment; Apache and PHP are working.


=========================================
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