0.95.2.cvs compilation succeeded on IRIX 6.5

Daichi Kawahata daichi.k at aioros.ocn.ne.jp
Mon Aug 8 14:18:33 CEST 2005


On Sun, 7 Aug 2005 09:26:21 -0400
David Relson wrote:

> Did you build Berkeley DB yourself or use an already built
> package?  If "build it yourself", an easier DB to build and
> use might be SQLite3.

Yes, it was Berkeley DB 4.3.28 from http://sleepycat.com/ ,
config option was as follows,

  It was created by Berkeley DB configure 4.3.28, which was
  generated by GNU Autoconf 2.59.  Invocation command line was

    $ ../dist/configure --prefix=/usr/local --libdir=/usr/local/lib32 \
      --mandir=/usr/local/share/man --disable-static --enable-cxx

Now, I'm also trying to compile with SQLite3 3.2.2, but it brings
another compilation errors (at 0.95.2.cvs_with_sqlite3_on_irix.log).

> Script test.0807.sh uses additional options to print information
> about database options.  Once you have a working database, give
> it a try.

As above, I've tested your script with bogofilter in which I've
enabled transactions, and same Berkeley DB, but as you've expected,
it still fails on creating database. I'll try it with another DB.

Regards,
-- 
Daichi
-------------- next part --------------
In file included from datastore_db.c:47:
./datastore.h:85: error: conflicting types for 'DB'
/usr/local/include/db.h:127: error: previous declaration of 'DB' was here
./datastore.h:86: error: conflicting types for 'DB_ENV'
/usr/local/include/db.h:131: error: previous declaration of 'DB_ENV' was here
./datastore.h:87: error: conflicting types for 'DB_TXN'
/usr/local/include/db.h:151: error: previous declaration of 'DB_TXN' was here
datastore_db.c: In function 'check_env_pagesize':
datastore_db.c:160: warning: dereferencing 'void *' pointer
datastore_db.c:160: error: request for member 'set_pagesize' in something not a structure or union
datastore_db.c: In function 'DB_OPEN':
datastore_db.c:188: warning: dereferencing 'void *' pointer
datastore_db.c:188: error: request for member 'open' in something not a structure or union
datastore_db.c: In function 'DB_SET_FLAGS':
datastore_db.c:226: warning: dereferencing 'void *' pointer
datastore_db.c:226: error: request for member 'set_flags' in something not a structure or union
datastore_db.c: In function 'db_get_env':
datastore_db.c:239: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:239: error: (Each undeclared identifier is reported only once
datastore_db.c:239: error: for each function it appears in.)
datastore_db.c:239: error: 'handle' undeclared (first use in this function)
datastore_db.c: In function 'db_lock':
datastore_db.c:261: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:261: error: 'handle' undeclared (first use in this function)
datastore_db.c: At top level:
datastore_db.c:304: error: parse error before '*' token
datastore_db.c:305: warning: return type defaults to 'int'
datastore_db.c:305: warning: no previous prototype for 'dbh_init'
datastore_db.c: In function 'dbh_init':
datastore_db.c:306: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:306: error: 'handle' undeclared (first use in this function)
datastore_db.c: At top level:
datastore_db.c:328: error: parse error before '*' token
datastore_db.c:329: warning: function declaration isn't a prototype
datastore_db.c: In function 'handle_free':
datastore_db.c:330: error: 'handle' undeclared (first use in this function)
datastore_db.c: In function 'db_is_swapped':
datastore_db.c:409: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:409: error: 'handle' undeclared (first use in this function)
datastore_db.c: In function 'db_created':
datastore_db.c:420: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:420: error: 'handle' undeclared (first use in this function)
datastore_db.c: In function 'get_psize':
datastore_db.c:504: warning: dereferencing 'void *' pointer
datastore_db.c:504: error: request for member 'stat' in something not a structure or union
datastore_db.c: In function 'db_open':
datastore_db.c:560: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:560: error: 'handle' undeclared (first use in this function)
datastore_db.c:595: warning: passing argument 1 of 'db_create' from incompatible pointer type
datastore_db.c:660: warning: dereferencing 'void *' pointer
datastore_db.c:660: error: request for member 'close' in something not a structure or union
datastore_db.c:666: warning: dereferencing 'void *' pointer
datastore_db.c:666: error: request for member 'get_byteswapped' in something not a structure or union
datastore_db.c:683: warning: dereferencing 'void *' pointer
datastore_db.c:683: error: request for member 'fd' in something not a structure or union
datastore_db.c:697: warning: dereferencing 'void *' pointer
datastore_db.c:697: error: request for member 'close' in something not a structure or union
datastore_db.c: In function 'db_delete':
datastore_db.c:733: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:733: error: 'handle' undeclared (first use in this function)
datastore_db.c:745: warning: dereferencing 'void *' pointer
datastore_db.c:745: error: request for member 'del' in something not a structure or union
datastore_db.c: In function 'db_get_dbvalue':
datastore_db.c:769: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:769: error: 'handle' undeclared (first use in this function)
datastore_db.c:789: warning: dereferencing 'void *' pointer
datastore_db.c:789: error: request for member 'get' in something not a structure or union
datastore_db.c: In function 'db_set_dbvalue':
datastore_db.c:826: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:826: error: 'handle' undeclared (first use in this function)
datastore_db.c:841: warning: dereferencing 'void *' pointer
datastore_db.c:841: error: request for member 'put' in something not a structure or union
datastore_db.c: In function 'db_get_flags':
datastore_db.c:869: warning: dereferencing 'void *' pointer
datastore_db.c:869: error: request for member 'get_flags' in something not a structure or union
datastore_db.c: In function 'db_close':
datastore_db.c:886: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:886: error: 'handle' undeclared (first use in this function)
datastore_db.c:911: warning: dereferencing 'void *' pointer
datastore_db.c:911: error: request for member 'close' in something not a structure or union
datastore_db.c: In function 'db_flush':
datastore_db.c:936: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:936: error: 'handle' undeclared (first use in this function)
datastore_db.c:944: warning: dereferencing 'void *' pointer
datastore_db.c:944: error: request for member 'sync' in something not a structure or union
datastore_db.c: In function 'db_foreach':
datastore_db.c:964: error: 'dbh_t' undeclared (first use in this function)
datastore_db.c:964: error: 'handle' undeclared (first use in this function)
datastore_db.c:982: warning: dereferencing 'void *' pointer
datastore_db.c:982: error: request for member 'cursor' in something not a structure or union
datastore_db.c: In function 'db_dofile':
datastore_db.c:1076: warning: passing argument 1 of 'db_create' from incompatible pointer type
datastore_db.c:1092: warning: dereferencing 'void *' pointer
datastore_db.c:1092: error: request for member 'close' in something not a structure or union
datastore_db.c: In function 'db_do_leafpages':
datastore_db.c:1119: warning: dereferencing 'void *' pointer
datastore_db.c:1119: error: request for member 'stat' in something not a structure or union
datastore_db.c: In function 'db_verify':
datastore_db.c:1148: warning: passing argument 1 of 'db_create' from incompatible pointer type
datastore_db.c:1158: warning: dereferencing 'void *' pointer
datastore_db.c:1158: error: request for member 'verify' in something not a structure or union
gmake[3]: [datastore_db.o] Error 1 (ignored)

