Buildconf problems

$ sh support/buildconf.sh
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_PATH
***BUG in Autoconf--please report*** AC_PATH
***BUG in Autoconf--please report*** AC_PATH
Your version of autoconf is to old, upgrade your autoconf and retry. Or run support/buildconf.sh in another machine and copy the daemon tree in the machine where you want to compile jsvc.

Configure problems

configure: creating ./config.status
config.status: creating Makefile
mv: Makefile: set owner/group (was: 1670/0): Operation not permitted
config.status: creating Makedefs
mv: Makedefs: set owner/group (was: 1670/0): Operation not permitted
config.status: creating native/Makefile
mv: native/Makefile: set owner/group (was: 1670/0): Operation not permitted
*** All done ***
Now you can issue "make"
You should ignore those error messages they are normal in FreeBSD. config.status creates files in /tmp and move them in the current directory. When FreeBSD creates files it sets the group of the files to the group of the directory where the files are created. So if /tmp is group "wheel" the files are "wheel". When moving the files in the current directory (if you are not member of group "wheel") the group "wheel" cannot be set on the moved files.

Runtime problems

On Linux 2.6.x jsvc does not start and write the following error:

jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4
CONFIG_SECURITY_CAPABILITIES in missing in your kernel try the following in the kernel sources:
  • Configure the kernel with "Default Linux Capabilities" and reboot (by make gconfig or make xconfig under "security options" and "Enable different security models")
  • Insert the module "capability":
    modprobe capability
    

Cygwin configuration problems

The configure of jsvc does not like spaces in directory name. To configure with java installed in directory whose name contains a space, use the 8 characters name of the directory. For example for java in installed in c:\Archivos de programa\java\jdk1.5.0_06:

./configure --with-java=/cygdrive/c/Archiv~1/java/jdk1.5.0_06