Re: Compiling proton-c for Linux Alpine

2017-11-23 Thread Alan Conway
On Thu, Nov 23, 2017 at 5:48 AM, Chris Richardson wrote: > [snip: discussion of issues building on Linux Alpine] > > Another alternative is that we make a more official version of the source > code hack I previously mentioned to make Proton compatible with the reduced > (I'm not judging) musl lib

Re: Compiling proton-c for Linux Alpine

2017-11-23 Thread Chris Richardson
On 21 November 2017 at 17:41, Alessio Gottardo wrote: > Thank you Chris, > > I've been reading about this new world (to me) of the reasons behind glibc > and ulibc. In some way there are similar issues in "toy languages / higher > level languages" like java or javascript (node.js) when shipping

Re: Compiling proton-c for Linux Alpine

2017-11-21 Thread Alessio Gottardo
Thank you Chris, I've been reading about this new world (to me) of the reasons behind glibc and ulibc. In some way there are similar issues in "toy languages / higher level languages" like java or javascript (node.js) when shipping the equivalent of executables with tons of dependencies (and t

Re: Compiling proton-c for Linux Alpine

2017-11-20 Thread Chris Richardson
Hi Alessio, The problem here appears to be that qpid-proton assumes glibc is installed on your system (it is on "most"(tm) linuces), but alpine doesn't appear to contain it, nor yet is it available in the default apk repositories. The pthread-stub package which provides /usr/include/pthread.h does

Compiling proton-c for Linux Alpine

2017-11-20 Thread Alessio Gottardo
Hi there, I am trying to compile Qpid Proton on Linux Alpine (within a docker image). I am getting this error: /go/src/qpid-proton/proton-c/src/proactor/epoll.c: In function 'pmutex_init':/go/src/qpid-proton/proton-c/src/proactor/epoll.c:104:36: error: 'PTHREAD_MUTEX_ADAPTIVE_NP' undeclared (firs