Fail to build
benjamin-bergia opened this issue · 1 comments
benjamin-bergia commented
I want to give a try to prx, it seems very interesting. Unfortunately I run into the following error during the build:
[..]/deps/alcove/c_src/sys/clone.c:21:9: note: #pragma message: Support for namespaces using clone(2) enabled
#pragma message "Support for namespaces using clone(2) enabled"
^~~~~~~
[..]/deps/alcove/c_src/sys/setns.c:30:12: error: static declaration of ‘setns’ follows non-static declaration
static int setns(int fd, int nstype);
^~~~~
In file included from /usr/include/sched.h:43,
from [..]/deps/alcove/c_src/sys/setns.c:17:
/usr/include/bits/sched.h:94:12: note: previous declaration of ‘setns’ was here
extern int setns (int __fd, int __nstype) __THROW;
^~~~~
make[3]: *** [Makefile:59: [..]/deps/alcove/c_src/../priv/alcove] Error 1
make[3]: Leaving directory '[..]/deps/alcove/c_src'
make[2]: *** [Makefile:37: pre-app] Error 2
make[2]: Leaving directory '[..]/deps/alcove'
make[1]: *** [[..]/erlang.mk:4339: deps] Error 2
make[1]: Leaving directory '[..]/deps/prx'
make: *** [erlang.mk:4339: deps] Error 2
I am running Fedora 28 and OTP-21.0-rc1. I am using erlang.mk to manage my project.
Am i missing any dependency or anything?
msantos commented
Maybe this will work:
ERL_LIBS="" rebar3 do clean, compile
There's a bug in the rebar config of the alcove dependency. If a version of alcove is in the erl search path, rebar skips running some config checks.