Re: [mapserver-users] Mapserver 7.6.2

2021-01-11 Thread Stephane Poissant
Forgot to mention that if I symlink the python folder, it works…

  - name: Remove site-packages folder
file:
  path: /usr/local/lib/python2.7/site-packages
  state: absent

  - name: Create a symbolic link to site-packages folder
file:
  src: /usr/lib/python2.7/site-packages
  dest: /usr/local/lib/python2.7/site-packages
  owner: root
  group: root
  state: link___
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-11 Thread Stephane Poissant
Good morning to you guys!

In an effort to complete this mapserver upgrade/install on Amazon Linux 2, I am 
still facing one thing
That you guys may help me with. When I do make install, the script complains 
about python oath but I can’t
Find exactly what it is looking for,. I did try a few unsuccessful thing yet.

Any suggestions?
The following link points to nowhere:   
https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations

I’ve got the following path that do exist:

/usr/lib/python2.7/site-packages
/usr/lib/python3.7/site-packages
/usr/lib64/python2.7/site-packages
/usr/local/lib/python2.7/site-packages (empty)

-- Installing: /usr/local/share/mapserver/cmake/mapserverTargets-release.cmake
running install
Checking .pth file support in /usr/local/lib/python2.7/site-packages/
/bin/python -E -c pass
TEST FAILED: /usr/local/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains:

':'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  
https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations


