bogofilter-static-1.0.0-1 RPM problem (CentOS 3.6)

David Relson relson at osagesoftware.com
Thu Dec 22 20:42:00 CET 2005


On Thu, 22 Dec 2005 13:12:36 -0500
bogo at escom.com wrote:

> ESCOM supports customers on a variety of platforms including RH 7.1, RH 9, 
> RHEL, Fedora 3, and we're testing CentOS 3.6 now and probably 4.x later on.
> When I tried to install bogofilter-static-1.0.0-1 on CentOS 3.6 I got the
> following error:
> 
>   # rpm -ivh bogofilter-static-1.0.0-1.i586.rpm
>   error: bogofilter-static-1.0.0-1.i586.rpm: rpmReadSignature failed: region trailer: BAD, tag 15872 type 2047 offset 20480 count 4096
>   error: bogofilter-static-1.0.0-1.i586.rpm cannot be installed
> 
> BTW, the same RPM installs and runs fine on Fedora 3, but that is the only 
> platform that has worked for me.  

FWIW, the bogofilter rpm was built on a Mandriva 2006.0 system with
rpm-4.4.2-4mdk.i586.rpm installed.  I've BCC'd one of the rpm
developers with this message to see what light he can shed.


> In separate messages to David Relson, 
> I documented that this RPM installs on RH9, but bogoutil dumps core when 
> trying to create wordlist.db from a text dump, e.g.,
> 
>   cat wordlist.txt | bogoutil -l wordlist.db
> 
> I note that CentOS is running rpm-4.2.3-24_nonptl, which would appear to be
> newer than the RH 9 rpm-4.2-0.69.  My guess is that this is some sort of
> incompatibility with the CentOS rpm executable.

Given that there may be a file/permission issue involved, try a new
directory and strace to see what happens:

   mkdir new
   strace -feopen bogoutil -l new/wordlist.db < wordlist.txt

Alternately, add flags "-C -xd -vv" to display messages about what
bogoutil is doing.  Here're the results on my machine:

[relson at osage src]$ mkdir new
[relson at osage src]$ bogoutil -C -xd -vv -l new/wordlist.db <
wordlist.txt probing "new" and "wordlist.db" for
environment...T_DONT_KNOW db_version: Header version 4.2, library
version 4.2 [pid 10258] DB->open(db=0x8071668, file=new/wordlist.db,
database=NIL, type=1, flags=0=, mode=0664) -> 2 No such file or
directory [pid 10258] DB->set_flags(db=0x8071668, flags=0x1=DB_CHKSUM )
-> 0 Successful return: 0 [pid 10258] DB->open(db=0x8071668,
file=new/wordlist.db, database=NIL, type=1, flags=0x1001=DB_CREATE
DB_EXCL , mode=0664) -> 0 Successful return: 0 DB->get_byteswapped:
false DB->fd: 3 DB->stat success, pagesize: 4096
DB->close(new/wordlist.db, 0) 4181 tokens loaded

HTH,

David




More information about the Bogofilter mailing list