[postgis-tickets] [PostGIS] #5264: make install error when compiling from source while processing 'topology' subdirectory for version > 3.1.7

PostGIS trac at osgeo.org
Fri Oct 28 07:38:50 PDT 2022


#5264: make install error when compiling from source while processing 'topology'
subdirectory for version > 3.1.7
-----------------------+-----------------------------------------
  Reporter:  louisd    |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.3.2
 Component:  topology  |    Version:  3.3.x
Resolution:            |   Keywords:  make install topology error
-----------------------+-----------------------------------------
Comment (by louisd):

 If you want to reproduce the problem, here is a Dockerfile that will do
 the trick, just build an image based on it and it will fail at the last
 RUN command (make install):


 {{{
 FROM alpine as build

 run mkdir /install
 workdir /install

 run apk add --no-cache wget git
 run wget
 https://ftp.postgresql.org/pub/source/v15.0/postgresql-15.0.tar.gz
 run wget https://download.osgeo.org/postgis/source/postgis-3.3.1.tar.gz

 env temp_deps="alpine-sdk cmake wget git"
 env musl_deps="gettext-dev libintl"
 env postgres_deps="linux-headers readline-dev zlib-dev openssl-dev python3
 python3-dev libxml2-dev lz4-dev zstd-dev"
 env mysqlfdw_deps="mysql-dev"
 env other_deps="openssl bash"

 run apk add --no-cache $temp_deps $musl_deps $postgres_deps $mysqlfdw_deps
 $other_deps

 run wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master
 /musl-locales-master.zip
 run unzip musl-locales-master.zip
 run cd musl-locales-master && cmake -DLOCALE_PROFILE=OFF -D
 CMAKE_INSTALL_PREFIX:PATH=/usr . && make -j$(nproc) && make install

 # POSTGRESQL

 run tar zxvf postgresql-*
 #run cd postgresql-* && ./configure --with-openssl --with-python --with-
 libxml --with-lz4 --with-zstd && \
 run cd postgresql-* && ./configure && make -j$(nproc) && make install

 env PATH="/usr/local/pgsql/bin:${PATH}"

 # POSTGIS

 env postgis_deps="geos-dev gdal-dev proj-dev json-c-dev protobuf-dev
 protobuf-c-dev protobuf-c-compiler perl pcre-dev"
 run apk add --no-cache $postgis_deps

 run tar zxvf postgis-*

 run cd postgis-* && ./configure
 run cd postgis-* && make -j$(nproc)

 # this is where it fails
 run cd postgis-* && make install


 }}}

 You can then enter the image and look around with

 docker run --rm -it (docker image sha256) bash

 All files are in /install

 Let me know if you want me to run further tests/check files.

 Thanks!
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5264#comment:6>
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