Hi misc@ & ports@

I'm migrating boxes from 3.9 to 4.0 and was unable to run mailgraph on
4.0/i386.

# /usr/local/bin/mailgraph -d -l /var/log/maillog --rbl-is-spam
Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' 
for module RRDs: Cannot load specified object at 
/usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230.
 at /usr/local/bin/mailgraph line 287
Compilation failed in require at /usr/local/bin/mailgraph line 287.
BEGIN failed--compilation aborted at /usr/local/bin/mailgraph line 287.


Perl is not yet one of my languages, so I checked a few basics
(permissions, mounts, and wotnot as below) and did'nae come up with
anything obvious.

Google said this was due to ldconfig on 3.9:
http://archives.neohapsis.com/archives/openbsd/2006-05/3009.html

I cannae mind having to dae this on 3.9/i386, nevertheless:

# ldconfig /usr/lib /usr/local/lib /usr/X11R6/lib
# /usr/local/bin/mailgraph -d -l /var/log/maillog --rbl-is-spam
$ ps ax | fgrep mailgraph
22431 ??  Is      0:11.94 /usr/bin/perl -w /usr/local/bin/mailgraph -d -l 
/var/log/maillog --rbl-
$ /sbin/ldconfig -r | fgrep fontconfig
        73:-lfontconfig.3.0 => /usr/X11R6/lib/libfontconfig.so.3.0



I have not yet applied errata 005 for ld.so

Any pointers would be great, eg: do I have to place /usr/X11R6/lib in
$shlib_dirs variable in /etc/rc.conf.local? I did'nae have xbase40.tgz
installed, so had to untar it as part of the install of mailgraph. Would
this have "fixed it selv" on the next boot? Thanks.

$ ls -lh /usr/local/bin/mailgraph
-r-xr-xr-x  1 root  bin  24.6K Sep  2 12:27 /usr/local/bin/mailgraph*

$ ls -lh /usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so
-rwxr-xr-x  1 root  bin   120K Sep  2 20:41 
/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so*

$ ls -lh  /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm
-r--r--r--  1 root  wheel  27.5K Sep 17 02:17 
/usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm

$ mount | fgrep /usr
/dev/wd0i on /usr type ffs (local, noatime, nodev)
/dev/wd0j on /usr/local type ffs (local, noatime, nodev)


$ grep ^use /usr/local/bin/mailgraph
use Carp;
use Symbol;
use Time::Local;
use strict;
use vars qw($VERSION);
use RRDs;
use strict;
use File::Tail;
use Getopt::Long;
use POSIX 'setsid';

$ pkg_info
apg-2.2.3p0         automated password generator
colorls-3.9         ls that can use color to display file attributes
expat-2.0.0         XML 1.0 parser written in C
expect-5.43.0p0-no_tk sophisticated scripter based on Tcl/Tk
gd-2.0.33p3         library for dynamic creation of images
gdbm-1.8.3p0        GNU dbm
gettext-0.14.5p1    GNU gettext
jpeg-6bp3           IJG's JPEG compression utilities
libiconv-1.9.2p3    character set conversion library
links-0.99          text browser, displays while downloading
maildrop-1.7.0      local mail delivery agent with filtering abilities
mailgraph-1.12      a RRDtool frontend for Postfix statistics
mod_gzip-1.3.26.1ap0 transparently compress Apache output
mutt-1.5.12         tty-based e-mail client, development version
nsping-0.8          DNS ping
p5-File-Tail-0.99.3 library for reading from continuously updated files
passwdqc-0.1        plugin password complexity checker for passwd(1)
pcre-6.4p1          perl-compatible regular expression library
png-1.2.12          library for manipulating PNG images
postfix-2.3.2       fast, secure sendmail replacement
rrdtool-1.0.49p3    system to store and display time-series data
squid-2.5.STABLE13  WWW and FTP proxy cache and accelerator
tcl-8.4.7p1         Tool Command Language
vim-7.0.42-no_x11   vi clone, many additional features


$ cat -n /usr/local/bin/mailgraph | fgrep 287
   287  use RRDs;

$ cat -n /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm | egrep '230|231'
   230      my $libref = dl_load_file($file, $module->dl_load_flags) or
   231          croak("Can't load '$file' for module $module: ".dl_error());

$ uname -a
OpenBSD teak.kepax.co.uk 4.0 GENERIC#1107 i386

Reply via email to