Skip to content

Build fails on PG11 #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dkull opened this issue Jan 4, 2019 · 3 comments
Closed

Build fails on PG11 #41

dkull opened this issue Jan 4, 2019 · 3 comments

Comments

@dkull
Copy link

dkull commented Jan 4, 2019

Build succeeds against PG10.6 sources, but fails against 11.0 and 11.1
Trying to do this in Docker postgresql:X-alpine images

make USE_PGXS=1 PG_CONFIG=/usr/local/bin/pg_config top_srcdir=/tmp/postgresql-$PG_VER                                                                                                                                          
rm -f src/datapagemap.h && ln -s /tmp/postgresql-11.0/src/bin/pg_rewind/datapagemap.h src/datapagemap.h                                                                                                                                        rm -f src/logging.h && ln -s /tmp/postgresql-11.0/src/bin/pg_rewind/logging.h src/logging.h                                                                                                                                                    rm -f src/streamutil.h && ln -s /tmp/postgresql-11.0/src/bin/pg_basebackup/streamutil.h src/streamutil.h                                                                                                                                       rm -f src/receivelog.h && ln -s /tmp/postgresql-11.0/src/bin/pg_basebackup/receivelog.h src/receivelog.h
rm -f src/walmethods.h && ln -s /tmp/postgresql-11.0/src/bin/pg_basebackup/walmethods.h src/walmethods.h
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/utils/configuration.
o src/utils/configuration.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/utils/json.o src/uti
ls/json.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/utils/logger.o src/u
tils/logger.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/utils/parray.o src/u
tils/parray.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/utils/pgut.o src/uti
ls/pgut.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/utils/thread.o src/u
tils/thread.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/archive.o src/archiv
e.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/backup.o src/backup.
c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/catalog.o src/catalo
g.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/configure.o src/conf
igure.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/data.o src/data.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/delete.o src/delete.
c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/dir.o src/dir.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/fetch.o src/fetch.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/help.o src/help.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/init.o src/init.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/merge.o src/merge.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/parsexlog.o src/pars
exlog.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/pg_probackup.o src/p
g_probackup.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/restore.o src/restor
e.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/show.o src/show.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/util.o src/util.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/validate.o src/valid
ate.c
rm -f src/pg_crc.c && ln -s /tmp/postgresql-11.0/src/backend/utils/hash/pg_crc.c src/pg_crc.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/pg_crc.o src/pg_crc.
c
rm -f src/datapagemap.c && ln -s /tmp/postgresql-11.0/src/bin/pg_rewind/datapagemap.c src/datapagemap.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/datapagemap.o src/da
tapagemap.c
rm -f src/receivelog.c && ln -s /tmp/postgresql-11.0/src/bin/pg_basebackup/receivelog.c src/receivelog.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/receivelog.o src/rec
eivelog.c
rm -f src/streamutil.c && ln -s /tmp/postgresql-11.0/src/bin/pg_basebackup/streamutil.c src/streamutil.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/streamutil.o src/str
eamutil.c
rm -f src/xlogreader.c && ln -s /tmp/postgresql-11.0/src/backend/access/transam/xlogreader.c src/xlogreader.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/xlogreader.o src/xlo
greader.c
rm -f src/walmethods.c && ln -s /tmp/postgresql-11.0/src/bin/pg_basebackup/walmethods.c src/walmethods.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -DFRONTEND -I. -I./ -I/usr/local/include/
postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -Isrc -I/tmp/postgresql-11.0//src  -c -o src/walmethods.o src/wal
methods.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 src/utils/configuration.o src/utils/json.
o src/utils/logger.o src/utils/parray.o src/utils/pgut.o src/utils/thread.o src/archive.o src/backup.o src/catalog.o src/configure.o src/data.o src/delete.o src/dir.o src/fetch.o src/help.o src/init.o src/merge.o src/parsexlog.o src/pg_pro
backup.o src/restore.o src/show.o src/util.o src/validate.o src/pg_crc.o src/datapagemap.o src/receivelog.o src/streamutil.o src/xlogreader.o src/walmethods.o  -L/usr/local/lib  -L/lib  -L/usr/local/lib -Wl,--as-needed  -L/usr/local/lib -l
pgcommon -lpgport -L/usr/local/lib -lpq -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -lpgcommon -lpgport -lxslt -lxml2 -lssl -lcrypto -lz -ledit -lm  -o pg_probackup
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libssl.so.1.0.0, needed by /usr/local/lib/libpq.so, may conflict with libssl.so.45
//lib/libssl.so.1.0.0: warning: EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup
//lib/libssl.so.1.0.0: warning: EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/libcrypto.so: warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup
src/streamutil.o: In function `GetConnection':
streamutil.c:(.text+0x5e4): undefined reference to `SetDataDirectoryCreatePerm'
src/walmethods.o: In function `dir_open_for_write':
walmethods.c:(.text+0x468): undefined reference to `pg_file_create_mode'
src/walmethods.o: In function `tar_open_for_write':
walmethods.c:(.text+0xc65): undefined reference to `pg_file_create_mode'
collect2: error: ld returned 1 exit status
make: *** [/usr/local/lib/postgresql/pgxs/src/makefiles/pgxs.mk:423: pg_probackup] Error 1
The command '/bin/sh -c make USE_PGXS=1 PG_CONFIG=/usr/local/bin/pg_config top_srcdir=/tmp/postgresql-$PG_VER' returned a non-zero code: 2
@gsmolk
Copy link
Contributor

gsmolk commented Jan 7, 2019

Hello!
Can you provide the docker image name so we can check?

@dkull
Copy link
Author

dkull commented Jan 7, 2019

Hello,
Yes.

FROM postgres:11.0-alpine as builder
ENV PG_VER 11.0
ENV PROBACKUP_VER 2.0.25
[...]
RUN apk update && apk add vim wget gcc make libc-dev zlib-dev
[...]
WORKDIR /tmp
RUN wget "https://ftp.postgresql.org/pub/source/v$PG_VER/postgresql-$PG_VER.tar.bz2"
RUN tar xjvf postgresql-$PG_VER.tar.bz2
RUN wget "https://github.com/postgrespro/pg_probackup/archive/$PROBACKUP_VER.tar.gz"
RUN tar xzf $PROBACKUP_VER.tar.gz
WORKDIR pg_probackup-$PROBACKUP_VER
RUN apk add libxslt-dev libedit-dev libxml2-dev
RUN make USE_PGXS=1 PG_CONFIG=/usr/local/bin/pg_config top_srcdir=/tmp/postgresql-$PG_VER
RUN cp pg_probackup /
[...]

@dkull
Copy link
Author

dkull commented Jan 7, 2019

Aah, my bad. It seems the issue was with the fact that I had sources also installed from the alpine repo, which were for Postgres 10. Sorry for bothering with this :)

@dkull dkull closed this as completed Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants