[mapserver-users] PHP/Mapscript on Solaris?

Daniel Morissette morissette at dmsolutions.ca
Tue Jun 5 14:21:12 PDT 2001


John,

You wrote that you installed both PHP3 and PHP4... which one are you
using to compile and use php_mapscript.so?

Seems to me like the error you got could be because your script is
trying to use a php_mapscript.so compiled for PHP4 from PHP3, or
vice-versa... you probably don't need PHP3 anyway if you have PHP4, so
the first thing to do might be to flush PHP3 completely, keep only a
clean PHP4 installation, and make sure your php_mapscript.so is compiled
for that version of PHP4.

About this being a Solaris8-specific problem, that's also a possibility
but I can't tell, for sure PHP/MapScript does work on Solaris 2.7.

Daniel


John Millard wrote:
> 
> Hi,
> 
> Has anyone gotten php/mapscript to work on Solaris 8 on UltraSparc?
> 
> I've been able to install the latest stable versions of Apache, PHP4,
> PHP3, and they seem to work ok. (I've used the LD_INCLUDE_PATH trick)
> 
> I can even get PHP mapscript to compile and install, but when I look at
> phpinfo_mapscript, I get the following error:
> 
> Fatal error: Unable to load dynamic library 'php_mapscript.so' -
> ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
> /usr/local/lib/php/extensions/php_mapscript.so: symbol
> _php3_hash_find: referenced symbol not found in
> /usr/local/apache/htdocs/phpinfo_mapscript.php3 on line 21
> 
> I've got PHP3 loaded as a DSO module in Apache and the .so is indeed
> where Apache says it isn't.
> 
> I've heard that Solaris is a problem.  Is it impossible or have I missed
> something obvious?
> 
> If needed, I can send the specific configure arguments I used when
> compiling.
> 
> Thanks in advance for any help.
> 
> -John
> 
>  _________________________________________________________
> 
>   John Millard
>   Information Services Librarian
>   Miami University, Oxford, OH 45056-1878
>   More Information: http://staff.lib.muohio.edu/~millarj/
>   gnupg public key: http://staff.lib.muohio.edu/~millarj/gpg/

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the MapServer-users mailing list