[mapserver-users] Is Mapserver known to play nice with Proj 6.3 ?

Herzmann, Daryl E [AGRON] akrherz at iastate.edu
Wed Feb 5 11:12:19 PST 2020


Greetings,

I'm attempting to use Mapserver with Proj 6.3 and am wondering if this combination is known to work?  I've been experiencing some issues.

1) For my deployment of FastCGI mapserver (master or 7.4.x build) and based on my monitoring, CPU usage is about double vs my previous setup of mapserver 7.3.x and Proj 5.2.0.  My comment here is lame I know as I have yet to produce a test case showing that actual difference.  All the other support libraries that went into the new build are updated too, so it is unfair to perhaps blame proj here :)  I had lots of previous fun[1] with a newer proj and postgis when an old sqlite3 library is at play, but I'm using the most recent version of that here.

[1] https://lists.osgeo.org/pipermail/postgis-users/2019-November/043727.html

2) I could not get master branch to build with proj 6.3, I get the error:

[  0%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o
In file included from /home/akrherz/projects/mapserver/mapproject.h:46,
                 from /home/akrherz/projects/mapserver/mapshape.h:35,
                 from /home/akrherz/projects/mapserver/mapserver.h:126,
                 from /home/akrherz/projects/mapserver/fontcache.c:30:
/opt/miniconda3/envs/prod/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
 #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'

Which is described in this closed issue: https://github.com/mapserver/mapserver/issues/5766

Strangely, this builds just fine on the branch-7-4 branch without any code workarounds.

3) I've been seeing lots of segfaulting and coredumps

Process 2803 (mapserv.fcgi) of user 48 dumped core.#012#012Stack trace of thread 2803:#012#0  0x00007f348d2a28df raise (libc.so.6)#012#1  0x00007f348d28ccf5 abort (libc.so.6)#012#2  0x00007f348d2e5c17 __libc_message (libc.so.6)#012#3  0x00007f348d2ec53c malloc_printerr (libc.so.6)#012#4  0x00007f348d2edf2c _int_free (libc.so.6)#012#5  0x00007f348f9ecdcb msGEOSCleanup (libmapserver.so.2)#012#6  0x00007f348fad2a66 msCleanup (libmapserver.so.2)#012#7  0x0000000000401213 msCleanupOnSignal (mapserv.fcgi)#012#8  0x00007f348d2a2960 __restore_rt (libc.so.6)#012#9  0x00007f348730c0c9 _gfortrani_free_format_hash_table (libgfortran.so.4)#012#10 0x00007f3487318d72 close_unit_1 (libgfortran.so.4)#012#11 0x00007f3487318e02 _gfortrani_close_units (libgfortran.so.4)#012#12 0x00007f348fee80e6 _dl_fini (ld-linux-x86-64.so.2)#012#13 0x00007f348d2a506c __run_exit_handlers (libc.so.6)#012#14 0x00007f348d2a51a0 exit (libc.so.6)#012#15 0x0000000000401782 main (mapserv.fcgi)#012#16 0x00007f348d28e873 __libc_start_main (libc.so.6)#012#17 0x000000000040111e _start (mapserv.fcgi)

4) It appears like Travis CI testing is all against proj 6.1.1, maybe I should revert to that? :)

thanks
daryl


--
/**
 * daryl herzmann
 * Systems Analyst III -- Iowa Environmental Mesonet
 * https://mesonet.agron.iastate.edu
 */


More information about the mapserver-users mailing list