From j.l.h.hartmann at gmail.com Tue Dec 1 05:56:44 2026 From: j.l.h.hartmann at gmail.com (Jan Hartmann) Date: Tue, 1 Dec 2026 14:56:44 +0100 Subject: [MapServer-users] Errors Building mapscript for mapserver-8.6.6 In-Reply-To: <1763859274.111521023.1796109488989.JavaMail.zimbra@shaw.ca> References: <1763859274.111521023.1796109488989.JavaMail.zimbra@shaw.ca> Message-ID: Hi Bob, this is the documentation for the new SWIG version of PHP MapScript: Migration Guide: https://mapserver.org/mapscript/php/migration_guide.html#migrating-to-7-4-s-new-swig-api-and-php-7 API-Guide: https://mapserver.org/mapscript/mapscript-api/index.html Examples: https://ms4w.com/trac/wiki/MigrationGuide5.x It took me some time to discover the config file, required since MapServer 8: https://mapserver.org/mapfile/config.html To migrate old scripts I use: and have to adapt some ->set functions, e.g. metadata Good luck, Jan On 01/12/2026 08:18, Bob Bruce via MapServer-users wrote: > Thanks Jeff and Richard for your help. > > Removing php 8.5 resolved my problem. I have successfully build > php_mapscriptng.so . > > Are there any up to date working examples of PHP mapscript working > with the SWIG bindings? I'm having trouble transitioning from old PHP > mapscript into this new system. > > thank you all for your help > > ? ? ? Bob Bruce > > ------------------------------------------------------------------------ > *From: *"Bob Bruce, (CON)" > *To: *"Richard Greenwood" , "Jeff > McKenna" > *Cc: *"MapServer Users List List" > *Sent: *Monday, November 30, 2026 5:05:36 PM > *Subject: *Re: [MapServer-users] Errors Building mapscript for > mapserver-8.6.6 > > Thanks Richard. I will certainly pursue that line as there was some > confusion when we installed PHP on the server. I was concerned about > that big vulnerability that hit the news about a month ago and > installed php 8.5 at first then reverted to the latest patched 8.4 > afterwards. > > Thanks again, > ? ? ? ? ? ? ? ? ? ? ? ? ? ?Bob Bruce > > > > > > -------- Original message -------- > From: Richard Greenwood > Date: 2026-11-30 4:47?p.m. (GMT-07:00) > To: Jeff McKenna > Cc: mapserver-users at lists.osgeo.org, bob.bruce at shaw.ca > Subject: Re: [MapServer-users] Errors Building mapscript for > mapserver-8.6.6 > > Bob, > > I know this isn't super helpful but I just built it on Debian 13 w/o > any error using your configuration (see below). I think Jeff's > comments are worth pursuing - make sure your php installation is > current and that you don't have any old versions installed. > cmake .. ? \ > ? -DCMAKE_INSTALL_PREFIX=/usr/local \ > ? -DWITH_PHPNG=ON \ > ? -DWITH_PROJ=ON ?\ > ? -DWITH_GEOS=ON ?\ > ? -DWITH_CLIENT_WMS=ON \ > ? -DWITH_CLIENT_WFS=ON \ > ? -DWITH_CURL=ON \ > ? -DWITH_CAIRO=ON ?\ > ? -DWITH_PROTOBUFC=OFF > > $ mapserv -v > MapServer version 8.6.6 PROJ version 9.9 GDAL version 3.13 OUTPUT=PNG > OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI > SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE INPUT=FLATGEOBUF > > On Mon, Nov 30, 2026 at 2:33?PM Jeff McKenna via MapServer-users > wrote: > > Hi Bob, > > I wonder if you have an older PHP installed on that machine, as > well as > PHP 8.4.28, and during compile it is finding the headers of that > older > PHP (I have run into that problem before too). > > I don't have Debian trixie locally to test, so my exact syntax (and > package names) might be wrong, but I might try something like: > > #install > sudo apt install php8.4-dev php8.4 php8.4-cli > > #verify that PHP 8.4 is found > php-config --version > which php-config > php -v > > #remove old PHP version > sudo a2dismod php5 > sudo apt-get purge php5* > > Maybe another Trixie guru has better commands than myself. > > -jeff > > > > > -- > Jeff McKenna > GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2026-11-30 4:39 p.m., Bob Bruce via MapServer-users wrote: > > Hi Richard, > >? ? ? ? ? ? ? ? ? ? ? thanks for getting back to me, here is what > I find > > when I query the debian version: > > > > PRETTY_NAME="Debian GNU/Linux 13 (trixie)" > > NAME="Debian GNU/Linux" > > VERSION_ID="13" > > VERSION="13 (trixie)" > > VERSION_CODENAME=trixie > > DEBIAN_VERSION_FULL=13.7 > > ID=debian > > > >? ? ? ?Bob Bruce > > > > > ------------------------------------------------------------------------ > > *From: *"Richard Greenwood" > > *To: *"Bob Bruce" > > *Cc: *"MapServer Users List List" > > *Sent: *Monday, November 30, 2026 1:09:35 PM > > *Subject: *Re: [MapServer-users] Errors Building mapscript for > > mapserver-8.6.6 > > > > Which version of?Debian? > > > > On Mon, Nov 30, 2026 at 1:06?PM Bob Bruce via MapServer-users > > > users at lists.osgeo.org>> wrote: > > > >? ? ?Hi Jeff - > > > >? ? ? ? ? ?thanks for getting back to me. I have checked and I'm > running > >? ? ?SWIG 4.3.0. Here are the messages that I got when I checked: > > > >? ? ?SWIG Version 4.3.0 > > > >? ? ?Compiled with g++ [x86_64-pc-linux-gnu] > > > >? ? ?Configured options: +pcre > > > >? ? ?do you have any other idea as to why the make is not working? > > > >? ? ?I am starting work to update themuralsofwinnipeg.com > > themuralsofwinnipeg.com > > mapping interface to modern standards. > > > >? ? ?Bob Bruce > >? ? ?_______________________________________________ > >? ? ?MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > Richard W. Greenwood > > > > > > _______________________________________________ > > MapServer-users mailing list > > MapServer-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Richard W. Greenwood > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.bruce at shaw.ca Wed Dec 2 02:01:16 2026 From: bob.bruce at shaw.ca (bob.bruce) Date: Wed, 02 Dec 2026 04:01:16 -0600 Subject: [MapServer-users] Errors Building mapscript for mapserver-8.6.6 In-Reply-To: Message-ID: Yh9SxGvc5pxvIYh9TxgGUX@shw-obgw-4001b.ext.cloudfilter.net Thanks Jan for this help, I really appreciate itI'll have to pause this work for a couple of days as I travel back to Winnipeg from Calgary and set up the murals server there. I'm looking forward to using this help once I get back to work on this.? ? ? Bob Bruce -------- Original message --------From: Jan Hartmann Date: 2026-12-01 7:56?a.m. (GMT-07:00) To: Bob Bruce , Richard Greenwood , Jeff McKenna , MapServer Users List List Subject: Re: [MapServer-users] Errors Building mapscript for mapserver-8.6.6 Hi Bob, this is the documentation for the new SWIG version of PHP MapScript: Migration Guide: https://mapserver.org/mapscript/php/migration_guide.html#migrating-to-7-4-s-new-swig-api-and-php-7 API-Guide: https://mapserver.org/mapscript/mapscript-api/index.html Examples: https://ms4w.com/trac/wiki/MigrationGuide5.x It took me some time to discover the config file, required since MapServer 8: https://mapserver.org/mapfile/config.html To migrate old scripts I use: and have to adapt some ->set functions, e.g. metadata Good luck, Jan On 01/12/2026 08:18, Bob Bruce via MapServer-users wrote: Thanks Jeff and Richard for your help. Removing php 8.5 resolved my problem. I have successfully build php_mapscriptng.so . Are there any up to date working examples of PHP mapscript working with the SWIG bindings? I'm having trouble transitioning from old PHP mapscript into this new system. thank you all for your help ? ? ? Bob Bruce From: "Bob Bruce, (CON)" To: "Richard Greenwood" , "Jeff McKenna" Cc: "MapServer Users List List" Sent: Monday, November 30, 2026 5:05:36 PM Subject: Re: [MapServer-users] Errors Building mapscript for mapserver-8.6.6 Thanks Richard. I will certainly pursue that line as there was some confusion when we installed PHP on the server. I was concerned about that big vulnerability that hit the news about a month ago and installed php 8.5 at first then reverted to the latest patched 8.4 afterwards. Thanks again, ? ? ? ? ? ? ? ? ? ? ? ? ? ?Bob Bruce? -------- Original message -------- From: Richard Greenwood Date: 2026-11-30 4:47?p.m. (GMT-07:00) To: Jeff McKenna Cc: mapserver-users at lists.osgeo.org, bob.bruce at shaw.ca Subject: Re: [MapServer-users] Errors Building mapscript for mapserver-8.6.6 Bob,? I know this isn't super helpful but I just built it on Debian 13 w/o any error using your configuration (see below). I think Jeff's comments are worth pursuing - make sure your php installation is current and that you don't have any old versions installed. cmake .. ? \ ? -DCMAKE_INSTALL_PREFIX=/usr/local \ ? -DWITH_PHPNG=ON \ ? -DWITH_PROJ=ON ?\ ? -DWITH_GEOS=ON ?\ ? -DWITH_CLIENT_WMS=ON \ ? -DWITH_CLIENT_WFS=ON \ ? -DWITH_CURL=ON \ ? -DWITH_CAIRO=ON ?\ ? -DWITH_PROTOBUFC=OFF $ mapserv -v MapServer version 8.6.6 PROJ version 9.9 GDAL version 3.13 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF On Mon, Nov 30, 2026 at 2:33?PM Jeff McKenna via MapServer-users wrote: Hi Bob, I wonder if you have an older PHP installed on that machine, as well as PHP 8.4.28, and during compile it is finding the headers of that older PHP (I have run into that problem before too). I don't have Debian trixie locally to test, so my exact syntax (and package names) might be wrong, but I might try something like: #install sudo apt install php8.4-dev php8.4 php8.4-cli #verify that PHP 8.4 is found php-config --version which php-config php -v #remove old PHP version sudo a2dismod php5 sudo apt-get purge php5* Maybe another Trixie guru has better commands than myself. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev co-founder of FOSS4G http://gatewaygeo.com/ On 2026-11-30 4:39 p.m., Bob Bruce via MapServer-users wrote: > Hi Richard, >? ? ? ? ? ? ? ? ? ? ? thanks for getting back to me, here is what I find > when I query the debian version: > > PRETTY_NAME="Debian GNU/Linux 13 (trixie)" > NAME="Debian GNU/Linux" > VERSION_ID="13" > VERSION="13 (trixie)" > VERSION_CODENAME=trixie > DEBIAN_VERSION_FULL=13.7 > ID=debian > >? ? ? ?Bob Bruce > > ------------------------------------------------------------------------ > *From: *"Richard Greenwood" > *To: *"Bob Bruce" > *Cc: *"MapServer Users List List" > *Sent: *Monday, November 30, 2026 1:09:35 PM > *Subject: *Re: [MapServer-users] Errors Building mapscript for > mapserver-8.6.6 > > Which version of?Debian? > > On Mon, Nov 30, 2026 at 1:06?PM Bob Bruce via MapServer-users > users at lists.osgeo.org>> wrote: > >? ? ?Hi Jeff - > >? ? ? ? ? ?thanks for getting back to me. I have checked and I'm running >? ? ?SWIG 4.3.0. Here are the messages that I got when I checked: > >? ? ?SWIG Version 4.3.0 > >? ? ?Compiled with g++ [x86_64-pc-linux-gnu] > >? ? ?Configured options: +pcre > >? ? ?do you have any other idea as to why the make is not working? > >? ? ?I am starting work to update themuralsofwinnipeg.com ? ? ?themuralsofwinnipeg.com> mapping interface to modern standards. > >? ? ?Bob Bruce >? ? ?_______________________________________________ >? ? ?MapServer-users mailing list >? ? ?MapServer-users at lists.osgeo.org >? ? ?https://lists.osgeo.org/mailman/listinfo/mapserver-users ? ? ?lists.osgeo.org/mailman/listinfo/mapserver-users> > > > > -- > Richard W. Greenwood > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: