PHP/Mapscript linux compile problem

Ryan Boyles ryan_boyles at NCSU.EDU
Fri Sep 2 17:38:07 EDT 2005


Hi all -

I'm attempting to install PHP/Mapscript onto a RHEL4 distribution with 
the latest PHP and GD pre-installed.

Mapserver compiles fine, but there are errors in PHP/Mapscript compile:

php_mapscript.c: In function `php3_ms_img_pasteImage':
php_mapscript.c:6267: warning: implicit declaration of function 
`php_gd_gdImageColorExact'
php_mapscript.c:6271: warning: implicit declaration of function 
`php_gd_gdImageColorTransparent'
php_mapscript.c:6274: warning: implicit declaration of function 
`php_gd_gdImageCopy'
php_mapscript.c: In function `php3_ms_img_saveImage':


Normally I ignore compile logs when there's just an error, but this 
seems to cause other problems, and the php_mapscript.so doesn't seem to 
work properly, either as DSO module in Apache or as CGI.

In httpd error_log:
PHP Warning:  Unknown(): Unable to load dynamic library 
'/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so: 
undefined symbol: php_gd_gdImageCopy in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library 
'/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so: 
undefined symbol: php_gd_gdImageCopy in Unknown on line 0

I've configured  Apache as suggested for other preloaded distros, but 
after 8 hours worth of digging, I'm stuck.

Any guidance?

Thanks,
Ryan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ryan_boyles.vcf
Type: text/x-vcard
Size: 337 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050902/13408aad/ryan_boyles.vcf


More information about the mapserver-users mailing list