You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Karol Grecki <kg...@gmail.com> on 2009/07/31 11:26:32 UTC

Compiling 1.6.x javahl 32bit on 64bit Ubuntu

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.

I managed to get all dependencies sorted and compiled 1.5.x with this
command:

CC="gcc -m32" CXX="c++ -m32" LDFLAGS="-L/lib32 -L/usr/lib32 -L`pwd`/lib32
-Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32" ./configure --enable-javahl
--with-jdk=/home/karol/jdk1.6.0_12

make && make javahl

It worked great, but now few month later I'm trying to do the same with
1.6.x and it seems to compile fine but I get this error in Eclipse:

Cannot load libraries: .... libsvnjavahl-1.so Cant't load IA 32-bit .so on a
IA 32-bit platform

I'll appreciate any help.
Cheers
-- 
View this message in context: http://www.nabble.com/Compiling-1.6.x-javahl-32bit-on-64bit-Ubuntu-tp24754885p24754885.html
Sent from the Subversion Users mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377322

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Mark Phippard <ma...@gmail.com>.
On Fri, Jul 31, 2009 at 3:55 PM, Karol Grecki<kg...@gmail.com> wrote:
> Mark Phippard-3 wrote:
>>
>> On Fri, Jul 31, 2009 at 11:03 AM, Tyler Roscoe<ty...@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@subversion.tigris.org].


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

Posted by Karol Grecki <kg...@gmail.com>.
Mark Phippard-3 wrote:
> 
> On Fri, Jul 31, 2009 at 11:03 AM, Tyler Roscoe<ty...@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?

Thanks
-- 
View this message in context: http://www.nabble.com/Compiling-1.6.x-javahl-32bit-on-64bit-Ubuntu-tp24754885p24762190.html
Sent from the Subversion Users mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377535

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Mark Phippard <ma...@gmail.com>.
On Fri, Jul 31, 2009 at 11:03 AM, Tyler Roscoe<ty...@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.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377432

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Tyler Roscoe <ty...@cryptio.net>.
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.

tyler

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377431

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].