<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>The CI setup for MapServer doesn't test Homebrew/Mac, so that could be one possible issue.<br></div><div><br></div><div>MapServer 8 and PHP 8 however is tested on Linux - see <a href="https://github.com/MapServer/MapServer/blob/main/.travis.yml">https://github.com/MapServer/MapServer/blob/main/.travis.yml</a> and the most recent log for PHP 8 - <a href="https://app.travis-ci.com/github/MapServer/MapServer/jobs/583600218">https://app.travis-ci.com/github/MapServer/MapServer/jobs/583600218</a><br></div><div>Lots of the install logic run on Travis is contained in <a href="https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh">https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh</a><br></div><div>Check for differences with your own logs to see what might be causing the errors.<br></div><div>Good luck!<br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Tue, Sep 27, 2022, at 5:39 PM, b g wrote:<br></div><blockquote type="cite" id="qt" style=""><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><span class="qt-x_elementToProof" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-color:rgb(255, 255, 255);"><span class="size" style="font-size:12pt;">Good morning,</span></span><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><div class="qt-x_elementToProof" style="font-size:12pt;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-color:rgb(255, 255, 255);"><br></div><div class="qt-x_elementToProof" style="font-size:12pt;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-color:rgb(255, 255, 255);">I have been trying to build the MapServer 8.0 release using PHP 8. I am a new user having only been working with MapServer for just a couple of months, please forgive me I don't ask questions in the appropriate way.<br></div><div class="qt-x_elementToProof" style="font-size:12pt;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-color:rgb(255, 255, 255);"><br></div><div class="qt-x_elementToProof" style="font-size:12pt;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;background-color:rgb(255, 255, 255);"><div>I have seen posts on the Github referring to the new release as supporting PHP 8 as mentioned here: <a href="https://github.com/MapServer/MapServer/pull/6430" target="_blank" rel="noopener noreferrer" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">https://github.com/MapServer/MapServer/pull/6430</a><b> </b>and
here: <a href="https://github.com/MapServer/MapServer/issues/6632" target="_blank" rel="noopener noreferrer" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">https://github.com/MapServer/MapServer/issues/6632</a>. However, I fail to see a post
mentioning the steps of what I need to change in the build process. My process is as follows: I install Homebrew and then install the dependencies -- httpd php@8.0 cmake pkg-config swig fcgi gd gdal geos giflib postgresql proj protobuf-c proj@7. After this
I clone MapServer from Github and checkout rel-8-0-0. Next, I run cmake with the following options: <br></div><div> <br></div><div> cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_FCGI=ON -DWITH_FRIBIDI=OFF -DWITH_GDAL=ON -DWITH_GEOS=ON -DWITH_HARFBUZZ=OFF -DWITH_KML=ON
-DWITH_OGR=ON -DWITH_POSTGIS=ON -DWITH_PROJ=ON -DWITH_PYTHON=OFF -DWITH_SOS=ON -DWITH_WFS=ON -WITH_CAIRO=ON -DCMAKE_SKIP_RPATH=ON -DWITH_PHPNG=ON -DCMAKE_INCLUDE_PATH="/usr/local/Cellar/postgresql"<br></div><div> <br></div><div> And then make. However, make fails with errors referring to bindings needing PHP 7. The error log is listed below:<br></div></div></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><a href="https://pastebin.com/99xWFcpE" id="qt-LPlnk524526">https://pastebin.com/99xWFcpE</a><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);" class="qt-elementToProof"><span style="background-color:rgb(255, 255, 255);display:inline !important;">Clearly, I must be missing something or doing something wrong during the build process since others have stated that version 8.0.0 works with PHP 8. Could anyone be so kind to point
out my error so that I could get this to work? Any help is much appreciated. Thank you so much.</span><br></div><div>_______________________________________________<br></div><div>MapServer-users mailing list<br></div><div><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div><div><br></div></blockquote><div><br></div></body></html>