From: KIDWELL, R. \(SBCSI\) <rk...@at...> - 2006-09-29 21:52:33
|
Does any one have any ideas how to compile and link the jsvc C program so it can use the libjvm.so? Progress has been made compiling jsvc, see below make[1]: Entering directory `/usr/local/jakarta-tomcat-5.0.28/bin/jsvc-src/native' gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c arguments.c -o arguments.o arguments.c: In function 'arguments': arguments.c:251: warning: unused variable 'temp' gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c debug.c -o debug.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -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 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c help.c -o help.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c home.c -o home.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c java.c -o java.o java.c:40:1: warning: "TRUE" redefined In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/include/stdio.h:413, from jsvc.h:20, from java.c:17: /opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/include/sys/types.h:4 74:1: warning: this is the location of the previous definition java.c:49: warning: function declaration isn't a prototype java.c: In function 'java_init': java.c:122: warning: implicit declaration of function 'dso_error' gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c location.c -o location.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c replace.c -o replace.o gcc -g -O2 -DOS_AIX -DDSO_DLFCN -mpowerpc64 -maix64 = -DCPU=3D\"powerpc64\" -I/usr/java5/include -I/usr/java5/include/aix -Wall -Wstrict-prototypes -c signals.c -o signals.o ar -X64 cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o replace.o signals.o ranlib libservice.a gcc -g -O2 -mpowerpc64 -maix64 -Wl,-brtl,-blibpath:/opt/freeware/lib:/opt/freeware/lib/gcc/powerpc-ibm- aix5.2.0.0/4.0.0:/usr/lib jsvc-unix.o libservice.a -o ../jsvc make[1]: Leaving directory `/usr/local/jakarta-tomcat-5.0.28/bin/jsvc-src/native' Attempting to execute jsvc via "Tomcat5.sh start" results in the following in the jsvc_err.log file 29/09/2006 16:27:10 630960 jsvc error: Cannot dynamically link to /usr/java5_64/jre/bin/classic/libjvm.so 29/09/2006 16:27:10 630960 jsvc error: No such file or directory 29/09/2006 16:27:10 524488 jsvc error: Service exit with a return value of 1 Using the other libjvm.so in the j9vm directory doesn't change the result. Again any help would be appreciated. Rex |