Fwd: php3 mapscript module
mocha
mochaexpress at yahoo.com
Sat May 27 00:28:40 PDT 2000
>Date: Sat, 27 May 2000 01:16:29 -0500
>To: Daniel Morissette <danmo at videotron.ca>, mapserver-users at lists.gis.umn.edu
>From: mocha <mochaexpress at yahoo.com>
>Subject: php3 mapscript module
>
>i get these errors from trying the example pages:
>
>[Sat May 27 01:00:28 2000] [notice] child pid 13298 exit signal
>Segmentation fault (11)
>[Sat May 27 01:00:32 2000] [notice] child pid 13300 exit signal
>Segmentation fault (11)
>[Sat May 27 01:00:32 2000] [notice] child pid 13299 exit signal
>Segmentation fault (11)
>[Sat May 27 01:00:39 2000] [notice] child pid 13301 exit signal
>Segmentation fault (11)
>[Sat May 27 01:01:26 2000] [notice] child pid 13303 exit signal
>Segmentation fault (11)
>[Sat May 27 01:01:26 2000] [notice] child pid 13302 exit signal
>Segmentation fault (11)
>[Sat May 27 01:01:32 2000] [notice] child pid 13305 exit signal
>Segmentation fault (11)
>[Sat May 27 01:01:32 2000] [notice] child pid 13304 exit signal
>Segmentation fault (11)
>
>unfortunately there is no core so i can't gdb bt it.
i added extension=php_mapscript.so in php3.ini and restarted apache. now it
core dumps so i can gdb bt it. found out that it wasn't finding all of its
runtime libraries. so i added a few lines of those to the Makefile in
mapscript/php3.
i then 'make' again. ran ldd on the lib:
# ldd *so
php_mapscript.so:
-lc.12 => /usr/lib/libc.so.12
-lttf.3 => /usr/pkg/lib/libttf.so.3
-ljpeg.62 => /usr/pkg/lib/libjpeg.so.62
-ltiff.3 => /usr/pkg/lib/libtiff.so.3
-lgd.1 => /usr/pkg/lib/libgd.so.1
-lm.0 => /usr/lib/libm.so.0
looks like they are all there now. then i load up the page:
phpinfo_mapscript.php3
and got:
Warning: Invalid library (maybe not a PHP3 library) 'php_mapscript.so' in
(null) on line 21
...followed by phpinfo() stuff...
i left extension=php_mapscript.so in the php3.ini file and tried commenting
out line 21, but it doesn't show the module in phpinfo. when i do this,
there is no null error either.
More information about the MapServer-users
mailing list