SunOS 4.1.* datastore_db.c Error

Charles Hewson cahewson at eskimo.com
Mon Sep 20 00:28:44 CEST 2004


Dave & Matthias ....

Hi again,
I decided to update this weekend as bogofilter has worked well the last 6
months. I ran into this issue with things from db.h not resolving. I can't
recall how we worked around it last February with old datastore module.
Your help would be appreciated.

Charles
-------------- next part --------------
[cahewson] gmake -k
Making all in trio
gmake[1]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/trio'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/trio'
Making all in src
gmake[1]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src'
gmake  all-recursive
gmake[2]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src'
Making all in .
gmake[3]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src'
source='datastore_db.c' object='datastore_db.o' libtool=no \
depfile='.deps/datastore_db.Po' tmpdepfile='.deps/datastore_db.TPo' \
depmode=gcc /bin/ksh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.  -I../gnugetopt -I../trio -I- -I. -I.  -I../gsl/specfunc -I.. -I../BerkeleyDB/include -DBOGOFILTER  -g -O2  -Wpointer-arith -ggdb -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wnested-externs -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type -Wformat -c datastore_db.c
datastore_db.c:48: parse error before `*'
datastore_db.c:48: warning: type defaults to `int' in declaration of `dbe'
datastore_db.c:48: warning: data definition has no type or storage class
datastore_db.c: In function `resolveflags':
datastore_db.c:80: `DB_CREATE' undeclared (first use in this function)
datastore_db.c:80: (Each undeclared identifier is reported only once
datastore_db.c:80: for each function it appears in.)
datastore_db.c:80: warning: left-hand operand of comma expression has no effect
datastore_db.c:81: `DB_EXCL' undeclared (first use in this function)
datastore_db.c:81: warning: left-hand operand of comma expression has no effect
datastore_db.c:82: `DB_NOMMAP' undeclared (first use in this function)
datastore_db.c:82: warning: left-hand operand of comma expression has no effect
datastore_db.c:83: `DB_RDONLY' undeclared (first use in this function)
datastore_db.c:83: warning: left-hand operand of comma expression has no effect
datastore_db.c: In function `DB_OPEN':
datastore_db.c:96: structure has no member named `open'
datastore_db.c:103: warning: implicit declaration of function `fprintf'
datastore_db.c:107: warning: implicit declaration of function `db_strerror'
datastore_db.c:107: warning: format argument is not a pointer (arg 12)
datastore_db.c:94: warning: `ret' might be used uninitialized in this function
datastore_db.c: In function `check_db_version':
datastore_db.c:185: warning: implicit declaration of function `db_version'
datastore_db.c:186: `DB_VERSION_MAJOR' undeclared (first use in this function)
datastore_db.c:186: `DB_VERSION_MINOR' undeclared (first use in this function)
datastore_db.c: In function `check_fsize_limit':
datastore_db.c:206: warning: implicit declaration of function `getrlimit'
datastore_db.c: In function `db_version_str':
datastore_db.c:258: `DB_VERSION_MAJOR' undeclared (first use in this function)
datastore_db.c:258: `DB_VERSION_MINOR' undeclared (first use in this function)
datastore_db.c:258: `DB_VERSION_PATCH' undeclared (first use in this function)
datastore_db.c: In function `db_open':
datastore_db.c:285: `DB_NOMMAP' undeclared (first use in this function)
datastore_db.c:290: `DB_RDONLY' undeclared (first use in this function)
datastore_db.c:292: `DB_CREATE' undeclared (first use in this function)
datastore_db.c:292: `DB_EXCL' undeclared (first use in this function)
datastore_db.c:307: warning: implicit declaration of function `db_create'
datastore_db.c:309: warning: format argument is not a pointer (arg 5)
datastore_db.c:317: structure has no member named `set_cachesize'
datastore_db.c:319: warning: format argument is not a pointer (arg 9)
datastore_db.c:364: warning: format argument is not a pointer (arg 8)
datastore_db.c:365: too many arguments to function
datastore_db.c:374: structure has no member named `get_byteswapped'
datastore_db.c:379: structure has no member named `err'
datastore_db.c:385: too many arguments to function
datastore_db.c:387: structure has no member named `err'
datastore_db.c:396: too many arguments to function
datastore_db.c: In function `db_delete':
datastore_db.c:461: warning: passing arg 3 makes integer from pointer without a cast
datastore_db.c:461: too many arguments to function
datastore_db.c:463: `DB_NOTFOUND' undeclared (first use in this function)
datastore_db.c:467: warning: format argument is not a pointer (arg 7)
datastore_db.c: In function `db_get_dbvalue':
datastore_db.c:492: structure has no member named `ulen'
datastore_db.c:493: structure has no member named `flags'
datastore_db.c:493: `DB_DBT_USERMEM' undeclared (first use in this function)
datastore_db.c:495: warning: passing arg 4 makes integer from pointer without a cast
datastore_db.c:495: too many arguments to function
datastore_db.c:502: `DB_NOTFOUND' undeclared (first use in this function)
datastore_db.c:511: warning: format argument is not a pointer (arg 7)
datastore_db.c: In function `db_set_dbvalue':
datastore_db.c:538: warning: passing arg 4 makes integer from pointer without a cast
datastore_db.c:538: too many arguments to function
datastore_db.c:542: warning: format argument is not a pointer (arg 7)
datastore_db.c: In function `db_close':
datastore_db.c:556: `DB_NOSYNC' undeclared (first use in this function)
datastore_db.c:562: too many arguments to function
datastore_db.c:569: warning: format argument is not a pointer (arg 5)
datastore_db.c: In function `db_flush':
datastore_db.c:591: warning: format argument is not a pointer (arg 5)
datastore_db.c: In function `db_foreach':
datastore_db.c:602: `DBC' undeclared (first use in this function)
datastore_db.c:602: parse error before `dbc'
datastore_db.c:603: `dbcp' undeclared (first use in this function)
datastore_db.c:603: `dbc' undeclared (first use in this function)
datastore_db.c:604: parse error before `key'
datastore_db.c:607: `key' undeclared (first use in this function)
datastore_db.c:608: `data' undeclared (first use in this function)
datastore_db.c:610: structure has no member named `cursor'
datastore_db.c:612: structure has no member named `err'
datastore_db.c:616: `DB_FIRST' undeclared (first use in this function)
datastore_db.c:618: `DB_NEXT' undeclared (first use in this function)
datastore_db.c:625: `dbv_key' undeclared (first use in this function)
datastore_db.c:630: `dbv_data' undeclared (first use in this function)
datastore_db.c:644: `DB_NOTFOUND' undeclared (first use in this function)
datastore_db.c:649: structure has no member named `err'
datastore_db.c:653: structure has no member named `err'
datastore_db.c: In function `db_str_err':
datastore_db.c:661: warning: return makes pointer from integer without a cast
datastore_db.c: In function `db_init':
datastore_db.c:674: warning: implicit declaration of function `db_env_create'
datastore_db.c:676: warning: format argument is not a pointer (arg 5)
datastore_db.c:680: request for member `set_cachesize' in something not a structure or union
datastore_db.c:682: warning: format argument is not a pointer (arg 6)
datastore_db.c:690: request for member `open' in something not a structure or union
datastore_db.c:690: `DB_INIT_MPOOL' undeclared (first use in this function)
datastore_db.c:690: `DB_INIT_CDB' undeclared (first use in this function)
datastore_db.c:690: `DB_CREATE' undeclared (first use in this function)
datastore_db.c:692: request for member `close' in something not a structure or union
datastore_db.c:693: warning: format argument is not a pointer (arg 5)
datastore_db.c: In function `db_cleanup':
datastore_db.c:705: request for member `close' in something not a structure or union
gmake[3]: *** [datastore_db.o] Error 1
gmake[3]: Target `all-am' not remade because of errors.
gmake[3]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src'
Making all in tests
gmake[3]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src/tests'
gmake  all-am
gmake[4]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src/tests'
gmake[4]: Nothing to be done for `all-am'.
gmake[4]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src/tests'
gmake[3]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src/tests'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/src'
Making all in .
gmake[1]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6'
gmake[1]: Nothing to be done for `all-am'.
gmake[1]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6'
Making all in doc
gmake[1]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/doc'
Making all in contrib
gmake[1]: Entering directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/contrib'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/bigdisk/u/c/cahewson/bogofilter-0.92.6/contrib'
gmake: *** [all-recursive] Error 1
gmake: Target `all' not remade because of errors.



More information about the Bogofilter mailing list