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

Re: [PATCH] On the 'ra-git' branch: update to libgit2 v0.22

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 1 Apr 2015 13:55:55 +0100

Philip Martin wrote:
> Julian Foad <julianfoad_at_btopenworld.com> writes:
>
>> --with-libgit2=/home/julianfoad/.local/libgit2-0.20.0
>
>> /usr/bin/ld: warning: libgit2.so.0, needed by
>> //nobackup/home/julianfoad/build/subversion-p/subversion/libsvn_ra_git/.libs/libsvn_ra_git-1.so.0,
>> not found (try using -rpath or -rpath-link)
>> //nobackup/home/julianfoad/build/subversion-p/subversion/libsvn_ra_git/.libs/libsvn_ra_git-1.so.0:
>> undefined reference to `git_remote_load'
>
> If you run
>
> objdump -x subversion/libsvn_ra_git/.libs/libsvn_ra_git-1.so
>
> I think you will see a NEEDED for libgit2 but that the RPATH does not
> include /home/julianfoad/.local/libgit2-0.20.0/lib.

You're right.

> You can fix it by setting LD_LIBRARY_PATH. Or by using something like
> LDFLAGS=-Wl,-rpath,/home/julianfoad/.local/libgit2-0.20.0/lib when you
> invoke configure. Or by installing libgit2 somewhere the linker looks
> by default.

Thanks for debugging my build problems again, Philip.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/libgit2-0.20.0/lib
configure [...] --with-libgit2=$HOME/.local/libgit2-0.20.0

works.

configure [...] --with-libgit2=$HOME/.local/libgit2-0.20.0 \
  LDFLAGS=-Wl,-rpath,$HOME/.local/libgit2-0.20.0/lib

also works.

Can we make 'configure --with-libgit2' do one of those automatically?

- Julian
Received on 2015-04-01 15:03:05 CEST

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

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