Hi list,
after upgrading to 5.0 (no fresh install), I've encountered somewhat of a
puzzle. I use syweb on my webserver and an rrdtool binary in the /bin directory
in the chroot. This used to work fine, but now the updated binary won't run in
the chroot.
This is what ldd tells me on the main system:
# ldd bin/rrdtool
bin/rrdtool:
Start End Type Open Ref GrpRef Name
1c000000 3c004000 exe 1 0 0 bin/rrdtool
05fc8000 25fe5000 rlib 0 1 0 /usr/local/lib/librrd.so.3.0
04b36000 24b4e000 rlib 0 2 0
/usr/X11R6/lib/libfreetype.so.18.0
04d7e000 24d85000 rlib 0 2 0 /usr/local/lib/libpng.so.12.0
07317000 2731e000 rlib 0 2 0 /usr/lib/libz.so.4.1
0f7a8000 2f7ac000 rlib 0 2 0
/usr/local/lib/libart_lgpl_2.so.5.20
0d3d5000 2d3de000 rlib 0 3 0 /usr/lib/libm.so.7.0
0703d000 2706b000 rlib 0 1 0 /usr/lib/libc.so.60.1
025a4000 025a4000 rtld 0 1 0 /usr/libexec/ld.so
I've copied all those libraries to the appropriate places in the chroot, but
when I try to run rrdtool, I get
# chroot -u www /var/www/ /bin/rrdtool
/bin/rrdtool: can't load library 'libpng.so.8.0'
Note the different version number (i.e. a library that the binary is not even
linked to according to ldd). I get similar things for libfreetype and libm. The
same thing happens when run directly in the webserver.
It gets even more puzzling when I copy ldd into the webserver chroot and try to
run it on rrdtool:
# chroot -u www /var/www/ /bin/ldd /bin/rrdtool
/bin/rrdtool:
/bin/rrdtool: can't load library 'libm.so.5.0'
/bin/rrdtool: exit status 4
ldd works fine on other binaries in the chroot. Note again the library version
that rrdtool isn't linked against.
I've tried restarting httpd, rebooting, compiling rrdtool myself and using that
binary, all with the same result. I have no idea where it's getting those old
library versions from. I've added the output of pkg_info below and would
appreciate any pointers.
Thanks,
Lars
GeoIP-1.4.7 find the country where IP address/hostname originates from
ImageMagick-6.6.6.10p0-no_x11 image processing tools
analog-6.0p1 extremely fast program for analysing WWW logfiles
apr-1.2.11p5 Apache Portable Runtime
apr-util-1.2.10p5 companion library to APR
arping-2.09 ARP level ping utility
arpwatch-2.1a15p1 monitor arp & rarp requests
autoconf-2.52p4 automatically configure source code on many Un*x platforms
autoconf-2.58p3 automatically configure source code on many Un*x platforms
autoconf-2.59p3 automatically configure source code on many Un*x platforms
autoconf-2.61p3 automatically configure source code on many Un*x platforms
autoconf-2.62p0 automatically configure source code on many Un*x platforms
automake-1.9.6p8 GNU standards-compliant Makefile generator
bash-4.2.10 GNU Bourne Again Shell
bonnie++-1.03a enhanced performance test of filesystem I/O
bzip2-1.0.6 block-sorting file compressor, unencumbered
castget-1.0.1p0 command-line podcast downloader
cronolog-1.6.2p0 web log rotation program
curl-7.21.7 get files from FTP, Gopher, HTTP or HTTPS servers
cvsps-2.1 generate patchsets from CVS repositories
cyrus-sasl-2.1.23p7 RFC 2222 SASL (Simple Authentication and Security Layer)
dailystrips-1.0.28 script to download comics from the web
db-4.6.21p4 Berkeley DB package, revision 4
dhcping-1.2 dhcp daemon ping program
djvulibre-3.5.24p0-no_x11 view, decode and encode DjVu files
dovecot-2.0.13p5 compact IMAP/POP3 server
e2fsprogs-1.41.4p7 utilities to manipulate ext2 filesystems
elinks-0.11.7p6 full-featured text WWW browser
fedora_base-4.0p8 Linux compatibility package based on Fedora Core 4
femail-0.97p1 simple SMTP client
femail-chroot-0.97p3 simple SMTP client for chrooted apache
fftw3-3.2.2 C routines for computing the Discrete Fourier Transform
fftw3-common-3.2.2 common files for the fftw3 packages
freetype-1.3.1p3 free and portable TrueType font rendering engine
gcc-3.3.6p0v0 GNU compiler collection: core C compiler
gd-2.0.35p0 library for dynamic creation of images
gettext-0.18.1p0 GNU gettext
ghc-7.0.4p0 compiler for the functional language Haskell
ghostscript-9.02p0-no_x11 GNU PostScript interpreter
ghostscript-fonts-8.11p2 35 standard PostScript fonts with Adobe name aliases
git-1.7.6p0 GIT - Tree History Storage Tool
gkrellm-server-2.3.5p0 single process stack of system monitors for GTK+2
(server)
glib2-2.28.8p1 general-purpose utility library
gmake-3.82 GNU make
gmp-5.0.2p0 library for arbitrary precision arithmetic
gtar-1.26p0 GNU version of the traditional tape archiver
hackdata-3.4.3 common data for the nethack/slash ports
help2man-1.29p0 GNU help2man
hydra-5.4p1 parallelized login hacker
id3lib-3.8.3p3 library for manipulating ID3v1 and ID3v2 tags
ijs-0.35 raster image transmission library
ipcheck-0.207p4 fully compliant DynDNS.org client
irssi-0.8.15 modular IRC client with many features (ipv6,socks,proxy)
jasper-1.900.1p1 reference implementation of JPEG-2000
jbigkit-1.6p2 lossless image compression library
jpeg-8c IJG's JPEG compression utilities
lcms-1.18a color management library
lftp-4.2.3 shell-like command line ftp and sftp client
libart-2.3.21 high-performance 2D graphics library
libdnet-1.12p2 portable low-level networking library
libgamin-0.1.10p4 file and directory monitoring system
libgcrypt-1.4.6p1 crypto library based on code used in GnuPG
libghttp-1.0.9p2 GNOME http client library
libgpg-error-1.10 error codes for GnuPG related software
libiconv-1.13p2 character set conversion library
libidn-1.22 internationalized string handling
libltdl-1.5.26p0 GNU libtool system independent dlopen wrapper
libnet-1.0.2ap2 raw IP packet construction library
libnet-1.1.2.1p0 raw IP packet construction library
libogg-1.2.2 Ogg bitstream library
librsync-0.9.7p1 Library for delta compression of streams
libsigc++-2.2.10 callback framework for C++
libtool-1.5.26p4 generic shared library support script
libtorrent-0.12.6p0 BitTorrent library written in C++
libvorbis-1.3.2 audio compression codec library
libxml-2.7.8p2 XML parsing library
logsentry-1.1.1p3 logfile auditing tool
lsof-4.83p6 list information about open files
lua-5.1.4p1 powerful, light-weight programming language
lzo-1.08p1 portable speedy lossless data compression library
lzo2-2.05 portable speedy lossless data compression library
lzop-1.02rc1 fast file compressor similar to gzip
metaauto-1.0 wrapper for gnu auto*
mod_bandwidth-2.1p3 bandwidth limiter for Apache
mod_gzip-1.3.26.1ap5 transparently compress Apache output
mod_perl-1.31p3 module that embeds a Perl interpreter into Apache
monit-4.10.1p2 monitoring and managing daemons utility
neon-0.28.6p0 HTTP and WebDAV client library, with C interface
nethack-3.4.3p4-no_x11 dungeon explorin', hackin', game. Piece of cake
netpbm-10.35.80 toolkit for converting images between different formats
netperf-2.3p3 Network performance benchmark
nmap-5.51p0 scan ports and fingerprint stack of network hosts
ntp-4.2.6pl2p7 Network Time Protocol reference implementation
p5-Apache-MP3-3.05p3 mod_perl class for generating browsable MP3 directory lists
p5-Crypt-SSLeay-0.58 library to provide LWP https support via OpenSSL
p5-Devel-Symdump-2.07p1 module for inspecting Perl's symbol table
p5-Digest-HMAC-1.02p0 interface to HMAC Message-Digest Algorithms
p5-Digest-SHA1-2.13p1 module to calculate SHA1 digests
p5-Error-0.17016p0 error/exception handling in an OO-ish way
p5-HTML-Parser-3.68 modules to parse and extract information from HTML
p5-HTML-Tagset-3.20p0 data tables useful for parsing HTML
p5-HTTP-GHTTP-1.07p3 perl interface to the GNOME GHTTP library
p5-IO-All-0.41 universal I/O to everything
p5-IO-String-1.08p1 emulate IO::File interface for in-core strings
p5-MP3-Info-1.24p0 read MPEG1-Layer3 tags
p5-Net-SSLeay-1.36p0 perl module for using OpenSSL
p5-Parallel-ForkManager-0.7.9 simple parallel processing fork manager
p5-Time-TimeDate-1.20p0 library for parsing and formatting dates and times
p5-URI-1.54p0 library to parse Uniform Resource Identifiers
p5-libvorbis-0.05p2 Perl extension for Ogg Vorbis streams
p5-libwww-5.837 library for WWW access in Perl
partial-p5-Compress-Raw-Zlib-2.011 low-level interface to the zlib compression
library
partial-p5-Compress-Zlib-2.011 perl interface to the zlib compression library
partial-p5-IO-Compress-Base-2.011 base class for IO::Compress modules
partial-p5-IO-Compress-Zlib-2.011 read and write gzip and zip files/buffers
partial-syweb-0.55p1 web frontend to symon
pcre-8.12p0 perl-compatible regular expression library
pftop-0.7p7 curses-based real time state and rule display for pf
php-5.2.17p5 server-side HTML-embedded scripting language
php-gd-5.2.17p4 image manipulation extensions for php5
php-sqlite-5.2.17p3 sqlite database access extensions for php5
png-1.5.4 library for manipulating PNG images
popt-1.7p1 getopt(3)-like library with a number of enhancements
python-2.5.4p13 interpreted object-oriented programming language
python-2.7.1p9 interpreted object-oriented programming language
quirks-1.53 exceptions to pkg_add rules
rdiff-backup-1.2.8p3 incremental backup
rrdtool-1.2.30p3 system to store and display time-series data
rsync-3.0.8p0 mirroring/synchronization over low bandwidth links
rtorrent-0.8.6p2 ncurses BitTorrent client based on libTorrent
ruby-1.8.7.352p1 object oriented script language with threads
ruby-gems-1.3.7p2 package management framework for the Ruby language
ruby-rake-0.8.7p2 ruby make
ruby-sqlite3-1.3.3 access a SQLite3 database from ruby
screen-4.0.3p2 multi-screen window manager
smartmontools-5.41 control and monitor storage systems using SMART
sqlite-2.8.17p1 Embedded SQL implementation
sqlite3-3.7.5 embedded SQL implementation
subversion-1.6.17p2 subversion revision control system
symon-2.83p0 active monitoring tool
syweb-0.63p0 web frontend to symon
t1lib-5.1.0p2 Type 1 rasterizer library for UNIX/X11
tcl-8.4.19p1 Tool Command Language
tiff-3.9.5 tools and library routines for working with TIFF images
tig-0.17 ncurses GIT repository browser
tk-8.4.19p3 graphical toolkit for Tcl
unzip-6.0p0 extract, list & test files in a ZIP archive
vim-7.3.154p1-no_x11 vi clone, many additional features
wget-1.12p1 retrieve files from the web via HTTP, HTTPS and FTP
xz-5.0.3p1 LZMA compression and decompression tools