From owner-freebsd-java Fri Feb 22 0:59:20 2002 Delivered-To: freebsd-java@freebsd.org Received: from mordor.obitus.org (as6-5-7.fa.g.bonet.se [217.215.117.118]) by hub.freebsd.org (Postfix) with ESMTP id E54CB37B404 for ; Fri, 22 Feb 2002 00:59:10 -0800 (PST) Received: from mordor (mordor [217.215.117.118]) by mordor.obitus.org (8.11.6/8.11.6) with ESMTP id g1M8x3Y22426 for ; Fri, 22 Feb 2002 09:59:04 +0100 (CET) (envelope-from sauron@mordor.obitus.org) Date: Fri, 22 Feb 2002 09:59:03 +0100 (CET) From: Johan Huldtgren To: java@freebsd.org Subject: Resin 2.0.5 with JDK1.3.1p6 and FreeBSD 4.4-STABLE Message-ID: <20020222084632.D13241-100000@mordor.obitus.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Have been trying to get Resin 2.0.5 working on 4.4-20011213-STABLE, with jdk-1.3.1p6 installed(updated 21/02), as well as the jikes compiler. I configured resin with the following options: ./configure --prefix=/usr/local --enable-jni --with-apache=/usr/local/apache --with-apache-include=/usr/local/include/apache --with-apache-libexec=/usr/local/libexec/apache --with-apache-conf=/usr/local/etc/apache --with-java-home=/usr/local/jdk1.3.1 --with-jni-include=/usr/local/jdk1.3.1/include so far so good(or so it seems), the only warning produced is: Can't figure out compile flags for freebsd4.4 now typing make casues: # make (cd src/c/plugin; make) for dir in common apache resin; do (cd $dir; make); done gcc -c -g -O2 stream.c gcc -c -g -O2 registry.c gcc -c -g -O2 config.c gcc -c -g -O2 memory.c /usr/libexec/elf/ld -r -o common.o stream.o registry.o config.o memory.o gcc -c -g -O2 -fpic stream.c && mv stream.o stream.lo gcc -c -g -O2 -fpic registry.c && mv registry.o registry.lo gcc -c -g -O2 -fpic config.c && mv config.o config.lo gcc -c -g -O2 -fpic memory.c && mv memory.o memory.lo /usr/libexec/elf/ld -r -o common.lo stream.lo registry.lo config.lo memory.lo gcc -c -I/usr/local/include/apache -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" -I../common -g -O2 -fpic mod_caucho.c && mv mod_caucho.o mod_caucho.lo /usr/libexec/elf/ld -o mod_caucho.so -shared mod_caucho.lo ../common/common.lo gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c resin.c resin.c:55: jni.h: No such file or directory *** Error code 1 This despite that jni.h is in the jni-include lib set with configure above. Copying jni.h (and subsequently jni_md.h) to /usr/include gets me a bit further: # make (cd src/c/plugin; make) for dir in common apache resin; do (cd $dir; make); done gcc -c -g -O2 stream.c gcc -c -g -O2 registry.c gcc -c -g -O2 config.c gcc -c -g -O2 memory.c /usr/libexec/elf/ld -r -o common.o stream.o registry.o config.o memory.o gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c resin.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c request.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c int_map.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c jni_vfs.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c server.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c memory.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -g -O2 -DRESIN_HOME=\"/usr/ports/distfiles/resin-2.0.5_test\" /usr/local/jdk1.3.1/include -I../common -DCPU=\"i386\" -DOS= -c ssl_stub.c gcc: /usr/local/jdk1.3.1/include: linker input file unused since linking not done gcc -o resin resin.o ../common/common.o response.o request.o int_map.o jni_vfs.o server.o memory.o ssl_stub.o -ldl /usr/libexec/elf/ld: cannot find -ldl *** Error code 1 after some googling I decided to try to use linux-jdk1.3.1 instead, re-configured with that, copied the above mentioned header files from the linux dirs and re-ran make. It bombs out on the same error as above. Any ideas? Could quite possibly be a simple error caused by too little coffee. And while on the subject, is there a reason why there isn't a resin port? - Johan _____________________________________________________________ "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all other possible gods, you will understand why I dismiss yours." - [Stephen Roberts] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message