Re: [mapserver-users] Mapserver 7.6.2

2021-01-06 Thread Eichner, Andreas - SID
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_641.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_643.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  
Gesendet: Donnerstag, 7. Januar 2021 00:13
An: mapServer-users 
Cc: Jeff McKenna ; Eichner, Andreas - SID 

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@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_644.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_641.53.0-27.amzn2.0.3  
   @amzn2-core
boost-chrono.x86_641.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_641.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_641.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_641.53.0-27.amzn2.0.3  
   @amzn2-core
boost-random.x86_641.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_641.53.0-27.amzn2.0.3  
   installed
boost-test.x86_64  1.53.0-27.amzn2.0.3  
   @amzn2-core
boost-thread.x86_641.53.0-27.amzn2.0.3  
   installed
boost-timer.x86_64

Re: [mapserver-users] Mapserver 7.6.2

2021-01-06 Thread Stephane Poissant
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@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_644.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_641.53.0-27.amzn2.0.3  
   @amzn2-core
boost-chrono.x86_641.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_641.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_641.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_641.53.0-27.amzn2.0.3  
   @amzn2-core
boost-random.x86_641.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_641.53.0-27.amzn2.0.3  
   installed
boost-test.x86_64  1.53.0-27.amzn2.0.3  
   @amzn2-core
boost-thread.x86_641.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_643.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::save(std::string
 const&)'
//usr/lib64/libSFCGAL.so.1: undefined reference to 
`boost::archive::basic_binary_oprimitive >::save(std::string const&)'
//usr/lib64/libSFCGAL.so.1: undefined reference to 
`boost::archive::text_iarchive_impl::load(std::string&)'
collect2: error: ld returned 1 exit status
make[2]: *** [shptreetst] Error 1
make[1]: *** 

Re: [mapserver-users] Mapserver 7.6.2

2021-01-06 Thread Eichner, Andreas - SID
Hallo,

I'm still not sure what you're trying to achieve. I took a freshly installed 
RHEL7 maschine and did a simple installation with basically all packages from 
the repos and MapServer compiles just fine. This is what I did:

* enable the SCL, EPEL and the repo from postgresql.org:
yum install -y 
https://ftp.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y 
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
cat < /etc/yum.repos.d/sclo-rh.repo
# this is quick'n'dirty to use CentOS-SCLo on RHEL
[sclo-rh]
name=SCLo RH
baseurl=http://mirror.centos.org/centos/7/sclo/x86_64/rh/
enabled=1
gpgcheck=0
EOF

* grab cmake and MapServer from the web and unpack
wget https://download.osgeo.org/mapserver/mapserver-7.6.2.tar.gz && tar xzf 
mapserver-7.6.2.tar.gz
wget 
https://github.com/Kitware/CMake/releases/download/v3.19.2/cmake-3.19.2-Linux-x86_64.tar.gz
 && tar xzf cmake-3.19.2-Linux-x86_64.tar.gz
export PATH=$(pwd)/cmake-3.19.2-Linux-x86_64/bin:$PATH

* install additional build dependencies:
yum install -y gcc-c++ proj72-devel gdal32-devel libxml2-devel libcurl-devel 
postgis31_12-devel geos39-devel cairo-devel harfbuzz-devel fribidi-devel 
libjpeg-turbo-devel postgresql12-devel

* create and got into the build directory
mkdir mapserver-7.6.2/build && cd mapserver-7.6.2/build

* configure with cmake
cmake -Wno-dev 
-DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" 
-DWITH_GIF=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_CLIENT_WMS=1 
-DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DCMAKE_BUILD_TYPE=Release ..

* and build
make

You might try to reprocude this and start from that.

HTH

-Ursprüngliche Nachricht-
Von: Stephane Poissant  
Gesendet: Mittwoch, 6. Januar 2021 14:41
An: Eichner, Andreas - SID 
Cc: mapServer-users ; Jeff McKenna 

Betreff: Re: Mapserver 7.6.2

I’ll give a try to 1.70 (compile)
The reason is that I cannot use 1.53 as it does not compile for the previously 
mentioned error with boost.
Even if I install (from repo) boost169) it installs almost everything but not 
de -devel has it breaks dependancies.
So using 1.75 was my first test. I am now trying 1.70. Fingers crossed it will 
work.

Would you have a specific version recommendation for the software stack?
(Without compilation)?

In any cases, I have to go with what I have in the repos available. 
I’ve been trying for quite sometime to find the right combination without 
success. Your input would be
Helpful to me.

Regards,
SP



Stéphane Poissant  
spoissan...@gmail.com  


On Jan 6, 2021, at 1:54 AM, Eichner, Andreas - SID 
mailto:andreas.eich...@sid.sachsen.de> > wrote:

Good morning,

//opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference 
to `std::uncaught_exceptions()@GLIBCXX_3.4.22'
collect2: error: ld returned 1 exit status

it seems that libboost_serialization is build against a different 
(newer) libstdc++  as is used during the MapServer build. 
I'd suggest to use the distribution provided boost libraries (v1.53) 
and the system's default compiler packages (wich includes libstdc++).

HTH



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver 7.6.2

2021-01-06 Thread Stephane Poissant
I’ll give a try to 1.70 (compile)
The reason is that I cannot use 1.53 as it does not compile for the previously 
mentioned error with boost.
Even if I install (from repo) boost169) it installs almost everything but not 
de -devel has it breaks dependancies.
So using 1.75 was my first test. I am now trying 1.70. Fingers crossed it will 
work.

Would you have a specific version recommendation for the software stack?
(Without compilation)?

In any cases, I have to go with what I have in the repos available. 
I’ve been trying for quite sometime to find the right combination without 
success. Your input would be
Helpful to me.

Regards,
SP


Stéphane Poissant  
spoissan...@gmail.com 

> On Jan 6, 2021, at 1:54 AM, Eichner, Andreas - SID 
>  wrote:
> 
> Good morning,
> 
> //opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to 
> `std::uncaught_exceptions()@GLIBCXX_3.4.22'
> collect2: error: ld returned 1 exit status
> 
> it seems that libboost_serialization is build against a different (newer) 
> libstdc++  as is used during the MapServer build. 
> I'd suggest to use the distribution provided boost libraries (v1.53) and the 
> system's default compiler packages (wich includes libstdc++).
> 
> HTH

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users