On Mar 29, 2009, at 16:34:27, Riccardo Cohen wrote: > I compiled the pro and open source version of resin321 on macos 10.5.6 > last week and it worked with no problem on java 1.5 > Any reason to use java 1.6 ?
Well, it's what I got. I guess I should try with 1.5. > Rick Mann wrote: >> Hi. I tried to configure and make resin-3.2.1 on Mac OX X 10.5.6, but >> got some link errors. Is this known to build? >> >>> gcc -bundle -undefined suppress -flat_namespace -L/usr/lib - >>> framework JavaVM -o libresin_os.jnilib boot.o java.o jni_os.o >>> jni_jvmti.o jni_jvmdi.o jni_socket.o memory.o std.o >>> ld warning: in boot.o, file is not of required architecture >>> ld warning: in java.o, file is not of required architecture >>> ld warning: in jni_os.o, file is not of required architecture >>> ld warning: in jni_jvmti.o, file is not of required architecture >>> ld warning: in jni_jvmdi.o, file is not of required architecture >>> ld warning: in jni_socket.o, file is not of required architecture >>> ld warning: in memory.o, file is not of required architecture >>> ld warning: in std.o, file is not of required architecture >> >> I seem to have only 32-bit Java, according to my Java Preferences, >> but I'm not entirely clear: >> >> $ java -version >> java version "1.6.0_07" >> Java(TM) SE Runtime Environment (build 1.6.0_07-b06-146) >> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-56, mixed mode) >> >> TIA, >> Rick >> >> ------ >> >> Full transcript: >> >> >> Eclipse:~ rmann$ cd resin-3.2.1 >> Eclipse:resin-3.2.1 rmann$ ls >> LICENSE Makefile.in aclocal.m4 bin/ >> configure* contrib/ ext-webapp- >> lib/ lib/ modules/ setup.exe* win32/ >> Makefile.am README automake/ conf/ configure.ac* >> doc/ keys/ >> licenses/ resin.exe* webapps/ win64/ >> Eclipse:resin-3.2.1 rmann$ ./configure >> checking build system type... i386-apple-darwin9.6.0 >> checking host system type... i386-apple-darwin9.6.0 >> checking target system type... i386-apple-darwin9.6.0 >> checking for a BSD-compatible install... /usr/bin/install -c >> checking whether build environment is sane... yes >> checking for a thread-safe mkdir -p... automake/install-sh -c -d >> checking for gawk... no >> checking for mawk... no >> checking for nawk... no >> checking for awk... awk >> checking whether make sets $(MAKE)... yes >> checking for gcc... gcc >> checking for C compiler default output file name... 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 ISO C89... none needed >> checking for style of include used by make... GNU >> checking dependency style of gcc... none >> checking for a sed that does not truncate output... /usr/bin/sed >> checking for grep that handles long lines and -e... /usr/bin/grep >> checking for egrep... /usr/bin/grep -E >> checking for ld used by gcc... /usr/libexec/gcc/i686-apple- >> darwin9/4.0.1/ld >> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) >> is GNU ld... no >> checking for egrep... (cached) /usr/bin/grep -E >> checking how to run the C preprocessor... gcc -E >> checking for ANSI C header files... yes >> checking for sys/types.h... yes >> checking for sys/stat.h... yes >> checking for stdlib.h... yes >> checking for string.h... yes >> checking for memory.h... yes >> checking for strings.h... yes >> checking for inttypes.h... yes >> checking for stdint.h... yes >> checking for unistd.h... yes >> checking sys/poll.h usability... yes >> checking sys/poll.h presence... yes >> checking for sys/poll.h... yes >> checking sys/epoll.h usability... no >> checking sys/epoll.h presence... no >> checking for sys/epoll.h... no >> checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to >> reload object files... -r >> checking for BSD-compatible nm... /usr/bin/nm -p >> checking whether ln -s works... yes >> checking how to recognize dependent libraries... pass_all >> checking dlfcn.h usability... yes >> checking dlfcn.h presence... yes >> checking for dlfcn.h... yes >> checking for g++... g++ >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking dependency style of g++... none >> checking how to run the C++ preprocessor... g++ -E >> checking for g77... no >> checking for xlf... no >> checking for f77... no >> checking for frt... no >> checking for pgf77... no >> checking for cf77... no >> checking for fort77... no >> checking for fl32... no >> checking for af77... no >> checking for xlf90... no >> checking for f90... no >> checking for pgf90... no >> checking for pghpf... no >> checking for epcf90... no >> checking for gfortran... no >> checking for g95... no >> checking for xlf95... no >> checking for f95... no >> checking for fort... no >> checking for ifort... no >> checking for ifc... no >> checking for efc... no >> checking for pgf95... no >> checking for lf95... no >> checking for ftn... no >> checking whether we are using the GNU Fortran 77 compiler... no >> checking whether accepts -g... no >> checking the maximum length of command line arguments... 196608 >> checking command to parse /usr/bin/nm -p output from gcc object... >> rm: >> conftest.dSYM: is a directory >> ok >> checking for objdir... .libs >> checking for ar... ar >> checking for ranlib... ranlib >> checking for strip... strip >> checking for dsymutil... dsymutil >> checking for nmedit... nmedit >> checking for -single_module linker flag... yes >> checking for -exported_symbols_list linker flag... yes >> rm: conftest.dSYM: is a directory >> checking if gcc supports -fno-rtti -fno-exceptions... no >> checking for gcc option to produce PIC... -fno-common >> checking if gcc PIC flag -fno-common works... yes >> checking if gcc static flag -static works... no >> checking if gcc supports -c -o file.o... yes >> checking whether the gcc linker (/usr/libexec/gcc/i686-apple- >> darwin9/4.0.1/ld) supports shared libraries... yes >> checking dynamic linker characteristics... darwin9.6.0 dyld >> checking how to hardcode library paths into programs... immediate >> checking whether stripping libraries is possible... yes >> checking if libtool supports shared libraries... yes >> checking whether to build shared libraries... yes >> checking whether to build static libraries... yes >> configure: creating libtool >> appending configuration tag "CXX" to libtool >> checking for ld used by g++... /usr/libexec/gcc/i686-apple- >> darwin9/4.0.1/ld >> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) >> is GNU ld... no >> checking whether the g++ linker (/usr/libexec/gcc/i686-apple- >> darwin9/4.0.1/ld) supports shared libraries... yes >> checking for g++ option to produce PIC... -fno-common >> checking if g++ PIC flag -fno-common works... yes >> checking if g++ static flag -static works... no >> checking if g++ supports -c -o file.o... yes >> checking whether the g++ linker (/usr/libexec/gcc/i686-apple- >> darwin9/4.0.1/ld) supports shared libraries... yes >> checking dynamic linker characteristics... darwin9.6.0 dyld >> (cached) (cached) checking how to hardcode library paths into >> programs... immediate >> appending configuration tag "F77" to libtool >> Using shared library flags from /usr/sbin/apxs >> checking for JAVA_HOME... /System/Library/Frameworks/ >> JavaVM.framework/ >> Versions/1.6/Home >> -n checking if Java is 64-bit... >> yes >> Using Apache CFLAGS: -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no- >> cpp- >> precomp >> checking for JNI in /System/Library/Frameworks/JavaVM.framework/ >> Versions/1.6/Home/include ... found >> Using JVMTI for class reloading >> Using openssl include in ... /usr/include >> Using openssl lib in ... /usr/lib >> Using openssl libraries in ... -lssl -lcrypto >> configure: creating ./config.status >> config.status: creating Makefile >> config.status: creating modules/c/src/Makefile >> config.status: creating modules/c/src/common/Makefile >> config.status: creating modules/c/src/apache2/Makefile >> config.status: creating modules/c/src/resin_os/Makefile >> config.status: executing depfiles commands >> Eclipse:resin-3.2.1 rmann$ make >> (cd modules/c/src; make) >> for dir in common resin_os ; do (cd $dir; make); done >> gcc -c -I/usr/include -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS - >> DB64 - >> D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 - >> DHAS_SOCK_TIMEOUT -DHAS_JVMTI stream.c >> gcc -c -I/usr/include -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS - >> DB64 - >> D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 - >> DHAS_SOCK_TIMEOUT -DHAS_JVMTI config.c >> gcc -c -I/usr/include -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS - >> DB64 - >> D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 - >> DHAS_SOCK_TIMEOUT -DHAS_JVMTI memory.c >> gcc -r -o common.o stream.o config.o memory.o >> /Users/rmann/resin-3.2.1/libtool --silent --mode=compile gcc -o >> stream.lo -c -I/usr/include -g -O2 -DPOLL - >> D_POSIX_PTHREAD_SEMANTICS - >> DB64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE - >> D_FILE_OFFSET_BITS=64 - >> DHAS_SOCK_TIMEOUT -DHAS_JVMTI stream.c >> /Users/rmann/resin-3.2.1/libtool --silent --mode=compile gcc -o >> config.lo -c -I/usr/include -g -O2 -DPOLL - >> D_POSIX_PTHREAD_SEMANTICS - >> DB64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE - >> D_FILE_OFFSET_BITS=64 - >> DHAS_SOCK_TIMEOUT -DHAS_JVMTI config.c >> /Users/rmann/resin-3.2.1/libtool --silent --mode=compile gcc -o >> memory.lo -c -I/usr/include -g -O2 -DPOLL - >> D_POSIX_PTHREAD_SEMANTICS - >> DB64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE - >> D_FILE_OFFSET_BITS=64 - >> DHAS_SOCK_TIMEOUT -DHAS_JVMTI memory.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o boot.o boot.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o java.o java.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o jni_os.o jni_os.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o jni_jvmti.o jni_jvmti.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o jni_jvmdi.o jni_jvmdi.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o jni_socket.o jni_socket.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o memory.o memory.c >> gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 - >> D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SOCK_TIMEOUT - >> DHAS_JVMTI -m64 -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\"/Users/rmann/ >> resin-3.2.1\" -I/usr/include -I/System/Library/Frameworks/ >> JavaVM.framework/Versions/1.6/Home/include -I../common -DCPU= >> \"i386\" - >> DOS= -c -o std.o std.c >> gcc -bundle -undefined suppress -flat_namespace -L/usr/lib -framework >> JavaVM -o libresin_os.jnilib boot.o java.o jni_os.o jni_jvmti.o >> jni_jvmdi.o jni_socket.o memory.o std.o >> ld warning: in boot.o, file is not of required architecture >> ld warning: in java.o, file is not of required architecture >> ld warning: in jni_os.o, file is not of required architecture >> ld warning: in jni_jvmti.o, file is not of required architecture >> ld warning: in jni_jvmdi.o, file is not of required architecture >> ld warning: in jni_socket.o, file is not of required architecture >> ld warning: in memory.o, file is not of required architecture >> ld warning: in std.o, file is not of required architecture >> >> > > -- > Riccardo Cohen > Architecte du Logiciel > http://www.architectedulogiciel.fr > +33 (0)6.09.83.64.49 > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest -- Rick _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest