[mapserver-users] mapserver 7.6.2

Stephane Poissant spoissantca at gmail.com
Mon Jan 4 10:58:04 PST 2021


I have tried many things but cannot get to compile ma-server successfully.
I rely on repository yum packages for everything but for geos (which I build manually).


My Makefile (relevant part)
CMAKEFLAGS=   -DWITH_GEOS=1 \
			  -DCMAKE_SHARED_LINKER_FLAGS="-lgcov" -DWITH_CLIENT_WMS=1 \
			  -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DWITH_CSHARP=1 -DWITH_PHP=0 -DWITH_PERL=1 \
			  -DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 -DWITH_FCGI=0 -DWITH_EXEMPI=0 \
			  -DCMAKE_BUILD_TYPE=Release -DWITH_RSVG=0 -DWITH_CURL=1 -DWITH_HARFBUZZ=1 -DWITH_POINT_Z_M=1 -DWITH_MSSQL2008=OFF \
			  -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12;/usr/gdal32/;/usr/lib64/“


Packages installed from repo:

- name: install postgresql pieces
  yum: pkg={{item}} state=latest
  with_items:
    - postgresql12
    - postgresql12-devel
    - postgresql12-libs
    - proj72
    - proj72-devel
    - postgis30_12
    - postgis30_12-devel
    - mpfr
    - mpfr-devel
    - gmp
    - gmp-devel
    - gdal32
    - gdal32-devel
    - gdal32-libs


Whenever I launch the build process, I get a boost error:

[ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 82%] Linking C executable shptreetst
//usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_oarchive_impl<boost::archive::text_oarchive>::save(std::string const&)'
//usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits<char> >::save(std::string const&)'
//usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load(std::string&)'
collect2: error: ld returned 1 exit status
make[3]: *** [shptreetst] Error 1
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make[2]: *** [CMakeFiles/shptreetst.dir/all] Error 2
make[2]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make: *** [cmakebuild] Error 2



Any suggestions are welcomed!

SP

Stéphane Poissant  
Portable: 514-793-3506
spoissantca at gmail.com



> On Dec 31, 2020, at 10:40 AM, Steve Lime <sdlime at gmail.com> wrote:
> 
> The original error looks like it was related to this:
> 
>   https://stackoverflow.com/questions/39700537/undefined-reference-to-boost-serialization-functions <https://stackoverflow.com/questions/39700537/undefined-reference-to-boost-serialization-functions>
> 
> I think you do something like this (see https://stackoverflow.com/questions/25243336/specifying-libraries-for-cmake-to-link-to-from-command-line <https://stackoverflow.com/questions/25243336/specifying-libraries-for-cmake-to-link-to-from-command-line>):
> 
>   cmake ... CMAKE_C_STANDARD_LIRBARIES="-lboost_serialization"
> 
> The new error looks to be related to multiple versions of GDAL installed. If you search on "AH01215: GDAL: In GDALDestroy - unloading GDAL shared library" you'll see that error referenced in a couple of forums, including mapserver-users. Do you have both a package and source-built GDAL? You might be better off uninstalling the source-built stuff. 
> 
> --Steve
> 
> 
> On Wed, Dec 30, 2020 at 2:13 PM Jeff McKenna <jmckenna at gatewaygeomatics.com <mailto:jmckenna at gatewaygeomatics.com>> wrote:
> Hi Stephane,
> 
> I'm not sure about your last issue.  You could first execute 'sudo 
> ldconfig' so your last compiled libs are found, then try a shp2img 
> command with your mapfile.
> 
> I have seen cases where there are conflicting library versions used by 
> either the GDAL or MapServer dependencies: test this with a 'ldd <lib 
> name> command.
> 
> That's not a fun scenario, but, I've been there before ha.
> 
> Sorry maybe others have better advice for this.
> 
> -jeff
> 
> 
> 
> -- 
> Jeff McKenna
> GatewayGeo: MapServer Consulting and Training Services
> co-founder of FOSS4G
> http://gatewaygeo.com/ <http://gatewaygeo.com/>
> 
> 
> 
> On 2020-12-30 1:36 p.m., Stephane Poissant wrote:
> > HI Jeff,
> > 
> > That was a partial success! Thank you for you recommendation!
> > It compiled successfully by compiling gems and recompiling goal as you 
> > suggested.
> > 
> > I still have 1 issue.
> > 
> > While rendering stuff that use to work on previous version, it no longer 
> > works in this lates one.
> > I get AH01215 error in http.
> > 
> > AH01215: GDAL: In GDALDestroy - unloading GDAL shared library.: 
> > /var/www/html/map/mapserv.cgi, referer: http://utility.sk.com/ <http://utility.sk.com/> 
> > <http://utility.sk.com/ <http://utility.sk.com/>>
> > 
> > I am not a developper. It is hard for me to describe where this issue 
> > can possibly come from.
> > It does not render on screen the way it should be.
> > 
> > I will turn back on perl, have ruby, python and php in the makefile as 
> > it could be related….
> > 
> > Nevertheless, I would like to thank you for your very quick response and 
> > "right on" target answers!
> > 
> > SP
> > 
> > 
> > Stéphane Poissant
> > Portable: 514-793-3506
> > spoissantca at gmail.com <mailto:spoissantca at gmail.com> <mailto:spoissantca at gmail.com <mailto:spoissantca at gmail.com>>
> > 
> > 
> >> On Dec 30, 2020, at 10:14 AM, Jeff McKenna 
> >> <jmckenna at gatewaygeomatics.com <mailto:jmckenna at gatewaygeomatics.com> <mailto:jmckenna at gatewaygeomatics.com <mailto:jmckenna at gatewaygeomatics.com>>> 
> >> wrote:
> >>
> >> Also, after you compile GEOS be sure to recompile GDAL ('make clean' 
> >> first), then continue on to tackle your MapServer cmake command.
> >>
> >> Happy new year to all,
> >>
> >> -jeff
> >>
> >>
> >>
> >> -- 
> >> Jeff McKenna
> >> GatewayGeo: MapServer Consulting and Training Services
> >> co-founder of FOSS4G
> >> http://gatewaygeo.com/ <http://gatewaygeo.com/> <http://gatewaygeo.com/ <http://gatewaygeo.com/>>
> >>
> >>
> >>
> >> On 2020-12-30 9:56 a.m., Jeff McKenna wrote:
> >>> Hi Stephane,
> >>> Be sure to compile GEOS (3.9.0 is recommended from 
> >>> http://download.osgeo.org/geos/geos-3.9.0.tar.bz2 <http://download.osgeo.org/geos/geos-3.9.0.tar.bz2> ), and then add 
> >>> into your cmake command: -DWITH_GEOS=1
> >>> Wishing you a happy new year,
> >>> -jeff
> >>
> >> _______________________________________________
> >> mapserver-users mailing list
> >> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
> > 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/mapserver-users <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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210104/68fa39b5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 9954 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210104/68fa39b5/attachment-0001.png>


More information about the mapserver-users mailing list