Opened 18 years ago

Last modified 15 years ago

#1879 closed defect

conflict with libgd — at Initial Version

Reported by: dnadeau@… Owned by: mapserverbugs
Priority: high Milestone: 6.0 release
Component: MapScript-PHP Version: 4.10
Severity: normal Keywords:
Cc:

Description

When building mapscript with php support, if using php-gd RPM file there is a
conflict between libgd.so used by mapserver and gd.so found in /usr/lib/php4/  

The first error I got was about in test_layer_mask.phtml:

$map->selectOutputFormat("PNG")

When deleting gd.so from /usr/lib/php4 here is the error I get:

PHP Warning:  dl(): Unable to loaddynamic library
'/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined
symbol: php_gd_gdImageCopy in
/usr/local/mapserver/mapscript/php3/examples/test_layer_mask.phtml
          on line 27

php_gd_gdImageCopy not being found. 

To solve this, I recompiled php from the tarball using --with-gd option pointing
to libgd installation directory. (/usr in my case)

I recompiled php_mapscript.so and placed it in the extension directory.

Problem was solved.

Change History (0)

Note: See TracTickets for help on using tickets.