-
Notifications
You must be signed in to change notification settings - Fork 162
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
Build fails in Alpine #187
Comments
Hi guys, is there anyone looking into this? Currently I can only sed this line to remove RTLD_DEEPBIND as a workaround... |
Also ran into this today. Had to add Here's my Dockerfile, adapted from agarciamontoro's above: # adapted from https://github.com/EnterpriseDB/mysql_fdw/issues/187
# start with official Postgres image
FROM postgres:11.6-alpine
# version of MySQL foreign data wrapper to use
ENV MYSQL_FDW_VERSION=REL-2_5_3
# add various dependencies for mysql_fdw build process
RUN apk add --no-cache make gcc libc-dev clang llvm9 mariadb-dev
# grab mysql_fdw source (see https://github.com/EnterpriseDB/mysql_fdw)
RUN wget -c https://github.com/EnterpriseDB/mysql_fdw/archive/${MYSQL_FDW_VERSION}.tar.gz -O - | tar -xz -C /usr/local/lib/
# fix an error in mysql_fdw.c
RUN sed -i 's/ | RTLD_DEEPBIND//' /usr/local/lib/mysql_fdw-${MYSQL_FDW_VERSION}/mysql_fdw.c
# build and install the extension
RUN cd /usr/local/lib/mysql_fdw-${MYSQL_FDW_VERSION} && make USE_PGXS=1 && make USE_PGXS=1 install |
francoisp
added a commit
to francoisp/mysql_fdw
that referenced
this issue
Sep 23, 2020
merge pr196 which fixes EnterpriseDB#187 and EnterpriseDB#174
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The build fails in Alpine Linux with the following error:
A minimal Dockerfile to reproduce the error:
The build succeeds when removing the
RTLD_DEEPBIND
flag.The text was updated successfully, but these errors were encountered: