[Mapserver-users] mapscript dl() fails with missing gdImageSetClip symbol

Hal Mueller hal at mobilegeographics.com
Thu Apr 15 02:55:31 EDT 2004


Thanks to some suggestions from list members I have mapserv up and 
running, got the itasca demo to draw, and built a second PHP (CGI 
version) to run Mapscript.  I have php_mapscript.so copied to the 
proper directory (I know this because for a while I didn't!).  I have 
edited ld.so.conf, run ldconfig, and restarted httpd.

I'm now trying to do a simple dl(php_mapscript), phpinfo().

When I do this I see

Warning :  dl(): Unable to load dynamic library 
'/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' 
- 
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so: 
undefined symbol: gdImageSetClip in 
/home/virtual/site1/fst/var/www/html/mapscriptTest.phtml on line 11

The installation, and full phpinfo() results including config 
switches, are at 
http://65.18.157.253/mobilegeographics.com/mapscriptTest.phtml . 
Another sample, 
http://65.18.157.253/mobilegeographics.com/phpinfo.php, uses the 
built-in PHP (4.3.3 instead of 4.3.5).

I believe that what is happening is that php_mapscript needs another 
dynamic library to find the GD stuff, but isn't finding it.  But I'm 
not sure of that.

Suggestions?

TIA,
Hal



More information about the mapserver-users mailing list