Please make the appropriate changes for your system and try again.
-- Installing: /usr/local/lib64/libjavamapscript.so
```
___
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-07 Thread Eichner, Andreas - SID
Hallo Stéphane,

glad to hear it works. The problem with this is how to keep those packags up to 
date. As long as this list is relatively static you might be able to use a 
script to synchronize them to a local directory, create the metadata and use 
this local repository with yum-priorities to favour those packages.
  The messages in to Apache httpd-log don't log like errors. AFAIK those a just 
normal message. CGI doesn't define a way to categorize messages so debug, info, 
err are all going the to same stderr channel. The CGI-Module simply logs 
everything as class "error". It should be possible to redirect those MapServer 
messages to a separate file using mapfile-directives (see 
https://mapserver.org/optimization/debugging.html)

Regards, Andreas

-Ursprüngliche Nachricht-
Von: Stephane Poissant  
Gesendet: Donnerstag, 7. Januar 2021 20:40
An: mapServer-users 
Cc: Jeff McKenna ; Eichner, Andreas - SID 

Betreff: Re: Mapserver 7.6.2

Good day Andreas,

Your suggestion about replacing boost packages from AWS with CentOS ones 
worked. 
Good catch. I was able to finally compile and install all my requirements. 
Thumbs up!
I had to download the whole list and install using rpm -ivh *.rpm.

One more thing. 
I am able to render many tiles (images) but I have trouble with some others. I 
double checked for librairies to avoid having duplicates or many versions...
But it does not seem to be the case.


I am getting a bunch of the following in my apache logs:
 (Some data was replaced with  on purpose for security reasons in the 
below log output) ###


[cgi:error] [pid 2512] [client 10.2.10.155:60456] AH01215: GDAL: 
GDALOpen(PG:host=.com   port= dbname=‘xx' 
user=‘x' password=XX schema='public' table=‘xx' 
mode='2', this=0x125df80) succeeds as PostGISRaster.: 
/var/www/html/map/mapserv.cgi, referer: http://x.com/
[cgi:error] [pid 2509] [client 10.2.10.155:60451] AH01215: GDAL: GDAL_CACHEMAX 
= 388 MB: /var/www/html/map/mapserv.cgi, referer: http://x.com/
…//snip//...
AH01215: GDAL: In GDALDestroy - unloading GDAL shared library.
...

What could cause that? Flags while doing cmake? (Python maybe)
(I am using the below one):
cmake -Wno-dev 
-DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" 
-DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 
-DWITH_FCGI=0 -DWITH_EXEMPI=0 -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 ..

— Stéphane
___
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-07 Thread Stephane Poissant
Good day Andreas,

Your suggestion about replacing boost packages from AWS with CentOS ones 
worked. 
Good catch. I was able to finally compile and install all my requirements. 
Thumbs up!
I had to download the whole list and install using rpm -ivh *.rpm.

One more thing. 
I am able to render many tiles (images) but I have trouble with some others. I 
double checked for librairies to avoid having duplicates or many versions...
But it does not seem to be the case.


I am getting a bunch of the following in my apache logs:
 (Some data was replaced with  on purpose for security reasons in the 
below log output) ###

[cgi:error] [pid 2512] [client 10.2.10.155:60456] AH01215: GDAL: 
GDALOpen(PG:host=.com port= dbname=‘xx' user=‘x' 
password=XX schema='public' table=‘xx' mode='2', 
this=0x125df80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, 
referer: http://x.com/
[cgi:error] [pid 2509] [client 10.2.10.155:60451] AH01215: GDAL: GDAL_CACHEMAX 
= 388 MB: /var/www/html/map/mapserv.cgi, referer: http://x.com/
…//snip//...
AH01215: GDAL: In GDALDestroy - unloading GDAL shared library.
...

What could cause that? Flags while doing cmake? (Python maybe)
(I am using the below one):
cmake -Wno-dev 
-DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" 
-DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 
-DWITH_FCGI=0 -DWITH_EXEMPI=0 -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 ..

— Stéphane___
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 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


Re: [mapserver-users] Mapserver 7.6.2

2021-01-05 Thread Eichner, Andreas - SID
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

-Ursprüngliche Nachricht-
Von: Stephane Poissant  
Gesendet: Dienstag, 5. Januar 2021 22:31
An: mapServer-users 
Cc: Jeff McKenna ; Eichner, Andreas - SID 

Betreff: Mapserver 7.6.2

Boost 1.75 (compiled) success
CGAL-4.14 (compiled) success
Gets-3.9.0 (compiled) success
SFCGAL-1.3.9 (compiled) success

From repo:
gdal32-devel.x86_643.2.0-3.rhel7@pgdg-common
postgis30_12-devel.x86_64  3.0.3-3.rhel7@pgdg12
postgresql12-devel.x86_64  12.5-1PGDG.rhel7 @pgdg12
proj72-devel.x86_647.2.0-3.rhel7@pgdg-common

[root@mapserver-0290 SFCGAL-v1.3.9]# ls -al /usr/lib64/libSFCGAL*
lrwxrwxrwx 1 root root   14 Jan  5 12:45 /usr/lib64/libSFCGAL.so -> 
libSFCGAL.so.1
lrwxrwxrwx 1 root root   18 Jan  5 19:55 /usr/lib64/libSFCGAL.so.1 -> 
libSFCGAL.so.1.3.9
-rwxr-xr-x 1 root root 13543200 Jan  5 19:55 /usr/lib64/libSFCGAL.so.1.3.9

Mapserver 7.6.2 (unable to fully compile)

//snip//

[ 79%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o
[ 80%] Building CXX object 
CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
[ 81%] Linking CXX shared library libmapserver.so
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
[ 81%] Built target mapserver
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
Scanning dependencies of target shptreetst
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
[ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 82%] Linking C executable shptreetst
//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
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

I am uncertain what could cause this issue.
Any suggestions?


Stéphane Poissant  

Portable: 514-793-3506
spoissan...@gmail.com  

 

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


[mapserver-users] Mapserver 7.6.2

2021-01-05 Thread Stephane Poissant
Boost 1.75 (compiled) success
CGAL-4.14 (compiled) success
Gets-3.9.0 (compiled) success
SFCGAL-1.3.9 (compiled) success

From repo:
gdal32-devel.x86_643.2.0-3.rhel7@pgdg-common
postgis30_12-devel.x86_64  3.0.3-3.rhel7@pgdg12
postgresql12-devel.x86_64  12.5-1PGDG.rhel7 @pgdg12
proj72-devel.x86_647.2.0-3.rhel7@pgdg-common

[root@mapserver-0290 SFCGAL-v1.3.9]# ls -al /usr/lib64/libSFCGAL*
lrwxrwxrwx 1 root root   14 Jan  5 12:45 /usr/lib64/libSFCGAL.so -> 
libSFCGAL.so.1
lrwxrwxrwx 1 root root   18 Jan  5 19:55 /usr/lib64/libSFCGAL.so.1 -> 
libSFCGAL.so.1.3.9
-rwxr-xr-x 1 root root 13543200 Jan  5 19:55 /usr/lib64/libSFCGAL.so.1.3.9

Mapserver 7.6.2 (unable to fully compile)

//snip//

[ 79%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o
[ 80%] Building CXX object 
CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
[ 81%] Linking CXX shared library libmapserver.so
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
[ 81%] Built target mapserver
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
Scanning dependencies of target shptreetst
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
[ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 82%] Linking C executable shptreetst
//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
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

I am uncertain what could cause this issue.
Any suggestions?


Stéphane Poissant  
Portable: 514-793-3506
spoissan...@gmail.com 


___
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-05 Thread Eichner, Andreas - SID
You're using CGAL 5.1.2 which might be unsuitable. The SFCGAL v1.3.8 looks an 
ancient version. So I'd suggest to either retry with an older CGAL v4.x or a 
newer SFCGAL. At least v1.3.9 contains a "Fix with CGAL 5.1". See 
https://gitlab.com/Oslandia/SFCGAL/-/releases/v1.3.9  

-Ursprüngliche Nachricht-
Von: Stephane Poissant  
Gesendet: Dienstag, 5. Januar 2021 10:53
An: MapServer-users 
Cc: Eichner, Andreas - SID 
Betreff: Re: [mapserver-users] mapserver 7.6.2

I tried compiling it separately but it ends up having issues as well:

[root@mapserver-0290 SFCGAL-v1.3.8]# cmake -DCMAKE_BUILD_TYPE=Release .
-- CGAL 5.1.2 found
...
-- Build files have been written to: /root/inst/SFCGAL-v1.3.8

___
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-05 Thread Stephane Poissant
Good day Andreas, 

Thank you for your suggestion.

Indeed, they are both installed. Both versions 1.53 & 1.75

SFCGAL is installed from yum repo with version 1.3.1.
Based on the log below, SFCGAL (from repo) is linked / compiled with the 
installed yum repository rpms boost version 1.53:

[root@mapserver-0290 mapserver-7.6.2]# ldd /usr/lib64/libSFCGAL.so.1
linux-vdso.so.1 (0x7ffd9958b000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x7f00d4b15000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x7f00d48dc000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x7f00d467e000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x7f00d4406000)
libboost_date_time-mt.so.1.53.0 => 
/usr/lib64/libboost_date_time-mt.so.1.53.0 (0x7f00d41f5000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 
(0x7f00d3fd3000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 
(0x7f00d3dcf000)
libboost_serialization-mt.so.1.53.0 => 
/usr/lib64/libboost_serialization-mt.so.1.53.0 (0x7f00d3b61000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x7f00d37df000)
libm.so.6 => /usr/lib64/libm.so.6 (0x7f00d349f000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x7f00d3289000)
libc.so.6 => /usr/lib64/libc.so.6 (0x7f00d2ede000)
/lib64/ld-linux-x86-64.so.2 (0x7f00d580)
librt.so.1 => /usr/lib64/librt.so.1 (0x7f00d2cd6000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x7f00d2ab8000)
 
I tried compiling it separately but it ends up having issues as well:

SFCGAL compilation…

Make (stops at 26%...)

///snip///

[ 26%] Building CXX object 
src/CMakeFiles/SFCGAL.dir/algorithm/Intersection3D.cpp.o
In file included from 
/usr/local/include/CGAL/Polygon_mesh_processing/self_intersections.h:45:0,
 from 
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:55,
 from 
/root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:24:
/opt/boost/include/boost/function_output_iterator.hpp:14:72: note: #pragma 
message: This header is deprecated. Use 
 instead.
 BOOST_HEADER_DEPRECATED("")
^
In file included from 
/root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:24:0:
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:
 In member function ‘bool CGAL::Intersection_of_Polyhedra_3::Map_edge_facet_bbox_intersection_extract_coplanar_filter_self_intersections::self_intersections_found()’:
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1063:19:
 error: ‘Intersect_facets’ is not a member of ‘CGAL::internal’
 internal::Intersect_facets’ token
PolyhedronPointPMap>
   ^
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1068:70:
 error: ‘intersect_facets’ was not declared in this scope
 CGAL::box_self_intersection_d(box_ptr.begin(), 
box_ptr.end(),intersect_facets,cutoff);
  
^~~~
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1068:70:
 note: suggested alternative: ‘Project_facet’
 CGAL::box_self_intersection_d(box_ptr.begin(), 
box_ptr.end(),intersect_facets,cutoff);
  
^~~~
  
Project_facet
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1071:41:
 error: ‘Throw_at_output_exception’ in ‘struct CGAL::internal::Throw_at_output’ 
does not name a type
   catch( internal::Throw_at_output::Throw_at_output_exception& )
 ^
In file included from 
/root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:25:0:
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3_refinement_visitor.h:
 At global scope:
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3_refinement_visitor.h:340:79:
 warning: ‘No_intersection_tag’ is deprecated [-Wdeprecated-declarations]
   typedef 
CGAL::Constrained_Delaunay_triangulation_2
 CDT;  //DO WE NEED DELAUNAY
   
^~~
In file included from 
/usr/local/include/CGAL/Constrained_Delaunay_triangulation_2.h:20:0,
 from 
/root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3_refinement_visitor.h:31,
 from 
/root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:25:
/usr/local/include/CGAL/Constrained_triangulation_2.h:48:24: note: declared here
 

Re: [mapserver-users] mapserver 7.6.2

2021-01-04 Thread Eichner, Andreas - SID
Hi Stephane,

are you sure you installed boost-devel _and_ boost-serialization packages? 
While the first one gives "Headers and shared object symbolic links for the 
Boost C++ libraries." the second one contains "Run-Time support for 
serialization for persistence and marshaling." and contains the required 
libboost_serialization.so The -devel-package installed many boost components as 
dependencies but not all.

HTH, Andreas

-Ursprüngliche Nachricht-
Von: mapserver-users  Im Auftrag von 
Stephane Poissant
Gesendet: Montag, 4. Januar 2021 19:58
An: MapServer-users 
Betreff: Re: [mapserver-users] mapserver 7.6.2

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::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[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
spoissan...@gmail.com <mailto:spoissan...@gmail.com> 





On Dec 31, 2020, at 10:40 AM, Steve Lime mailto:sdl...@gmail.com> > wrote:

The original error looks like it was related to this:

  
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):

  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 
mailto:jmcke...@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  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/



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

Re: [mapserver-users] mapserver 7.6.2

2021-01-04 Thread Stephane Poissant
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::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[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
spoissan...@gmail.com



> On Dec 31, 2020, at 10:40 AM, Steve Lime  wrote:
> 
> The original error looks like it was related to this:
> 
>   
> 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
>  
> ):
> 
>   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  > 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  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/ 
> 
> 
> 
> 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/ 
> >  
> > >
> > 
> > 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
> 

Re: [mapserver-users] mapserver 7.6.2

2020-12-31 Thread Stephane Poissant
Compiling gets from source did it perfectly.
For the GDAL suggestion, it could certainly be my issue.
Unfortunately for me, I flushed the the server to redo it properly with all 
conditions and I faced partial
Error I had prior to running it (similar to Yesterday but only about boost)

Compiling mapserver...

//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&)'

Therefore I am recompiling boost 1.75 from source to see if it fixes it.
Once I get that pout of the way, I will certainly take a look at your 
suggestion. 
It could seriously be my problem.



Stéphane Poissant  
Portable: 514-793-3506
spoissan...@gmail.com 


> On Dec 31, 2020, at 10:40 AM, Steve Lime  wrote:
> 
> The original error looks like it was related to this:
> 
>   
> 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
>  
> ):
> 
>   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  > 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  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/ 
> 
> 
> 
> 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/ 
> >  
> > >
> > 
> > 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
> > spoissan...@gmail.com  
> > >
> > 
> > 
> >> On Dec 30, 2020, at 10:14 AM, Jeff McKenna 
> >> mailto:jmcke...@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/   >> >
> >>
> >>
> >>
> >> 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 
> >>>  ), and then add 
> >>> into your cmake command: -DWITH_GEOS=1
> >>> Wishing you a happy new year,
> >>> -jeff
> >>
> >> 

Re: [mapserver-users] mapserver 7.6.2

2020-12-31 Thread Steve Lime
The original error looks like it was related to this:


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
):

  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 
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  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/
>
>
>
> 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/
> > 
> >
> > 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
> > spoissan...@gmail.com 
> >
> >
> >> On Dec 30, 2020, at 10:14 AM, Jeff McKenna
> >> mailto:jmcke...@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/ 
> >>
> >>
> >>
> >> 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 ), and then add
> >>> into your cmake command: -DWITH_GEOS=1
> >>> Wishing you a happy new year,
> >>> -jeff
> >>
> >> ___
> >> mapserver-users mailing list
> >> mapserver-users@lists.osgeo.org
> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver 7.6.2

2020-12-30 Thread Jeff McKenna

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 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/



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/ 



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
spoissan...@gmail.com 


On Dec 30, 2020, at 10:14 AM, Jeff McKenna 
mailto:jmcke...@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/ 



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 ), and then add 
into your cmake command: -DWITH_GEOS=1

Wishing you a happy new year,
-jeff


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




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


Re: [mapserver-users] mapserver 7.6.2

2020-12-30 Thread Stephane Poissant
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/ 


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
spoissan...@gmail.com 


> On Dec 30, 2020, at 10:14 AM, Jeff McKenna  
> 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/
> 
> 
> 
> 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 ), and then add into your 
>> cmake command: -DWITH_GEOS=1
>> Wishing you a happy new year,
>> -jeff
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

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


Re: [mapserver-users] mapserver 7.6.2

2020-12-30 Thread Stephane Poissant
Good morning Jeff,

I’ll certainly give it a shot!
I’ll keep you informed.

Thanks for the suggestions.


Stéphane Poissant  
Portable: 514-793-3506
spoissan...@gmail.com 


> On Dec 30, 2020, at 10:14 AM, Jeff McKenna  
> 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/
> 
> 
> 
> 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 ), and then add into your 
>> cmake command: -DWITH_GEOS=1
>> Wishing you a happy new year,
>> -jeff
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

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


Re: [mapserver-users] mapserver 7.6.2

2020-12-30 Thread Jeff McKenna
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/



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 ), and then add into 
your cmake command: -DWITH_GEOS=1


Wishing you a happy new year,

-jeff





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


Re: [mapserver-users] mapserver 7.6.2

2020-12-30 Thread Jeff McKenna

Hi Stephane,

Be sure to compile GEOS (3.9.0 is recommended from 
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



--
Jeff McKenna
GatewayGeo: MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/



On 2020-12-30 9:48 a.m., Stephane Poissant wrote:

Good morning gentlemen and Merry Xmas to everyone!

I need some help with compiling mapserver.
I have been hammering this for a while without a perfect success yet!
When proceeding with make, it should complete the process.
There are no errors at beginning of compilation. Only a few warnings as 
I am compiling from cmake3 (mandatory)


Here are the environment details:

 From yum (important ones but not limited to…):
- System is running on Amazon Linux 2 (CentOS 7) virtual server
- centos-sclo-rh repo activated
- Proj72 w/devel
- gdal32 w/devel
- postgis31_12 w/devel
- postgis31_12 w/devel contrib libs server
- SFCGAL (1.3.1.2) w/devel
- gmp w/devel
- mpfr w/devel
- boost (1.53) w/devel

 From pip (important ones but not limited to…):
- Cmake3
- boost


My Makefile flags:
CMAKEFLAGS=-DCMAKE_C_FLAGS="" -DCMAKE_CXX_FLAGS="" \
  -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=0 \
  -DWITH_PYTHON=0 -DWITH_JAVA=0 -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 \

  -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12;/usr/gdal32;/usr/local/lib64/“




[ 83%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o
[ 83%] Building CXX object 
CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o

[ 84%] Linking CXX shared library libmapserver.so
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
[ 84%] Built target mapserver
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
Scanning dependencies of target shptreetst
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
[ 85%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 85%] 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_oprimitivestd::char_traits >::save(std::string const&)'

/usr/gdal32/lib/libgdal.so: undefined reference to `GEOSMakeValid_r'
//usr/lib64/libSFCGAL.so.1: undefined reference to 
`boost::archive::text_iarchive_impl::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


[root@mapserver-0291 mapserver-7.6.2]# ls -al /usr/lib64/libSF*
lrwxrwxrwx 1 root root      14 Dec 29 21:38 /usr/lib64/libSFCGAL.so -> 
libSFCGAL.so.1
lrwxrwxrwx 1 root root      18 Dec 29 21:38 /usr/lib64/libSFCGAL.so.1 -> 
libSFCGAL.so.1.3.1

-rwxr-xr-x 1 root root 9193952 Sep 30  2019 /usr/lib64/libSFCGAL.so.1.3.1

Any suggestions would be welcomed as I am running out of ideas.

Cheers!


Stéphane Poissant
Portable: 514-793-3506
spoissan...@gmail.com 



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



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


[mapserver-users] mapserver 7.6.2

2020-12-30 Thread Stephane Poissant
Good morning gentlemen and Merry Xmas to everyone!

I need some help with compiling mapserver.
I have been hammering this for a while without a perfect success yet!
When proceeding with make, it should complete the process.
There are no errors at beginning of compilation. Only a few warnings as I am 
compiling from cmake3 (mandatory)

Here are the environment details:

From yum (important ones but not limited to…):
- System is running on Amazon Linux 2 (CentOS 7) virtual server
- centos-sclo-rh repo activated
- Proj72 w/devel
- gdal32 w/devel
- postgis31_12 w/devel
- postgis31_12 w/devel contrib libs server
- SFCGAL (1.3.1.2) w/devel 
- gmp w/devel
- mpfr w/devel
- boost (1.53) w/devel

From pip (important ones but not limited to…):
- Cmake3
- boost


My Makefile flags:
CMAKEFLAGS=-DCMAKE_C_FLAGS="" -DCMAKE_CXX_FLAGS="" \
  -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=0 \
  -DWITH_PYTHON=0 -DWITH_JAVA=0 -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 \
  
-DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12;/usr/gdal32;/usr/local/lib64/“




[ 83%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o
[ 83%] Building CXX object 
CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
[ 84%] Linking CXX shared library libmapserver.so
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
[ 84%] Built target mapserver
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
Scanning dependencies of target shptreetst
make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
[ 85%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 85%] 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/gdal32/lib/libgdal.so: undefined reference to `GEOSMakeValid_r'
//usr/lib64/libSFCGAL.so.1: undefined reference to 
`boost::archive::text_iarchive_impl::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


[root@mapserver-0291 mapserver-7.6.2]# ls -al /usr/lib64/libSF*
lrwxrwxrwx 1 root root  14 Dec 29 21:38 /usr/lib64/libSFCGAL.so -> 
libSFCGAL.so.1
lrwxrwxrwx 1 root root  18 Dec 29 21:38 /usr/lib64/libSFCGAL.so.1 -> 
libSFCGAL.so.1.3.1
-rwxr-xr-x 1 root root 9193952 Sep 30  2019 /usr/lib64/libSFCGAL.so.1.3.1

Any suggestions would be welcomed as I am running out of ideas.

Cheers!


Stéphane Poissant  
Portable: 514-793-3506
spoissan...@gmail.com 


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