[mapserver-users] unable to load php_mapscript.so
Pushkar Pradhan
pushkar at ERC.MsState.Edu
Mon Mar 25 11:47:56 PST 2002
Hi all,
I am again asking this question as I couldn't figure it out even after
responses from you.
I am working on sun solaris/sparc, I have
apache 1.3.22 (compiled as a DSO)
php 4.0.6 (" " " ")
mapserver 3.5
I place the php_mapscript.so in the lib folder of php (this is the
extension_dir)
The foll. is my LD_LIBRARY_PATH:
/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/gnu/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/local/netpbm/lib:/rstc/user1/erc/pushkar/gdal-1.1.5:/rstc/user1/erc/pushkar/php-4.0.6/lib:/rstc/user1/erc/pushkar/gdal-1.1.5
(i've included all that I could think of) and pass this to apache using
passenv LD_LIBRARY_PATH
I've enabled dl in my php.ini
I get the foll. error when I try to load php_maps.. in my php page:
Warning: Unable to load dynamic library
'/rstc/user1/erc/pushkar/php-4.0.6/lib/php_mapscript.so' - ld.so.1:
/rstc/user1/erc/pushkar/apache_1.3.22/bin/httpd: fatal: relocation error:
file /rstc/user1/erc/pushkar/php-4.0.6/lib/php_mapscript.so: symbol main:
referenced symbol not found in /rstc/user1/erc/pushkar/gis/hello.php on
line 6
the hello.php:
<HTML>
<BODY>
<?php
dl("php_mapscript.so");
phpinfo();
?>
</BODY>
</HTML>
Also I've dynamic support in php, since the php Makefile has the foll.
line:
PROGRAM_LDFLAGS = -export-dynamic
What could be wrong?
Also the docum. says:
Also make sure all directories in the path to the location of
php_mapscript.so are at least r-x for the HTTPd user (usually 'nobody'),
otherwise dl() may complain that it cannot find the file even if it's
there.
I assume this means the perms. for nobody means those for public
i.e. r-xr-xr-x
Thanks,
------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.
Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------
More information about the MapServer-users
mailing list