|
From: <ep...@up...> - 2007-06-12 13:31:10
|
Bern, You were right! The problem was the undefined JAVA_HOME on that machine. I defined it as you said, and ran the script and it created the wrapper without errors. I even removed the copied jni.h and use the makefile as it was before, and it still makes the binary wrapper. So as Leif said, we just need to copy the makefile: Makefile-linux-x86-64 and rename it to Makefile-linux-s390x-64 and make sure that JAVA_HOME is defined. My wrapped service is now running! Thanks to both, Edrick Quoting wra...@li...: > > > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of Bernd > Laengerich > Sent: Tuesday, June 12, 2007 9:03 AM > To: wra...@li... > Subject: Re: [Wrapper-user] FW: Service Wrapper in IBM s390 linux server > > 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 > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |