LINUX.ORG.RU

Проблемы при компиляции jsvc


0

0

Доброго времени суток.
Устанавливаю на RedHat-AS4 jsvc http://commons.apache.org/daemon/jsvc.html
# ./configure --with-java=/usr/java прошла замечательно
а make выдал ошибки:
# make
make -C native all
make[1]: Entering directory `/home/distributiv/commons-daemon-1.0.1/bin/jsvc-src/native'
gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/java/jdk1.6.0/include -I/usr/java/jdk1.6.0/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
In file included from /usr/include/signal.h:333,
from jsvc-unix.c:19:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory
In file included from jsvc-unix.c:29:
/usr/include/sys/prctl.h:23:66: linux/prctl.h: No such file or directory
In file included from jsvc-unix.c:30:
/usr/include/sys/syscall.h:25:24: asm/unistd.h: No such file or directory
jsvc-unix.c:32:30: linux/capability.h: No such file or directory
jsvc-unix.c: In function `set_caps':
jsvc-unix.c:126: error: storage size of 'caphead' isn't known
jsvc-unix.c:127: error: storage size of 'cap' isn't known
jsvc-unix.c:130: error: `_LINUX_CAPABILITY_VERSION' undeclared (first use in this function)
jsvc-unix.c:130: error: (Each undeclared identifier is reported only once
jsvc-unix.c:130: error: for each function it appears in.)
jsvc-unix.c:136: error: `__NR_capset' undeclared (first use in this function)
jsvc-unix.c:126: warning: unused variable `caphead'
jsvc-unix.c:127: warning: unused variable `cap'
jsvc-unix.c: In function `linuxset_user_group':
jsvc-unix.c:145: error: `CAP_NET_BIND_SERVICE' undeclared (first use in this function)
jsvc-unix.c:145: error: `CAP_SETUID' undeclared (first use in this function)
jsvc-unix.c:145: error: `CAP_SETGID' undeclared (first use in this function)
jsvc-unix.c:154: error: `PR_SET_KEEPCAPS' undeclared (first use in this function)
make[1]: *** [jsvc-unix.o] Error 1
make[1]: Leaving directory `/home/distributiv/commons-daemon-1.0.1/bin/jsvc-src/native'
make: *** [native/all] Error 2

Подскажите в чем может быть проблема?

Re: Проблемы при компиляции jsvc

/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory 
/usr/include/sys/prctl.h:23:66: linux/prctl.h: No such file or directory 
/usr/include/sys/syscall.h:25:24: asm/unistd.h: No such file or directory

^^^

kostian ★★★★☆ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.