[scponly] library issues with scponlyc and subversion
Ensel Sharon
user at dhp.com
Fri Jun 9 16:16:02 EDT 2006
On Thu, 8 Jun 2006, Kaleb Pederson wrote:
> On Thursday 08 June 2006 9:21 pm, Ensel Sharon wrote:
> > and it configued and made just fine. the subversion commands and their
> > supporting libraries (or at least, all but one) were copied into my chroot
> > jail that I use with scponlyc.
>
> Out of curiosity, how did you verify that all libraries, except that one, were
> present?
Well, I didn't - but I noticed there were all sorts of new
libsvn... libraries in my chroot, so certainly some got put into place. I
am concentrating on this one because it is being complained about.
> > # ssh user at hostname svn
> > Password:
> > /libexec/ld-elf.so.1: Shared object "libaprutil-1.so.0" not found,
> > required by "libsvn_subr-1.so.0"
>
> Ok. I'm not really familiar with FreeBSD, but I'll assume it's similar to
> Linux and that the following questions are relevant:
>
> 1) Did you run ldconfig to rebuild the ld library cache?
> 2) Can you chroot into /home and then execute svn? (you might have to
> copy /bin/sh, but it's usually the best test)
No, I cannot. I get the same error:
# chroot /home
csh: Cannot open /etc/termcap.
csh: using dumb terminal settings.
%
%svn
/libexec/ld-elf.so.1: Shared object "libaprutil-1.so.0" not found,
required by "libsvn_subr-1.so.0"
%
> 3) What does 'ldconfig -v -r /home' give you? If libaprutil-1.so.0 is
> present, then there indeed shouldn't be any problems, assuming ldconfig was
> run prior to the
# ldconfig -v -r /home|grep apr
9:-lapr-1.0 => ./usr/local/lib/libapr-1.so.0
10:-laprutil-1.0 => ./usr/local/lib/libaprutil-1.so.0
> 4) What does ldd show you when run within the chroot?
ldd /usr/local/bin/svn | grep not
libaprutil-1.so.0 => not found (0x0)
libdb-4.2.so.2 => not found (0x0)
libexpat.so.5 => not found (0x0)
libiconv.so.3 => not found (0x0)
libapr-1.so.0 => not found (0x0)
libintl.so.6 => not found (0x0)
libexpat.so.5 => not found (0x0)
So ... I ran:
cp /usr/local/lib/libaprutil-1.so.0 usr/local/lib ; cp
/usr/local/lib/libdb-4.2.so.2 usr/local/lib ; cp
/usr/local/lib/libexpat.so.5 usr/local/lib ; cp
/usr/local/lib/libiconv.so.3 usr/local/lib ; cp
/usr/local/lib/libapr-1.so.0 usr/local/lib ; cp
/usr/local/lib/libintl.so.6 usr/local/lib ; cp
/usr/local/lib/libexpat.so.5 usr/local/lib
and the behavior is exactly the same. ldd shows that list of libraries as
"not found" and when I try to run svn over ssh I get the same error about
Shared object "libaprutil-1.so.0" not found.
I even tried to ldconfig inside of the chroot, but the hints file is not
there and creating a /var/run tree inside of my chroot is starting to get
a little silly ...
Is there a quick and elegant way to fix this ?
More information about the scponly
mailing list