Thanks Wolfgang! Still problems.
I downloaded from http://cvs.apache.org/builds/jakarta-commons/nightly/commons-daemon/ the latest file: commons-daemon-20050316.zip autoconf worked fine. ./configure worked fine. make failed with many errors. How to fix this? Is it worth it? When is the next version coming out? The errors are below. I cross-posted to the commons-dev list because I used a nightly build. Many thanks, Bernard # ./configure *** Current host *** checking build system type... i586-pc-linux-gnu checking host system type... i586-pc-linux-gnu checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Java compilation tools *** checking for javac... NONE checking for javac... /usr/java/j2sdk1.4.2_07/bin/javac checking wether the Java compiler (/usr/java/j2sdk1.4.2_07/bin/javac) works... yes checking for jar... NONE checking for jar... /usr/java/j2sdk1.4.2_07/bin/jar *** Host support *** checking C flags dependant on host system type... ok gcc flags added *** Writing output files *** configure: creating ./config.status config.status: creating Makefile config.status: creating Makedefs config.status: creating native/Makefile *** All done *** Now you can issue "make" [EMAIL PROTECTED] jsvc-src]# make make -C native all make[1]: Entering directory `/tmp/jsvc/commons-daemon/bin/jsvc-src/native' gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c arguments.c -o arguments.o arguments.c: In function `arguments': arguments.c:231: warning: unused variable `temp' gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c debug.c -o debug.o gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o dso-dlfcn.c:51: warning: function declaration isn't a prototype gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c help.c -o help.o gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c home.c -o home.o gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c java.c -o java.o java.c:22:17: jni.h: No such file or directory java.c:35: parse error before '*' token java.c:35: warning: type defaults to `int' in declaration of `jvm' java.c:35: warning: data definition has no type or storage class java.c:36: parse error before '*' token java.c:36: warning: type defaults to `int' in declaration of `env' java.c:36: warning: data definition has no type or storage class java.c:37: parse error before "cls" java.c:37: warning: type defaults to `int' in declaration of `cls' java.c:37: warning: initialization makes integer from pointer without a cast java.c:37: warning: data definition has no type or storage class java.c:42: parse error before '*' token java.c:42: warning: function declaration isn't a prototype java.c: In function `shutdown': java.c:43: `reload' undeclared (first use in this function) java.c:43: (Each undeclared identifier is reported only once java.c:43: for each function it appears in.) java.c: At top level: java.c:49: warning: function declaration isn't a prototype java.c: In function `java_init': java.c:91: warning: implicit declaration of function `jint' java.c:91: `symb' undeclared (first use in this function) java.c:91: `JavaVM' undeclared (first use in this function) java.c:91: parse error before ',' token java.c:92: `JNINativeMethod' undeclared (first use in this function) java.c:93: `JavaVMOption' undeclared (first use in this function) java.c:93: `opt' undeclared (first use in this function) java.c:95: `JavaVMInitArgs' undeclared (first use in this function) java.c:95: parse error before "arg" java.c:97: parse error before "ret" java.c:120: warning: implicit declaration of function `dso_error' java.c:166: `arg' undeclared (first use in this function) java.c:166: `JNI_VERSION_1_2' undeclared (first use in this function) java.c:170: parse error before ')' token java.c:198: `ret' undeclared (first use in this function) java.c:206: invalid type argument of `->' java.c:208: warning: comparison between pointer and integer java.c:215: `nativemethod' undeclared (first use in this function) java.c:219: invalid type argument of `->' java.c: In function `JVM_destroy': java.c:230: `jclass' undeclared (first use in this function) java.c:230: parse error before "system" java.c:231: `jmethodID' undeclared (first use in this function) java.c:237: invalid type argument of `->' java.c:246: `method' undeclared (first use in this function) java.c:246: invalid type argument of `->' java.c:253: invalid type argument of `->' java.c:253: `jint' undeclared (first use in this function) java.c:253: parse error before "exit" java.c:257: invalid type argument of `->' java.c: In function `java_load': java.c:264: `jclass' undeclared (first use in this function) java.c:264: parse error before "stringClass" java.c:265: `jstring' undeclared (first use in this function) java.c:267: `jobjectArray' undeclared (first use in this function) java.c:268: `jmethodID' undeclared (first use in this function) java.c:269: `jboolean' undeclared (first use in this function) java.c:276: `className' undeclared (first use in this function) java.c:276: invalid type argument of `->' java.c:284: `stringClass' undeclared (first use in this function) java.c:284: invalid type argument of `->' java.c:291: `stringArray' undeclared (first use in this function) java.c:291: invalid type argument of `->' java.c:299: `currentArgument' undeclared (first use in this function) java.c:299: invalid type argument of `->' java.c:305: invalid type argument of `->' java.c:310: `method' undeclared (first use in this function) java.c:310: invalid type argument of `->' java.c:316: `ret' undeclared (first use in this function) java.c:316: invalid type argument of `->' java.c: In function `java_start': java.c:328: `jmethodID' undeclared (first use in this function) java.c:328: parse error before "method" java.c:329: `jboolean' undeclared (first use in this function) java.c:335: `method' undeclared (first use in this function) java.c:335: invalid type argument of `->' java.c:341: `ret' undeclared (first use in this function) java.c:341: invalid type argument of `->' java.c: In function `java_stop': java.c:353: `jmethodID' undeclared (first use in this function) java.c:353: parse error before "method" java.c:354: `jboolean' undeclared (first use in this function) java.c:360: `method' undeclared (first use in this function) java.c:360: invalid type argument of `->' java.c:366: `ret' undeclared (first use in this function) java.c:366: invalid type argument of `->' java.c: In function `java_version': java.c:378: `jmethodID' undeclared (first use in this function) java.c:378: parse error before "method" java.c:384: `method' undeclared (first use in this function) java.c:384: invalid type argument of `->' java.c:390: invalid type argument of `->' java.c: In function `java_check': java.c:396: `jstring' undeclared (first use in this function) java.c:396: parse error before "className" java.c:397: `jmethodID' undeclared (first use in this function) java.c:398: `jboolean' undeclared (first use in this function) java.c:405: `className' undeclared (first use in this function) java.c:405: invalid type argument of `->' java.c:414: `method' undeclared (first use in this function) java.c:414: invalid type argument of `->' java.c:420: `ret' undeclared (first use in this function) java.c:420: invalid type argument of `->' java.c: In function `java_destroy': java.c:432: `jmethodID' undeclared (first use in this function) java.c:432: parse error before "method" java.c:433: `jboolean' undeclared (first use in this function) java.c:439: `method' undeclared (first use in this function) java.c:439: invalid type argument of `->' java.c:445: `ret' undeclared (first use in this function) java.c:445: invalid type argument of `->' make[1]: *** [java.o] Error 1 make[1]: Leaving directory `/tmp/jsvc/commons-daemon/bin/jsvc-src/native' make: *** [native/all] Error 2 On Wed, 16 Mar 2005 12:46:19 +0100, you wrote: >Hi Bernhard! > >Bernard wrote: > >>I get the following error: >> >>"jsvc.exec error: Service exit with a return value of 143" >> > >There was a Thread here in December called "Session restart replication >when using jsvc". Bill Barker recommended to use CVS HEAD of the >commons-daemon. > >Kind regards > >Wolfgang > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
