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

Re: javahl - why would, or wouldn't I need it?

From: Steve Cohen <scohen_at_javactivity.org>
Date: 2005-02-12 20:16:09 CET

Hi, Mark, after spending way too much time trying to build SVN from
source (but finally succeeding!) I return to the original problem:
installing javahl. Again, No Joy in Mudville. See below.

The problem seems to be that after the library is successfully made, the
make-install that's been pulled from the source rpm seems to want to
install the library in /usr/local/lib (where did THAT come from?) and
Red Hat won't let me do that.

Where did that come from? Well, there's a line in makefile that says
prefix = /usr/local so maybe if I just change it to
prefix = /usr I'll be okay?

Let's see.

That gets me further, some libraries are getting installed but then I
come to one that won't be installed anywhere BUT in /usr/local/lib,
while my manipulation of the makefile wants to put in /usr/lib.

AAARGGGH!

I suppose that all this is coming up because JAVA_HOME is for me
/usr/local/j2sdk1.4.2 which I installed outside of the redhat packaging
system while the library dirs are all under /usr/lib

Anyone know the magic set of configure switches to get me off THIS dime?
  (gory details below).

Mark Phippard wrote:
> Steve Cohen <stevecoh1@comcast.net> wrote on 02/03/2005 11:06:54 PM:
>
[snip]

>
> By the way, here are some recent instructions from one of the JavaHL
> maintainers on how best to build it:
>
> ========== BEGIN QUOTE
>
> "i am the author of the javahl binding. But not the author of the
> integration into the main bilding system.
> If you want to build the javahl binding on the 1.1.* branch on *nix
> system, it is not so complicated anymore.
>
> First run ./configure --enable-javahl [--with-jdk=...] [--with-junit=...]
> plus your usual options. The with-jdk option is needed, when JAVA_HOME
> does not point to your jdk directory. The with-junit option is need when
> you want to run the tests and should point to the junit jar.
> Then run
> make
> make javahl
> make install
> make install-javahl
> [make check-javahl]
> That should give you a usable javahl binding."
>
> ========== END QUOTE
$ ./configure --with-swig --with-python=/usr/bin/python2.2
--with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config
--with-apr-util=/usr/bin/apu-config --enable-javahl --with-jdk=$JAVA_HOME

OK

make - OK
make javahl - OK

Now comes:
# make install
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c -d
/usr/local/lib
cd subversion/libsvn_subr ; /bin/sh
/usr/src/redhat/BUILD/subversion-1.1.3/libtool --mode=install
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
libsvn_subr-1.la /usr/local/lib/libsvn_subr-1.la
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
.libs/libsvn_subr-1.so.0.0.0 /usr/local/lib/libsvn_subr-1.so.0.0.0
(cd /usr/local/lib && rm -f libsvn_subr-1.so.0 && ln -s
libsvn_subr-1.so.0.0.0 libsvn_subr-1.so.0)
(cd /usr/local/lib && rm -f libsvn_subr-1.so && ln -s
libsvn_subr-1.so.0.0.0 libsvn_subr-1.so)
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
.libs/libsvn_subr-1.lai /usr/local/lib/libsvn_subr-1.la
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
.libs/libsvn_subr-1.a /usr/local/lib/libsvn_subr-1.a
ranlib /usr/local/lib/libsvn_subr-1.a
chmod 644 /usr/local/lib/libsvn_subr-1.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
cd subversion/libsvn_delta ; /bin/sh
/usr/src/redhat/BUILD/subversion-1.1.3/libtool --mode=install
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
libsvn_delta-1.la /usr/local/lib/libsvn_delta-1.la
libtool: install: error: cannot install `libsvn_delta-1.la' to a
directory not ending in /usr/lib

Do you know what this one is about?
This step probably isn't necessary since I've already installed svn from
the binary rpm created by building the source RPM.

However, the same problem comes up if I just skip over this step and go
to make install-javahl

# make install-javahl
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c -d
/usr/local/lib/svn-javahl
/usr/local/j2sdk1.4.2/bin/jar cf
subversion/bindings/java/javahl/svn-javahl.jar -C
subversion/bindings/java/javahl/classes org;
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c -m 644
subversion/bindings/java/javahl/svn-javahl.jar /usr/local/lib/svn-javahl;
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c -d
/usr/local/lib/svn-javahl/include
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c -d
/usr/local/lib
cd subversion/libsvn_subr ; /bin/sh
/usr/src/redhat/BUILD/subversion-1.1.3/libtool --mode=install
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
libsvn_subr-1.la /usr/local/lib/libsvn_subr-1.la
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
.libs/libsvn_subr-1.so.0.0.0 /usr/local/lib/libsvn_subr-1.so.0.0.0
(cd /usr/local/lib && rm -f libsvn_subr-1.so.0 && ln -s
libsvn_subr-1.so.0.0.0 libsvn_subr-1.so.0)
(cd /usr/local/lib && rm -f libsvn_subr-1.so && ln -s
libsvn_subr-1.so.0.0.0 libsvn_subr-1.so)
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
.libs/libsvn_subr-1.lai /usr/local/lib/libsvn_subr-1.la
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
.libs/libsvn_subr-1.a /usr/local/lib/libsvn_subr-1.a
ranlib /usr/local/lib/libsvn_subr-1.a
chmod 644 /usr/local/lib/libsvn_subr-1.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
cd subversion/libsvn_delta ; /bin/sh
/usr/src/redhat/BUILD/subversion-1.1.3/libtool --mode=install
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
libsvn_delta-1.la /usr/local/lib/libsvn_delta-1.la
libtool: install: error: cannot install `libsvn_delta-1.la' to a
directory not ending in /usr/lib
make: *** [install-fsmod-lib] Error 1

Somehow, the RPM installer figures out where to put the lib but the
make-install run off the same sources does not.

After change to makefile, the installs all go well until:
----------------------------------------------------------------------
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c -d /usr/lib
cd subversion/bindings/java/javahl/native ; /bin/sh
/usr/src/redhat/BUILD/subversion-1.1.3/libtool --mode=install
/usr/src/redhat/BUILD/subversion-1.1.3/ac-helpers/install-sh -c
libsvnjavahl-1.la /usr/lib/libsvnjavahl-1.la
libtool: install: error: cannot install `libsvnjavahl-1.la' to a
directory not ending in /usr/local/lib
make: *** [install-javahl-lib] Error 1
Received on Sun Feb 13 06:16:09 2005

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

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