From owner-freebsd-java@FreeBSD.ORG Thu Sep 9 07:33:29 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEB0E16A4CE for ; Thu, 9 Sep 2004 07:33:28 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23B1443D48 for ; Thu, 9 Sep 2004 07:33:28 +0000 (GMT) (envelope-from freebsd-java@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C5JQs-0003Y1-00 for ; Thu, 09 Sep 2004 09:33:26 +0200 Received: from panix3.panix.com ([166.84.1.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2004 09:33:26 +0200 Received: from evenson by panix3.panix.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2004 09:33:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: Mark Evenson Date: 09 Sep 2004 03:33:17 -0400 Lines: 60 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: panix3.panix.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Sender: news cc: 0@main.gmane.org Subject: Creating javahl JNI bindings for Subclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 07:33:29 -0000 --=-=-= Thanks for all the great work getting Eclipse 3.0 working: now on to the plugins! In working through porting Subclipse (the Subversion plugin for Eclipse) on FreeBSD 5.2.1, I run into the attached error compiling libsvnjavahl.so (Java High Level JNI bindings for SVN), which is an unsatisfied compile time linkage error to 'apr_thread_mutex_lock'. This arises from the ports default use of the non-threaded APR model in Apache httpd, and therefore in Subversion. Any recommendations to a shortest path to getting Subclipse working among: Waiting for subversion-1.1, which builds the javahl interface by default, is not really an attractive options, as we seem to be in the middle of a ports freeze for the stabilization of RELENG_5. Rewriting the subversion-1.0.6 code to use a per-process locking model from APR, which I think will not work from the inherently multi-threaded Java. Compiling www/apache2 and devel/subversion with the threading model. This is marked as 'experimental' all over the ports Makefiles. How experimental is this really? -- Mark Evenson "A screaming comes across the sky. It has happened before, but there is nothing to compare to it now." --=-=-= Content-Disposition: attachment; filename=subversion-1.0.6-javahl-compile-errors Content-Description: javahl unsatisfied link to APR thread mutex ub1868-1413:/usr/ports/devel/subversion/work/subversion-1.0.6/subversion/bindings/java/javahl/native$ gmake gmake all-am gmake[1]: Entering directory `/usr/ports/devel/subversion/work/subversion-1.0.6/subversion/bindings/java/javahl/native' source='JNICriticalSection.cpp' object='JNICriticalSection.lo' libtool=yes \ depfile='.deps/JNICriticalSection.Plo' tmpdepfile='.deps/JNICriticalSection.TPlo' \ depmode=gcc3 /usr/local/bin/bash ../depcomp \ /usr/local/bin/bash ../libtool --mode=compile g++ -DPACKAGE_NAME=\"javahl\" -DPACKAGE_TARNAME=\"javahl\" -DPACKAGE_VERSION=\"0.32.1\" -DPACKAGE_STRING=\"javahl\ 0.32.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"javahl\" -DVERSION=\"0.32.1\" -I. -I. -I/usr/local/include/apache2 -g -O2 -I../../../../include -I/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/freebsd -c -o JNICriticalSection.lo `test -f JNICriticalSection.cpp || echo './'`JNICriticalSection.cpp rm -f .libs/JNICriticalSection.lo g++ -DPACKAGE_NAME=\"javahl\" -DPACKAGE_TARNAME=\"javahl\" -DPACKAGE_VERSION=\"0.32.1\" "-DPACKAGE_STRING=\"javahl 0.32.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"javahl\" -DVERSION=\"0.32.1\" -I. -I. -I/usr/local/include/apache2 -g -O2 -I../../../../include -I/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/freebsd -c JNICriticalSection.cpp -MT JNICriticalSection.lo -MD -MP -MF .deps/JNICriticalSection.TPlo -fPIC -DPIC -o .libs/JNICriticalSection.lo JNICriticalSection.cpp: In constructor ` JNICriticalSection::JNICriticalSection(JNIMutex&)': JNICriticalSection.cpp:36: error: `apr_thread_mutex_lock' undeclared (first use this function) JNICriticalSection.cpp:36: error: (Each undeclared identifier is reported only once for each function it appears in.) JNICriticalSection.cpp: In destructor ` JNICriticalSection::~JNICriticalSection()': JNICriticalSection.cpp:47: error: `apr_thread_mutex_unlock' undeclared (first use this function) gmake[1]: *** [JNICriticalSection.lo] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/subversion/work/subversion-1.0.6/subversion/bindings/java/javahl/native' gmake: *** [all] Error 2 --=-=-=--