Now everything is working ok. I guessed that ld.so.hints was the problem but I tought it was to easy :P.
Thanks. On Sat, Dec 06, 2008 at 09:01:24PM -0700, Matt Jibson wrote: > You probably need a /var/run/ld.so.hints file (well, > /var/www/var/run/ld.so.hints). Make one with ldconfig(8). > > On Sat, Dec 6, 2008 at 6:07 PM, Abel Camarillo <[EMAIL PROTECTED]> wrote: > > Hi misc@: > > > > I am trying to run gitweb in my openbsd 4.3 server, but the problem is that > > /usr/local/bin/git needs to be copied under the chroot I have read > > > > http://www.openbsd.org/faq/faq10.html#httpdchroot > > > > and have copied /usr/local/bin/git and all of the libs that ldd says > > > > $ ldd /usr/local/bin/git > > /usr/local/bin/git: > > Start End Type Open Ref GrpRef Name > > 0000000000000000 0000000000000000 exe 1 0 0 /usr/local/bin/git > > 00000000456bc000 0000000045afc000 rlib 0 1 0 > > /usr/local/lib/libcurl.so.8.0 > > 000000004fea7000 00000000502bb000 rlib 0 2 0 /usr/lib/libz.so.4.1 > > 00000000478cd000 0000000047dbe000 rlib 0 3 0 > > /usr/local/lib/libiconv.so.4.0 > > 000000004c190000 000000004c6d8000 rlib 0 2 0 > > /usr/lib/libcrypto.so.13.0 > > 0000000043ee3000 00000000443b5000 rlib 0 1 0 > > /usr/lib/libc.so.43.0 > > 000000004a0e3000 000000004a51c000 rlib 0 1 0 > > /usr/lib/libssl.so.11.0 > > 000000004b06e000 000000004b478000 rlib 0 2 0 > > /usr/local/lib/libintl.so.4.0 > > 000000004f81d000 000000004fc50000 rlib 0 1 0 > > /usr/local/lib/libidn.so.16.30 > > 0000000042400000 0000000042400000 rtld 0 1 0 /usr/libexec/ld.so > > > > to their respective dirs under the chroot, but simply (running from the > > chroot, > > I temporary copied /bin/ksh to be able to run commands) > > > > # /usr/local/bin/git > > /usr/local/bin/git: can't load library 'libcurl.so.8.0' > > > > git doesn't run. > > > > # ls -alsh /var/www/usr/lib/ /var/www/usr/local/lib /var/www/usr/libexec/ > > usr/lib/: > > total 25472 > > 4 drwxr-xr-x 2 root daemon 512B Dec 6 03:37 . > > 4 drwxr-xr-x 7 root daemon 512B Dec 6 04:14 .. > > 8448 -r--r--r-- 1 root daemon 4.1M Dec 6 03:41 libc.so.43.0 > > 14144 -r--r--r-- 1 root daemon 6.9M Dec 6 03:42 libcrypto.so.13.0 > > 2528 -r--r--r-- 1 root daemon 1.2M Dec 6 03:42 libssl.so.11.0 > > 344 -r--r--r-- 1 root daemon 172K Dec 6 03:41 libz.so.4.1 > > > > usr/libexec/: > > total 108 > > 4 drwxr-xr-x 2 root daemon 512B Dec 6 03:37 . > > 4 drwxr-xr-x 7 root daemon 512B Dec 6 04:14 .. > > 100 -r-xr-xr-x 1 root daemon 48.0K Dec 6 03:41 ld.so > > > > usr/local/lib: > > total 3280 > > 4 drwxr-xr-x 2 root daemon 512B Dec 6 03:37 . > > 4 drwxr-xr-x 5 root daemon 512B Dec 6 03:37 .. > > 640 -rw-r--r-- 1 root daemon 289K Dec 6 03:41 libcurl.so.8.0 > > 2048 -rw-r--r-- 1 root daemon 1005K Dec 6 03:42 libiconv.so.4.0 > > 480 -rw-r--r-- 1 root daemon 209K Dec 6 03:42 libidn.so.16.30 > > 104 -rw-r--r-- 1 root daemon 50.1K Dec 6 03:42 libintl.so.4.0 > > # > > > > Any ideas suggestions? or should I forget about chroot and running it in a > > non-chroot apache (using httpd -u, it works perfectly) ? > > (but the server host other things than gitweb and I don't wish to remove > > chroot) > > > > Thanks in advance.

