[mapserver-users] compilation problems --with-tiff: relocation error
Thomas Haechler
thaechl at geo.unizh.ch
Tue May 14 02:22:19 PDT 2002
Hi list,
I am setting up mapserver for my master thesis project (Solaris 2.7 /
Apache 1.3.24 / PHP 4.1.2 CGI / Mapserver 3.6dev from 30-4-2002). Since
I have no sysadmin privileges I had to install things in unconventional
places. I managed to build mapserv + php_mapscript which seems to run
without problems as long as I use the --without-tiff flag in the
configure step. If I don't exclude tiff support, I get the following
error message in the browser:
Warning: Unable to load dynamic library
'/data/projsnp/webgis/software/lib/php_mapscript.so' - ld.so.1: php:
fatal: relocation error: file
/data/projsnp/webgis/software/lib/php_mapscript.so: symbol _TIFFfree:
referenced symbol not found in
/data/projsnp/webgis/software/apache_1.3.24/htdocs/php_demo/example2.phtml
on line 3
Fatal error: Call to undefined function: ms_newmapobj() in
/data/projsnp/webgis/software/apache_1.3.24/htdocs/php_demo/example2.phtml
on line 12
***
Here's what I did:
./configure --prefix=/data/projsnp/webgis/software
--with-php=/data/gis/thaechl/software/php_4.1.2
--with-gd=/data/projsnp/webgis/software
--with-freetype=/data/projsnp/webgis/software/lib
--enable-runpath
The configure script says:
checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
using libtiff from system libs.
ldd php_mapscript.so gives:
libtiff.so => /usr/openwin/lib/libtiff.so
but I know that another version of libtiff.so exists in /usr/local/lib.
setenv LD_LIBRARY_PATH /usr/local/lib before configuring brings:
libtiff.so => /usr/local/lib/libtiff.so
but the above error message ist still the same, also if I add
passenv LD_LIBRARY_PATH /usr/local/lib to my httpd.conf and restart
apache.
What do I have to do to make mapserver run with TIFF support?
Thanks in advance for helping,
Thomy
--
THOMAS HAECHLER
thomas.haechler at geo.unizh.ch
More information about the MapServer-users
mailing list