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

David Relson relson at osagesoftware.com
Thu Dec 22 21:13:39 CET 2005


On Thu, 22 Dec 2005 13:02:39 -0800
Chris Wilkes wrote:

> On Thu, Dec 22, 2005 at 01:12:36PM -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.  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.
> 
> What processor is this on?  Also what version of DB4?
> 
> I ask as had some NPTL problems on an AMD K6 with the default db4 rpm,
> issue (poorly) outlined here:
>   http://thread.gmane.org/gmane.mail.bogofilter.general/8305
> and see this bug related to NPTL (not sure if this is your issue):
>   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933
> 
> Chris

Al & Chris,

My static rpm was built with BerkeleyDB 4.2.52.  Using "ls -l" gives
the following info for the rpm and the files it installs..

[root at osage 100-rel]# ls -l bogofilter-static-1.0.0-1.i586.rpm 
-rw-r--r--  1 relson relson 2648849 Nov 30 19:02 bogofilter-static-1.0.0-1.i586.rpm

[root at osage 100-rel]# rpm -ivh bogofilter-static-1.0.0-1.i586.rpm
Preparing...                ########################################### [100%]
   1:bogofilter-static      ########################################### [100%]

[root at osage 100-rel]# bogoutil --version
bogoutil version 1.0.0
    Database: Sleepycat Software: Berkeley DB 4.2.52: (August  1, 2005) AUTO-XA
Copyright (C) 2002-2005 Gyepi Sam, David Relson, Matthias Andree

bogofilter comes with ABSOLUTELY NO WARRANTY.  This is free software, and
you are welcome to redistribute it under the General Public License.  See
the COPYING file with the source distribution for details.

[root at osage 100-rel]# ls -l /usr/bin/bogo*
lrwxrwxrwx  1 root root      26 Dec 22 15:06 /usr/bin/bogofilter -> /usr/bin/bogofilter_static*
-rwxr-xr-x  1 root root 1528624 Nov 30 19:02 /usr/bin/bogofilter_static*
lrwxrwxrwx  1 root root      25 Dec 22 15:06 /usr/bin/bogolexer -> /usr/bin/bogolexer_static*
-rwxr-xr-x  1 root root  548568 Nov 30 19:02 /usr/bin/bogolexer_static*
lrwxrwxrwx  1 root root      24 Dec 22 15:06 /usr/bin/bogotune -> /usr/bin/bogotune_static*
-rwxr-xr-x  1 root root 1545040 Nov 30 19:02 /usr/bin/bogotune_static*
-rwxr-xr-x  1 root root    5045 Nov 30 19:02 /usr/bin/bogoupgrade*
lrwxrwxrwx  1 root root      24 Dec 22 15:06 /usr/bin/bogoutil -> /usr/bin/bogoutil_static*
-rwxr-xr-x  1 root root 1442640 Nov 30 19:02 /usr/bin/bogoutil_static*

### It also works on my current wordlist.txt file (40MB, 1.5M tokens)

[root at osage 100-rel]# ls -l wordlist.txt
-rw-r-----  1 relson relson 40288854 Dec 22 08:02 wordlist.txt

[root at osage 100-rel]# cat wordlist.txt.2005.1222.OK | bogoutil -C -xd -vv -l wordlist.db
probing "." and "wordlist.db" for environment...T_DISABLED
db_version: Header version 4.2, library version 4.2
[pid 10885] DB->open(db=0x81ad950, file=./wordlist.db, database=NIL, type=1, flags=0=, mode=0664) -> 0 Successful return: 0
DB->get_byteswapped: false
DB->fd: 3
DB->stat success, pagesize: 4096
DB->close(./wordlist.db, 0)
1469036 tokens loaded


### Tests run with an Athlon XP 2500




More information about the Bogofilter mailing list