Hi,
I tried to build MonetDB from source on the Alpine Linux. But build process
was stopped with the following message:
merovingian.c: In function 'main':
merovingian.c:835:51: error: 'S_IRWXO' undeclared (first use in this function)
(e = openConnectionUNIX(&unsock, control_usock, S_IRWXO, _mero_ctlout)) ==
NO_ERR) {
^~~~~~~
merovingian.c:835:51: note: each undeclared identifier is reported only once
for each function it appears in
merovingian.c:862:9: error: 'S_IRWXG' undeclared (first use in this function)
umask(S_IRWXG | S_IRWXO);
^~~~~~~
Steps to reproduce (inside the alpine:latest docker container):
apk update
apk add musl-dev gcc bison make python libressl-dev libxml2-dev xz-dev bzip2-dev lz4-dev readline-dev snappy-dev curl-dev pcre-dev unixodbc-dev libatomic_ops-dev wget
wget https://www.monetdb.org/downloads/sources/Jul2017-SP1/MonetDB-11.27.5.tar.xz
tar xvf MonetDB-11.27.5.tar.xz
cd MonetDB-11.27.5/
./configure
make
I found that S_IRWXO and S_IRWXG macro defined in /usr/include/sys/stat.h:
egrep '(S_IRWXO|S_IRWXG)' /usr/include/sys/stat.h
#define S_IRWXG 0070
#define S_IRWXO 0007
I found also that sys/stat.h included in merovingian.c:
grep sys/stat.h /MonetDB-11.27.5/tools/merovingian/daemon/merovingian.c
#include