In file included from datastore_db_trad.c:25:
./datastore.h:85: error: conflicting types for 'DB'
/usr/local/include/db.h:127: error: previous declaration of 'DB' was here
./datastore.h:86: error: conflicting types for 'DB_ENV'
/usr/local/include/db.h:131: error: previous declaration of 'DB_ENV' was here
./datastore.h:87: error: conflicting types for 'DB_TXN'
/usr/local/include/db.h:151: error: previous declaration of 'DB_TXN' was here
datastore_db_trad.c: In function 'bft_log_flush':
datastore_db_trad.c:122: warning: dereferencing 'void *' pointer
datastore_db_trad.c:122: error: request for member 'log_flush' in something not a structure or union
gmake[3]: [datastore_db_trad.o] Error 1 (ignored)

In file included from datastore_db_trans.c:27:
./datastore.h:85: error: conflicting types for 'DB'
/usr/local/include/db.h:127: error: previous declaration of 'DB' was here
./datastore.h:86: error: conflicting types for 'DB_ENV'
/usr/local/include/db.h:131: error: previous declaration of 'DB_ENV' was here
./datastore.h:87: error: conflicting types for 'DB_TXN'
/usr/local/include/db.h:151: error: previous declaration of 'DB_TXN' was here
datastore_db_trans.c: In function 'dbe_recover_open':
datastore_db_trans.c:219: warning: dereferencing 'void *' pointer
datastore_db_trans.c:219: error: request for member 'open' in something not a structure or union
datastore_db_trans.c: In function 'dbx_begin':
datastore_db_trans.c:242: error: 'dbh_t' undeclared (first use in this function)
datastore_db_trans.c:242: error: (Each undeclared identifier is reported only once
datastore_db_trans.c:242: error: for each function it appears in.)
datastore_db_trans.c:242: error: 'dbh' undeclared (first use in this function)
datastore_db_trans.c:252: warning: dereferencing 'void *' pointer
datastore_db_trans.c:252: error: request for member 'txn_begin' in something not a structure or union
datastore_db_trans.c:262: warning: dereferencing 'void *' pointer
datastore_db_trans.c:262: error: request for member 'id' in something not a structure or union
datastore_db_trans.c: In function 'dbx_abort':
datastore_db_trans.c:270: error: 'dbh_t' undeclared (first use in this function)
datastore_db_trans.c:270: error: 'dbh' undeclared (first use in this function)
datastore_db_trans.c:280: warning: dereferencing 'void *' pointer
datastore_db_trans.c:280: error: request for member 'abort' in something not a structure or union
datastore_db_trans.c:283: warning: dereferencing 'void *' pointer
datastore_db_trans.c:283: error: request for member 'id' in something not a structure or union
datastore_db_trans.c:287: warning: dereferencing 'void *' pointer
datastore_db_trans.c:287: error: request for member 'id' in something not a structure or union
datastore_db_trans.c: In function 'dbx_commit':
datastore_db_trans.c:304: error: 'dbh_t' undeclared (first use in this function)
datastore_db_trans.c:304: error: 'dbh' undeclared (first use in this function)
datastore_db_trans.c:315: warning: dereferencing 'void *' pointer
datastore_db_trans.c:315: error: request for member 'id' in something not a structure or union
datastore_db_trans.c:316: warning: dereferencing 'void *' pointer
datastore_db_trans.c:316: error: request for member 'commit' in something not a structure or union
datastore_db_trans.c: In function 'bf_dbenv_create':
datastore_db_trans.c:408: warning: passing argument 1 of 'db_env_create' from incompatible pointer type
datastore_db_trans.c:416: warning: dereferencing 'void *' pointer
datastore_db_trans.c:416: error: request for member 'set_errfile' in something not a structure or union
datastore_db_trans.c: In function 'dbe_config':
datastore_db_trans.c:428: warning: dereferencing 'void *' pointer
datastore_db_trans.c:428: error: request for member 'set_lg_max' in something not a structure or union
datastore_db_trans.c: In function 'dbe_xinit':
datastore_db_trans.c:493: warning: dereferencing 'void *' pointer
datastore_db_trans.c:493: error: request for member 'set_cachesize' in something not a structure or union
datastore_db_trans.c:506: warning: dereferencing 'void *' pointer
datastore_db_trans.c:506: error: request for member 'open' in something not a structure or union
datastore_db_trans.c:508: warning: dereferencing 'void *' pointer
datastore_db_trans.c:508: error: request for member 'close' in something not a structure or union
datastore_db_trans.c: In function 'dbx_cleanup_lite':
datastore_db_trans.c:552: warning: dereferencing 'void *' pointer
datastore_db_trans.c:552: error: request for member 'txn_checkpoint' in something not a structure or union
datastore_db_trans.c:560: warning: dereferencing 'void *' pointer
datastore_db_trans.c:560: error: request for member 'close' in something not a structure or union
datastore_db_trans.c: In function 'dbx_common_close':
datastore_db_trans.c:629: warning: dereferencing 'void *' pointer
datastore_db_trans.c:629: error: request for member 'close' in something not a structure or union
datastore_db_trans.c: In function 'dbe_env_purgelogs':
datastore_db_trans.c:647: warning: dereferencing 'void *' pointer
datastore_db_trans.c:647: error: request for member 'log_archive' in something not a structure or union
datastore_db_trans.c: In function 'dbe_env_checkpoint':
datastore_db_trans.c:682: warning: dereferencing 'void *' pointer
datastore_db_trans.c:682: error: request for member 'txn_checkpoint' in something not a structure or union
datastore_db_trans.c: In function 'dbx_log_flush':
datastore_db_trans.c:740: warning: dereferencing 'void *' pointer
datastore_db_trans.c:740: error: request for member 'log_flush' in something not a structure or union
datastore_db_trans.c: In function 'probe_txn':
datastore_db_trans.c:865: warning: passing argument 1 of 'db_env_create' from incompatible pointer type
datastore_db_trans.c:877: warning: dereferencing 'void *' pointer
datastore_db_trans.c:877: error: request for member 'open' in something not a structure or union
datastore_db_trans.c:882: warning: dereferencing 'void *' pointer
datastore_db_trans.c:882: error: request for member 'close' in something not a structure or union
datastore_db_trans.c:895: warning: dereferencing 'void *' pointer
datastore_db_trans.c:895: error: request for member 'close' in something not a structure or union
datastore_db_trans.c:941: warning: dereferencing 'void *' pointer
datastore_db_trans.c:941: error: request for member 'get_open_flags' in something not a structure or union
datastore_db_trans.c:948: warning: dereferencing 'void *' pointer
datastore_db_trans.c:948: error: request for member 'close' in something not a structure or union
datastore_db_trans.c: In function 'dbx_list_logfiles':
datastore_db_trans.c:978: warning: dereferencing 'void *' pointer
datastore_db_trans.c:978: error: request for member 'log_archive' in something not a structure or union
gmake[3]: [datastore_db_trans.o] Error 1 (ignored)



-------------- next part --------------
+ bogofilter -V -Q
bogofilter version 0.95.2.cvs
    Database: Sleepycat Software: Berkeley DB 4.3.28: (April 22, 2005) TRANSACTIONAL
Copyright (C) 2002-2005 Eric S. Raymond,
    David Relson, Matthias Andree, Greg Louis

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.

+ DIR=test.0807.d
+ [ -d test.0807.d ]
+ rm -rf test.0807.d
+ mkdir test.0807.d
+ echo Make sure test.0807.d exists
Make sure test.0807.d exists
+ ls -ld test.0807.d
drwxr-xr-x    2 dick     user            9 Aug  8 20:55 test.0807.d
+ OPTS=-x dw -vv
+ bogofilter -x dw -vv -n -d test.0807.d
+ echo this message is a ham message
+ ls -l test.0807.d
total 0
+ echo this message is spam
+ bogofilter -x dw -vv -s -d test.0807.d
+ echo score this ham/spam message
+ bogofilter -d -vvv test.0807.d
+ bogoutil -x dw -vv -d test.0807.d/wordlist.db
Can't open wordlist 'test.0807.d/wordlist.db'





More information about the bogofilter mailing list