ocserv installation on debian (arm)
Mauro Gaspari
ilvipero at dazuzu.com
Thu Apr 30 01:41:29 PDT 2015
Hello
I recently found this project, and it looks very interesting. I have
been trying to install versions 0.10.2, 0.10.3, and 0.10.4 on a few
machines (and virtual machines) based on debian, ubuntu, and openSUSE.
So far, I had no issues on x86 or x86_64, but I was not able to
complete the "make" process on arm architecture (debian).
I have a couple of testing boards, banana pi bpi-r1 with bananian
installed (debian 7 arm).
1. First issue was with debian wheezy dependencies. wheezy backports
repository (deb http://http.debian.net/debian wheezy-backports main)
includes the needed package "libgnutls28-dev" for the x86 and x86_64
architectures, but not for armhf yet.
Since I am on testing phase, I quickly resolved changing my repos from
wheezy to testing. I am pretty sure this will be solved in the future,
just wanted to report that, hopefully it helps someone.
2. once all dependencies were installed, I tried to install ocserv by
running ./configure --prefix=/usr --sysconfdir=/etc && make && make
install
this works perfectly on x86 and x86_64, but fails on arm. I have all
required packages per README file. Since the output is very long, I
will only paste a few lines here.
Any help will be greatly appreciated.I am available to help for
further testing, troubleshooting. If needed I can connect one spare
device to a public IP and provide remote access for as long as it
takes.
Best Regards
Mauro
Begin Output from ./config && make && make install
...
CC main-user.o
CC worker-misc.o
CC route-add.o
CC worker-privs.o
In file included from worker-privs.c:26:0:
worker-privs.c: In function ‘disable_system_calls’:
worker-privs.c:41:46: error: ‘__NR_time’ undeclared (first use in this function)
ret = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(name), __VA_ARGS__); \
^
worker-privs.c:54:2: note: in expansion of macro ‘ADD_SYSCALL’
ADD_SYSCALL(time, 0);
^
worker-privs.c:41:46: note: each undeclared identifier is reported
only once for each function it appears in
ret = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(name), __VA_ARGS__); \
^
worker-privs.c:54:2: note: in expansion of macro ‘ADD_SYSCALL’
ADD_SYSCALL(time, 0);
^
worker-privs.c:41:46: error: ‘__NR_alarm’ undeclared (first use in
this function)
ret = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(name), __VA_ARGS__); \
^
worker-privs.c:61:2: note: in expansion of macro ‘ADD_SYSCALL’
ADD_SYSCALL(alarm, 0);
^
worker-privs.c:41:46: error: ‘__NR_select’ undeclared (first use in
this function)
ret = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(name), __VA_ARGS__); \
^
worker-privs.c:89:2: note: in expansion of macro ‘ADD_SYSCALL’
ADD_SYSCALL(select, 0);
^
Makefile:1459: recipe for target 'worker-privs.o' failed
make[4]: *** [worker-privs.o] Error 1
make[4]: Leaving directory '/usr/src/ocserv-0.10.4/src'
Makefile:1481: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/usr/src/ocserv-0.10.4/src'
Makefile:1143: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/ocserv-0.10.4/src'
Makefile:1000: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/ocserv-0.10.4'
Makefile:940: recipe for target 'all' failed
make: *** [all] Error 2
More information about the openconnect-devel
mailing list