Hello Serban,

Try to put libraries libtiff libpng etc... in $CHROOT/usr/lib and
check the $CHROOT/usr/libexec/ld.so.hints is presented :)

Hope it helps... :)

Friday, May 27, 2005, 10:03:37 AM, you wrote:

> Hello!

> I'm playing with a fresh install of OpenBSD 3.7
> running Apache in a chroot jail (/var/www/). My
> website requires ImageMagick to generate thumbnails
> and scaled images, so I installed the
> ImageMagick-6.0.0-2p3-no_x11.tgz package. I copied
> /usr/local/bin/convert into /var/www/bin/.
> Accordingly, I set up an environment for convert with
> the hierarchy of all its dynamic library dependencies
> retrieved from ldd:


> /usr/local/bin/convert:
>         Start    End      Type Ref Name
>         00000000 00000000 exe   1 
> /usr/local/bin/convert
>         05782000 2581e000 rlib  1 
> /usr/local/lib/libMagick.so.6.1
>         01eb6000 21ebc000 rlib  2 
> /usr/local/lib/libjbig.so.1.2
>         0f64e000 2f659000 rlib  2 
> /usr/local/lib/liblcms.so.1.12
>         0f91c000 2f93f000 rlib  2 
> /usr/local/lib/libtiff.so.36.1
>         04aa5000 24ab4000 rlib  2 
> /usr/local/lib/libjasper.so.1.0
>         018eb000 218f1000 rlib  2 
> /usr/local/lib/libjpeg.so.62.0
>         04d4e000 24d55000 rlib  2 
> /usr/local/lib/libpng.so.4.1
>         0b40d000 2b411000 rlib  2 
> /usr/local/lib/libbz2.so.10.2
>         009b7000 209ea000 rlib  2 
> /usr/local/lib/libxml2.so.9.0
>         0245b000 22537000 rlib  2 
> /usr/local/lib/libiconv.so.4.0
>         0a49b000 2a4a3000 rlib  3 
> /usr/lib/libz.so.4.0
>         0df80000 2df87000 rlib  4 
> /usr/lib/libm.so.2.0
>         056bb000 256f2000 rlib  1 
> /usr/lib/libc.so.34.2
>         0aa86000 0aa86000 rtld  1  /usr/libexec/ld.so


> However, convert does not seem to find those
> libraries. Additionally, convert complains about a
> different library every time it is run inside the
> chroot. For example:


> # convert
> convert: can't load library 'libtiff.so.36.1'
> # convert
> convert: can't load library 'libpng.so.4.1'
> # convert
> convert: can't load library 'libjbig.so.1.2'
> # convert
> convert: can't load library 'libpng.so.4.1'
> # convert
> convert: can't load library 'libbz2.so.10.2'
> # convert
> convert: can't load library 'liblcms.so.1.12'
> # convert  
> convert: can't load library 'libjasper.so.1.0'
> # convert  
> convert: can't load library 'libxml2.so.9.0'


> What must I do for convert to find those libraries and
> run successfully? Thanks for any feedback!

> Serban Giuroiu
> http://javatheory.net
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 



-- 
Dennis Nasarov
http://pheonix.sysattack.com/

Reply via email to