[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Compiling 1.6.x javahl 32bit on 64bit Ubuntu

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 31 Jul 2009 16:04:27 -0400

On Fri, Jul 31, 2009 at 3:55 PM, Karol Grecki<kgrecki_at_gmail.com> wrote:
> Mark Phippard-3 wrote:
>>
>> On Fri, Jul 31, 2009 at 11:03 AM, Tyler Roscoe<tyler_at_cryptio.net> wrote:
>>> On Fri, Jul 31, 2009 at 04:26:32AM -0700, Karol Grecki wrote:
>>>> I'm using Zend Studio based on Eclipse which only comes in 32bit
>>>> flavour. I
>>>> found javahl working better (performance and reliability) than svnkit
>>>> but I
>>>> had some problems compiling it on my 64bit system.
>>>
>>> You'll get better responses to this question on an eclipse or javahl
>>> mailing list. Good luck.
>>
>> Actually, this is the proper mailing list for compiling JavaHL.  It
>> is, after all, part of Subversion.
>>
>> The error is coming from the OS library loader.  I'd focus on trying
>> to find out what the heck it means.  It is a weird error.
>>
>> I wonder if the problem is that one or more of the dependencies that
>> JavaHL needs to load at runtime, is not 32-bit.  Such as the APR,
>> Neon, OpenSSL or zlib libraries.
>>
>
> I was under the impression that my method works with 1.5 but not with 1.6,
> hence I thought I might get some help here. I turns out I can no longer
> compile 1.5 this way, it results in the same error.
> Something probably changed when upgraded my distro. It's a bit weird because
> there are no compilation errors and all dependencies seem to be resolved.
>
> Does anyone know if I compile subversion javahl statically? Maybe that would
> allow me do it on 32bit OS and then copy single .so file and use it on 64bit
> machine?

It doesn't work. When Java loads a library for a JNI call it uses dl
which dynamically loads the library and causes it in turn dynamically
load its dependencies. I'm not a Unix guy so I do not try to
understand why. I've just been wanting to be able to do this for
years so that I could provide a JavaHL .so with the Subclipse
download.

CollabNet provides RPM's for Linux. These install and work on Ubuntu.
 I use the "alien" package which allows you to easily install RPM's.

Also see: http://subclipse.tigris.org/wiki/JavaHL

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377539
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-31 22:05:16 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.