|
From: <mai...@st...> - 2005-03-11 19:09:21
|
Hello Leif, No, I was running the 64bit JVM versions until I found out through researching a JBOSS issue that 64bit jvm has problems, I think especially on the AMD64. But yeah the 32bit wrapper works nicely with the 32bit JVM. Thanks! John > John and I have been talking off line but wanted to post on the list as > well. > After playing with trying to get a 64-bit native version of the Wrapper > working for a while, > I had realized that the JVM being run was 32-bit. I tried the regular > 32-bit version of > the Wrapper with that JVM and it works file out of the box. > > The 64-bit version of the Wrapper does not of course work with the > 32-bit JVM. But > I have not yet had the opportunity to try it with a 64-bit JVM on the > A64 system. It is > building however. > > Cheers, > Leif > > > mai...@st... wrote: > >>Hello Leif, >> >>Any luck with the A64? Im beginning to wonder if i should have stuck with >>the Xeons. >> >>John >> >> >> >>>Leif, >>> >>>unfortunately, I have no access to a A64 machine. >>>But I found on Google, that you may have to add the '-m64' option to the >>>link lines to force the compiler and linker to produce 64-bit binaries. >>>If it still fails, I would enable the debug output of gcc to see, which >>>other libraries it is trying to link into the JNI library. >>>Perhaps one of them is not a 64-bit one. And they all should be shared >>>libraries, not static ones. >>> >>>Cheers, >>>Andreas >>> >>> >>> >>>>Andreas, >>>> Thanks, yes I got that far last night. But am now running into the >>>>following error. >>>>compile-c-unix: >>>>if test ! -d .deps; then mkdir .deps; fi >>>>gcc -O3 -fPIC -Wall --pedantic -pthread -DUSE_NANOSLEEP -lm wrapper.c >>>>wrapperinfo.c wrappereventloop.c wrapper_unix.c property.c logger.c -o >>>>../../bin/wrapper >>>>gcc -O3 -fPIC -Wall --pedantic -pthread -DUSE_NANOSLEEP -c >>>> wrapperinfo.c >>>>gcc -O3 -fPIC -Wall --pedantic -pthread -DUSE_NANOSLEEP -shared >>>>wrapperjni_unix.o wrapperinfo.o wrapperjni.o -o ../../lib/libwrapper.sl >>>>/usr/bin/ld: wrapperjni_unix.o: relocation R_X86_64_32 can not be used >>>>when making a shared object; recompile with -fPIC >>>>wrapperjni_unix.o: could not read symbols: Bad value >>>>collect2: ld returned 1 exit status >>>>make: *** [libwrapper.sl] Error 1 >>>> >>>> From what little I have been able to find from Google, it appears >>>> to >>>>be a linking problem >>>>caused by a mismatch between libraries build with the -fPIC parameter >>>>and one without. >>>>Problem is that I think that all of the libraries being linked are >>>> being >>>>build correctly. Still >>>>investigating, but any ideas? >>>> I also tried changing the target library name to .sl rather than >>>> .so >>>>as is being done for >>>>the HPUX-64 build. That appears to make no difference in the build, >>>>didn't think it would. >>>>I am still looking for the naming convention that is expected by the 64 >>>>bit linux JVMs. >>>> >>>> The Wrapper binary is being built correctly, but the jni library is >>>>not. Will post more if >>>>I figure something out. >>>> >>>>Cheers, >>>>Leif >>>> >>>> >>>>Andreas Wendt wrote: >>>> >>>> >>>> >>>>>John, >>>>> >>>>>the function ceil is normally in the math library. >>>>>Therefore, you should add a '-lm' to the link line in your Makefile: >>>>> >>>>>$(COMPILE) $(wrapper_SOURCE) -o $(BIN)/wrapper -lm >>>>> >>>>>Regards, >>>>>Andreas >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello Leif Mortenson, >>>>>> >>>>>>I have tried building this wrapper for a64 without much luck. It >>>>>> >>>>>> >>>>starts up >>>> >>>> >>>>>>fine and finds ANT and JAVA_HOME but then it fails. I have tried with >>>>>> >>>>>> >>>>jvm >>>> >>>> >>>>>>1.4.3 as well as 1.5. I've tried building it as user as well as root >>>>>> >>>>>> >>>>with >>>> >>>> >>>>>>the source in /usr/src. >>>>>> >>>>>>The error I get: >>>>>>Wrapper Build System >>>>>>-------------------- >>>>>>Buildfile: build.xml >>>>>> >>>>>>init: >>>>>>OS='Linux' >>>>>> >>>>>>update-info: >>>>>>Copying 1 file to >>>>>>/usr/src/wrapper_3.1.2_src/src/java/org/tanukisoftware/wrapper >>>>>>Copying 1 file to /usr/src/wrapper_3.1.2_src/src/c >>>>>> >>>>>>compile-java: >>>>>>Compiling 1 source file to /usr/src/wrapper_3.1.2_src/build/classes >>>>>> >>>>>>compile-jni: >>>>>>ClassArgument.name=org.tanukisoftware.wrapper.WrapperManager >>>>>> >>>>>>compile-c-unix: >>>>>>if test ! -d .deps; then mkdir .deps; fi >>>>>>gcc -O3 -Wall --pedantic -pthread -DUSE_NANOSLEEP wrapper.c >>>>>> >>>>>> >>>>wrapperinfo.c >>>> >>>> >>>>>>wrappereventloop.c wrapper_unix.c property.c logger.c -o >>>>>> >>>>>> >>>>../../bin/wrapper >>>> >>>> >>>>>>/tmp/cces7BCe.o(.text+0x2f33): In function >>>>>> >>>>>> >>>>`wrapperStopPendingSignalled': >>>> >>>> >>>>>>: undefined reference to `ceil' >>>>>>/tmp/cces7BCe.o(.text+0x3064): In function >>>>>> >>>>>> >>>>`wrapperStartPendingSignalled': >>>> >>>> >>>>>>: undefined reference to `ceil' >>>>>>collect2: ld returned 1 exit status >>>>>>make: *** [wrapper] Error 1 >>>>>> >>>>>>BUILD FAILED >>>>>>/usr/src/wrapper_3.1.2_src/build.xml:328: exec returned: 2 >>>>>> >>>>>>Total time: 5 seconds >>>>>> >>>>>>Any suggestions? I currently don't have any production sites on this >>>>>>server, could give you access if you want to give it a try. >>>>>> >>>>>>Thanks! >>>>>> >>>>>>John >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>SF email is sponsored by - The IT Product Guide >>>>>>Read honest & candid reviews on hundreds of IT Products from real >>>>>> >>>>>> >>>>users. >>>> >>>> >>>>>>Discover which products truly live up to the hype. Start reading now. >>>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>>>>_______________________________________________ >>>>>>Wrapper-user mailing list >>>>>>Wra...@li... >>>>>>https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>SF email is sponsored by - The IT Product Guide >>>>>Read honest & candid reviews on hundreds of IT Products from real >>>>> >>>>> >>>>users. >>>> >>>> >>>>>Discover which products truly live up to the hype. Start reading now. >>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>>>_______________________________________________ >>>>>Wrapper-user mailing list >>>>>Wra...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>>------------------------------------------------------- >>>>SF email is sponsored by - The IT Product Guide >>>>Read honest & candid reviews on hundreds of IT Products from real >>>> users. >>>>Discover which products truly live up to the hype. Start reading now. >>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>>_______________________________________________ >>>>Wrapper-user mailing list >>>>Wra...@li... >>>>https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>> >>>> >>> >>> >>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide >>>Read honest & candid reviews on hundreds of IT Products from real users. >>>Discover which products truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Wrapper-user mailing list >>>Wra...@li... >>>https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >>> >>> >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Wrapper-user mailing list >>Wra...@li... >>https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |