<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hi,<br>
<br>
<p class="MsoNormal">I have a Problem compiling with Mapserver 8,
PHP 8 and Mapscript on Debian 11 Bullseye<br>
</p>
<p class="MsoNormal">I have downloaded Mapserver 8.0 beta and
configured it as follows:</p>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt">cmake<span style="mso-spacerun:yes"> </span>-DCMAKE_INSTALL_PREFIX=/opt \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DCMAKE_PREFIX_PATH=/usr/local:/opt \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_CLIENT_WFS=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_CLIENT_WMS=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_WCS=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_THREAD_SAFETY=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_PHP=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_KML=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_GEOS=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_GDAL=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_OGR=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_PROJ=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_CAIRO=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_POSTGIS=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_CURL=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_SOS=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_XMLMAPFILE=0 \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_FCGI=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_LIBXML2=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_GIF=ON \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_FRIBIDI=0 \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_HARFBUZZ=0 \</span></code></pre>
<pre><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span><span style="mso-tab-count:1"> </span><span style="mso-spacerun:yes"> </span>-DWITH_PROTOBUFC=0 \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>-DWITH_PYTHON=OFF \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span><span style="mso-spacerun:yes"> </span>-DWITH_SVGCAIRO=OFF \</span></code></pre>
<pre style="margin-left:36.0pt"><code><span style="font-size:9.0pt"><span style="mso-spacerun:yes"> </span>..</span></code></pre>
<p class="MsoNormal"> When I use Mapserver 7.6.4 in the same setup,
the following lines appear:</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt">--
/usr/include/php/20200930/main</p>
<p class="MsoNormal">-- Found PHP-Version 8.0.21 (using
/usr/bin/php-config)</p>
<p class="MsoNormal">In Mapserver 8 these are missing and
accordingly the output in mapscripts is:</p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
Mapscripts</p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
Python: disabled</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
PHPNG: disabled</p>
<p class="MsoNormal">That means PHP is not activated. In comparison
the output with Mapserver 7.6.4:</p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
Mapscripts</p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
Python: disabled</p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
PHP: ENABLED</p>
<p class="MsoNormal">--<span style="mso-spacerun:yes"> </span>*
PHPNG: disabled</p>
<p class="MsoNormal">It is the same server with the same
installation components. Accordingly, in a make and make under
Version 8 install PHP Mapscript is not installed.</p>
<p class="MsoNormal">php - v generates the following</p>
<p class="MsoNormal">Unable to load dynamic library
'php_mapscript.so' (tried: /usr/lib/php/20200930/php_mapscript.so
(/usr/lib/php/20200930/php_mapscript.so: cannot open shared object
file: No such file or directory),
/usr/lib/php/20200930/php_mapscript.so.so
(/usr/lib/php/20200930/php_mapscript.so.so: cannot open shared
object file: No such file or directory)) in Unknown on line 0</p>
<p class="MsoNormal">Note: PHP is installed with FPM module
(php8.0-fpm) and instead of mpm_prefork mpm_event is used.</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">Any idea?</p>
<p class="MsoNormal">Thanks Sven</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"><br>
</p>
</body>
</html>