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 error with Alpine 3.9 #371
Comments
It's not because of openssl, it's the fact that Alpine is using musl as its libc and it does some redefines in places where it shouldn't (in this case I don't have a good fix for this at the moment. |
Remove the nonstandard definition of free() that takes a const pointer, and fix the other APIs built on that. Overriding standard C library functions and having a nonstandard meaning of "const" is confusing. It also breaks the builds on some platforms. fixes pgbouncer/pgbouncer#371
These depend on libusual's redefinition of free(), which we should get rid of. see #371
Any chance you can bump the lib dependency?
|
This was done. |
@petere I'm not sure this solved the reported issue. With the latest tagged build (1.11.0) I still get:
For reproduction purpose, I used the following FROM alpine:3.10.2 AS builder
ARG build_tag=pgbouncer_1_11_0
RUN wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-linux.tar.gz
RUN tar xvzf pandoc-2.7.3-linux.tar.gz --strip-components 1 -C /usr/local
RUN apk --no-cache add make pkgconfig autoconf automake libtool py-docutils git gcc g++ libevent-dev openssl-dev c-ares-dev ca-certificates
RUN git clone --branch ${build_tag} --recurse-submodules -j8 https://github.com/pgbouncer/pgbouncer.git
WORKDIR pgbouncer
RUN ./autogen.sh
RUN ./configure --prefix=/pgbouncer --with-libevent=libevent-prefix
RUN make
RUN make install Note that we're using the latest version of Alpine Is there anything I might have missed? |
There is no release yet with the fix. I realize that this is kind of confusing, but that's how GitHub works. |
Yeah I see now, my bad. The issue is indeed fixed on the Thanks a lot :)! |
yes |
When building with the latest Alpine (3.9), which comes with OpenSSL
1.1.1a-r1
I get the following error:This error exists in the current master branch as well as the 1.9.0 tag.
The previously known working version for me was OpenSSL
1.0.2r-r0
The text was updated successfully, but these errors were encountered: