[mapserver-users] Mapserver 7.6.2

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Wed Jan 6 23:33:15 PST 2021


Good morning Stephane,

to me it seems to be an issue with the amazon boost packages. This is what I have installed:

# yum list installed SFCGAL CGAL geos* boost*
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
              : disabled-repos, subscription-manager
Installed Packages
CGAL.x86_64                          4.7-1.rhel7.1           @pgdg-common
SFCGAL.x86_64                        1.3.1-2.rhel7           @pgdg-common
boost-date-time.x86_64               1.53.0-28.el7           @rhel-7-server-rpms
boost-serialization.x86_64           1.53.0-28.el7           @rhel-7-server-rpms
boost-system.x86_64                  1.53.0-28.el7           @rhel-7-server-rpms
boost-thread.x86_64                  1.53.0-28.el7           @rhel-7-server-rpms
geos39.x86_64                        3.9.0-1.rhel7           @pgdg-common
geos39-devel.x86_64                  3.9.0-1.rhel7           @pgdg-common

you might try to install the boost packages from CentOS over those from Amazon and cross fingers it causes no conflicts.
I think it's worth a try.

Regards, Andreas

-----Ursprüngliche Nachricht-----
Von: Stephane Poissant <spoissantca at gmail.com> 
Gesendet: Donnerstag, 7. Januar 2021 00:13
An: mapServer-users <mapserver-users at lists.osgeo.org>
Cc: Jeff McKenna <jmckenna at gatewaygeomatics.com>; Eichner, Andreas - SID <Andreas.Eichner at sid.sachsen.de>
Betreff: Re: Mapserver 7.6.2

Hi Andreas,

Big thanks for your suggestion.
I am just trying to build mapserver… Nothing else!

...But I can’t make it happen!

No matter what I try, I end up with the same error pushing me in the same loop over and over again… (rebuilding from scratch all components > which fails anyway)
I followed your recipe and it did produce the same error as I have from beginning. I have this SFCGAL error complaining about boost.
Then if I compile boost, I need to compile CGAL and SFCGAL, etc… Then I end up with a similar error from SFCGAL but one line error instead of three (if I recall).

Difference: My linux is Amazon Linux 2 which is ‘like’ a CentOS 7.

I installed all the packages successfully, used make 3.19, etc.  (as you suggested),
If you have other ideas, please let me know. I need to get this going by the end of this week (if possible).

PS: All my errors so far are related to SFCGAL / Boost.
Cmake works fine. It fails when I do ‘make’.

Could you tell me which boost version / packages you have installed?

Once again, thank you very much. Well appreciated.
SP


[root at mapserver-0290 build]# yum list SFCGAL CGAL geos39-de* boost*
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
270 packages excluded due to repository priority protections
Installed Packages
CGAL.x86_64                                            4.7-1.rhel7.1                               @pgdg-common
SFCGAL.x86_64                                          1.3.1-2.rhel7                               @pgdg-common
boost.x86_64                                           1.53.0-27.amzn2.0.3                         @amzn2-core
boost-atomic.x86_64                                    1.53.0-27.amzn2.0.3                         @amzn2-core
boost-chrono.x86_64                                    1.53.0-27.amzn2.0.3                         @amzn2-core
boost-context.x86_64                                   1.53.0-27.amzn2.0.3                         @amzn2-core
boost-date-time.x86_64                                 1.53.0-27.amzn2.0.3                         installed
boost-filesystem.x86_64                                1.53.0-27.amzn2.0.3                         @amzn2-core
boost-graph.x86_64                                     1.53.0-27.amzn2.0.3                         @amzn2-core
boost-iostreams.x86_64                                 1.53.0-27.amzn2.0.3                         @amzn2-core
boost-locale.x86_64                                    1.53.0-27.amzn2.0.3                         @amzn2-core
boost-math.x86_64                                      1.53.0-27.amzn2.0.3                         @amzn2-core
boost-program-options.x86_64                           1.53.0-27.amzn2.0.3                         @amzn2-core
boost-python.x86_64                                    1.53.0-27.amzn2.0.3                         @amzn2-core
boost-random.x86_64                                    1.53.0-27.amzn2.0.3                         @amzn2-core
boost-regex.x86_64                                     1.53.0-27.amzn2.0.3                         @amzn2-core
boost-serialization.x86_64                             1.53.0-27.amzn2.0.3                         @amzn2-core
boost-signals.x86_64                                   1.53.0-27.amzn2.0.3                         @amzn2-core
boost-system.x86_64                                    1.53.0-27.amzn2.0.3                         installed
boost-test.x86_64                                      1.53.0-27.amzn2.0.3                         @amzn2-core
boost-thread.x86_64                                    1.53.0-27.amzn2.0.3                         installed
boost-timer.x86_64                                     1.53.0-27.amzn2.0.3                         @amzn2-core
boost-wave.x86_64                                      1.53.0-27.amzn2.0.3                         @amzn2-core
geos39-devel.x86_64                                    3.9.0-1.rhel7                               @pgdg-common

//snip//

[ 83%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/point.cpp.o
[ 84%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/line.cpp.o
[ 84%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o
[ 85%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
[ 86%] Linking CXX shared library libmapserver.so
[ 86%] Built target mapserver
Scanning dependencies of target shptreetst
[ 86%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 87%] 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[2]: *** [shptreetst] Error 1
make[1]: *** [CMakeFiles/shptreetst.dir/all] Error 2
make: *** [all] Error 2
[root at mapserver-0290 build]# ldd /usr/lib64/libSFCGAL.so.1
linux-vdso.so.1 (0x00007ffcc8d82000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007fee26999000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007fee26760000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fee26502000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fee2628a000)
libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007fee26079000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007fee25e57000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007fee25c53000)
libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007fee259e5000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fee25663000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007fee25323000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fee2510d000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fee24d62000)
/lib64/ld-linux-x86-64.so.2 (0x00007fee27684000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007fee24b5a000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fee2493c000)
[root at mapserver-0290 build]#


More information about the mapserver-users mailing list