[scponly] library issues with scponlyc and subversion

Kaleb Pederson kpederson at mail.ewu.edu
Fri Jun 9 19:56:44 EDT 2006


On Friday 09 June 2006 1:16 pm, Ensel Sharon wrote:
> > 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

Hmm... that looks a little suspicious:

> 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 ...

Ok, this is probably the root of the problem.  If you haven't already you will 
need to create the hints file (/etc/ld.so.conf -- perhaps at a different 
location in freebsd?) and make sure that it lists /usr/local and any other 
lib directories that are not automatically searched.  These files are fairly 
critical if you need shared libraries.

Once ld.so.conf is configured, then you need to get 
`ldconfig -v -r /home -f /home/etc/ld.so.conf` to correctly list all the 
libraries that are within the chroot (or run ldconfig from within the 
chroot... but then you would have yet another program to copy into the 
chroot).

> > 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)

Once ldconfig has been sucessfully run, all of these should go away and 
everything should "just work" :)

> Is there a quick and elegant way to fix this ?

Hmm... find a program that's really good at creating chroots?

--Kaleb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ccs.neu.edu/pipermail/scponly/attachments/20060609/51dc0cf7/attachment.bin


More information about the scponly mailing list