|
From: Bernd L. <Ber...@we...> - 2007-06-12 13:03:01
|
ep...@up... schrieb: > Bernd, > I found a copy of jni.h on my machine on the folder: > /opt/ibm/java2-s390x-50/include/jni.h > I copied the file to my wrapper src c folder on the same machine: > /usr/local/wrappersrc/wrapper_3.2.3_src/src/c/jni.h > And ran again the build64.sh script and the same error is generated. Did I > miss something out? I checked twice and the jni.h is on that folder and > the output still says that is missing. Do I have to change something > else? This is strange. Is JAVA_HOME defined? AFAIS, the directoy $JAVA_HOME/include ist included in the include search path, so the first error should not have occured: COMPILE = gcc [...] INCLUDE=$(JAVA_HOME)/include DEFS = -I$(INCLUDE) -I$(INCLUDE)/linux [...] %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) $(DEFS) -Wp,-MD,.deps/$(*F).pp -c $< [...] I never built the wrapper myself, but try defining the JAVA_HOME (export JAVA_HOME=/opt/ibm/java2-s390x-50) and change the makefile line to: %.o: %.c @echo '$(COMPILE) $(DEFS) -c $<'; \ to include the directories of the compiler call in the output. Check, if there is a directory /opt/ibm/java2-s390x-50/include/linux. If not, change the last part of the makefile line DEFS = -I$(INCLUDE) -I$(INCLUDE)/linux to whatever directory there is with platform dependant include files. Bernd |