[postgis-tickets] [PostGIS] #4319: PostGIS 2.5.1 regression test failure on CentOS 6

PostGIS trac at osgeo.org
Mon Feb 4 11:54:59 PST 2019


#4319: PostGIS 2.5.1 regression test failure on CentOS 6
-------------------------+---------------------------
 Reporter:  johnkharvey  |      Owner:  pramsey
     Type:  defect       |     Status:  new
 Priority:  medium       |  Milestone:  PostGIS 2.5.2
Component:  postgis      |    Version:  2.5.x
 Keywords:               |
-------------------------+---------------------------
 Hello,

 I'd like to report a regression test failure on PostGIS 2.5.1.  This
 occurs during "make installcheck".  For reference, I'm using PGDG's geos36
 and proj49 as dependencies.

 Below is my procedure to build/install/test:

 {{{
 # Install repos
 sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-
 latest-6.noarch.rpm
 sudo yum -y install
 https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-6-x86_64
 /pgdg-centos11-11-2.noarch.rpm

 # Clone postgis and check out 2.5.1
 mkdir -p /opt/git
 cd /opt/git
 git clone https://github.com/postgis/postgis/
 cd postgis
 git checkout 2.5.1

 # Remove the pragma lines that cause compile errors
 perl -p -i -e "s:^#pragma GCC diagnostic://#pragma GCC diagnostic:g"
 /opt/git/postgis/postgis/lwgeom_functions_basic.c
 perl -p -i -e "s:^#pragma GCC diagnostic://#pragma GCC diagnostic:g"
 /opt/git/postgis/postgis/lwgeom_geos.c

 # Install toolchain dependencies
 sudo yum -y install autoconf automake libtool
 sudo yum -y groupinstall "Development Tools"
 sudo yum -y install gtk+-devel gtk2-devel

 # Install postgis dependencies
 sudo yum -y install postgresql11 postgresql11-devel postgresql11-libs
 postgresql11-server
 sudo yum -y install geos36 geos36-devel
 sudo yum -y install proj49 proj49-devel
 sudo yum -y install libgeotiff libgeotiff-devel
 sudo yum -y install gdal gdal-libs gdal-devel gdal-java
 sudo yum -y install flex libxml2-devel
 sudo yum -y install json-c-devel
 sudo yum -y install ImageMagick
 sudo yum -y install docbook-style-xsl
 sudo yum -y install CUnit-devel
 sudo yum -y install pcre-devel
 sudo yum -y install libxslt-devel

 # Make / install postgis
 cd /opt/git/postgis
 ./autogen.sh
 ./configure --with-pgconfig=/usr/pgsql-11/bin/pg_config \
             --with-gui \
             --enable-rpath --libdir=/usr/pgsql-11/lib \
             --with-geosconfig=/usr/geos36/bin/geos-config \
             --with-projdir=/usr/proj49
 make
 sudo make install

 # Stop PG
 sudo su postgres -c "cd ~/ ; /usr/pgsql-11/bin/pg_ctl -w -D
 /var/lib/pgsql/11/data stop"
 # Clean data
 sudo rm -rf /var/lib/pgsql/11/data
 # Init PG
 sudo su postgres -c "cd ~/ ; /usr/pgsql-11/bin/initdb --data-checksums -D
 /var/lib/pgsql/11/data -E utf8 --locale=en_US.UTF-8"
 # Start PG
 sudo su postgres -c "cd ~/ ; /usr/pgsql-11/bin/pg_ctl -w -D
 /var/lib/pgsql/11/data -l /var/lib/pgsql/logfile start"

 # Create a role for our user - assumes you are "vagrant" user.  Sub with
 your username as needed.
 sudo su postgres -c "psql -c 'CREATE ROLE VAGRANT WITH LOGIN SUPERUSER;'"

 make installcheck
 }}}

 Here is the result:
 {{{
 quantize_coordinates .. failed (diff expected obtained:
 /tmp/pgis_reg/test_63_diff)
 }}}

 Diving in a little deeper:
 {{{
 --- quantize_coordinates_expected       2019-02-01 11:45:29.000000000
 -0500
 +++ /tmp/pgis_reg/test_63_out   2019-02-01 11:52:05.728870502 -0500
 @@ -2,5 +2,5 @@
  ERROR:  Must specify precision
  t3|t
  t4|t
 -t5|t
 +t5|f
  t6|t
 }}}

 This is the only test case that fails on EL-6 that I'm aware of.

 Note that I had to comment out the #pragmas in 2 files up above:
  * postgis/lwgeom_functions_basic.c
  * postgis/lwgeom_geos.c

 If I don't do that, I get a compiler errors like the following on EL-6
 only:
 {{{
 error: #pragma GCC diagnostic not allowed inside functions
 }}}

 I'm thinking these pragma lines aren't the root cause and would be safe to
 remove for the build, but if that assumption is wrong, please let me know.

 Hopefully this is helpful-- if you have any questions, please let me know.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4319>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list