On 2007/02/11 00:24, doc Hyde wrote: > I have already donne this, here is my output: > # ldd /usr/local/bin/rrdtool
That is only part of what I said; > > It works with the following files copied in (obviously adjust for > > machine arch etc). Found by a combination of ldd /usr/local/bin/rrdtool, > > and 'sudo ktrace -i chroot /var/www /cgi-bin/mailgraph.cgi' - each > > time it fails, look at the error messages and/or kdump output, > > copy the lib in, and try again. Notice this bit which I wrote: "each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again." > All copied in my jailed /var/www: If that's everything, you are missing a whole stack of Perl files. > # sudo ktrace -i chroot /var/www /cgi-bin/mailgraph/mailgraph.cgi > Can't load > '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for hmm, I think that one's on the list I made which you appear to have ignored... I'll describe the process in a little bit more detail for anyone who wants to learn: mkdir, copy the wanted file in (/usr/loc..../RRDs.so), repeat, copy the next in, etc. If it just says 'Unknown error' without useful information, run the script chrooted with ktrace, then kdump|more, search for the error message, and page back over the next few hundred lines and you'll probably see what file it failed to load (probably a .so), copy that in, repeat until it works. (with mailgraph, that's the easy bit - then you get to work out that what it's doing when it just sits there apparently doing nothing is it's actually tail -f'ing the log ;-)

