[Mapserver-users] Undefined symbol 'gdImageGif'

Vincent Schut schut at sarvision.com
Tue Mar 25 02:12:23 PST 2003


Toomas,

Sounds like you are/were using 2 different versions of libgd. Mapserver 
appears to be compiled against a gd that does support GIFs, but the dynamic 
library that is found on your system during runtime doesn't have the gif 
functions. GIF support in GD has been excluded some time ago for license 
reasons, see their homepage for more details.
Here are some checks/hints:

- run 'ldd php_mapscript.so'. It will show you the libraries which it was 
linked against, and where the dynamic linker finds them on your system. Check 
whether the gd library that is found is the same as the one you compiled 
mapserver against.
- run 'find -name libgd*' as root from /. It will show you whether there are 
more than one version of libgd on your system. If so, you might easiest 
remove them all and reinstall (or compile) gd. Don't forget to do the same 
for the header files (gd.h probably).
- make sure php and mapscript were compiled against the same version of GD, 
and that this version of GD is also the one that has been compiled *and 
installed* on your system. If you compiled GD yourself, did you previously 
remove an older version (that you maybe installed with yast)? You should. If 
you installed libgd and libgd-dev with yast, make shure they are of exactly 
the same version.
- You can check in the ./configure output of php and mapserver if the version 
of libGD they found supports gif. If one of them does, and one doesn't, you 
have 2 versions on your system. Find them, delete one and 
reconfigure/recompile.

Regards,
Vincent Schut.

On Monday 24 March 2003 22:33, Toomas Aas wrote:
> Hello!
>
> We are successfully running MapServer 3.5 on Apache 1.3.27/FreeBSD 4.7.
>
> Now we would like to try out PHP Mapscript.
>
> I downloaded the source of MapServer 3.6.5 and ./configured it with the
> same options that were used for 3.5, adding only --with-php:
>
> ./configure \
>  --with-jpeg=../jpeg-6b \
>  --with-freetype=/usr/local/bin/freetype-config \
>  --with-gd=../gd \
>  --with-png=../libpng \
>  --with-tiff=../tiff/libtiff \
>  --with-eppl \
>  --with-ogr=../gdal/ogr \
>  --with-proj=../proj \
>  --with-eppl--with-gdal=/usr/local/bin/gdal-config \
>  --with-php=/usr/ports/www/mod_php4/work/php-4.2.3
>
> (note: I modified the FreeBSD's mod_php4 port so that it is installed
> as CGI).
>
> After some trouble (the mapscript/php3/Makefile needed adjustments, as
> I found out from the mailing list archives) everything finally built
> fine. But when I try to load the module with dl(), I get this error:
>
> Warning: Unable to load dynamic library
> '/usr/local/lib/php/extensions/php_mapscript.so' -
> /usr/local/lib/php/extensions/php_mapscript.so: Undefined symbol
> "gdImageGif" in /home/sirvi/tartukaart/load_mapscript.pcgi on line 2
>
> It looks like PHP has trouble finding the gd library. From somewhere on
> the mapserver.umn.edu pages I read that this might mean that my PHP
> does not support dynamic modules, but this information was about PHP3
> and I cant find anything about enabling/disabling support for dynamic
> modules in PHP4 documentation.
>
> I even specifically rebuilt PHP with GD support (it wasn't used in the
> beginning), but this didn't change anything.
>
> PHP info at: http://www.tartu.ee/tartukaart/index.pcgi
> Error at: http://www.tartu.ee/tartukaart/load_mapscript.pcgi
>
> Help!
> --
> Toomas Aas | toomas.aas at raad.tartu.ee | http://www.raad.tartu.ee/~toomas/
> * Testicle -- n., a humorous question to an exam.
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
______________________________________
Vincent Schut (schut at sarvision.com)
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the MapServer-users mailing list