Compile Error

Nigel George nigel.george at cpio.co.uk
Mon Oct 21 07:43:38 EDT 2002


I get this every time I try to compile cyrus imapd 2.1.9, does anyone know
what i'm doing wrong?
 
It runs through the following two commands fine.
 
./configure --with-auth=unix
make depend
 
Then I do
 
make all CFLAGS=-O

and it exits with this :
 
cyrusdb_db3.c
cyrusdb_db3.c:46:16: db.h: No such file or directory
cyrusdb_db3.c:87: parse error before '*' token
cyrusdb_db3.c:87: warning: data definition has no type or storage class
cyrusdb_db3.c:93: parse error before '*' token
cyrusdb_db3.c:98: parse error before numeric constant
cyrusdb_db3.c:98: conflicting types for `exit'
/usr/include/stdlib.h:577: previous declaration of `exit'
cyrusdb_db3.c:98: warning: data definition has no type or storage class
cyrusdb_db3.c: In function `init':
cyrusdb_db3.c:116: warning: assignment makes pointer from integer without a
cast
cyrusdb_db3.c:117: `DB_VERSION_MAJOR' undeclared (first use in this
function)
cyrusdb_db3.c:117: (Each undeclared identifier is reported only once
cyrusdb_db3.c:117: for each function it appears in.)
cyrusdb_db3.c:117: `DB_VERSION_MINOR' undeclared (first use in this
function)
cyrusdb_db3.c:118: `DB_VERSION_PATCH' undeclared (first use in this
function)
cyrusdb_db3.c:127: `DB_RECOVER' undeclared (first use in this function)
cyrusdb_db3.c:127: `DB_CREATE' undeclared (first use in this function)
cyrusdb_db3.c:134: request for member `set_paniccall' in something not a
structure or union
cyrusdb_db3.c:134: parse error before "DB_ENV"
cyrusdb_db3.c:134: `db_panic' undeclared (first use in this function)
cyrusdb_db3.c:136: request for member `set_verbose' in something not a
structure or union
cyrusdb_db3.c:136: `DB_VERB_DEADLOCK' undeclared (first use in this
function)
cyrusdb_db3.c:137: request for member `set_verbose' in something not a
structure or union
cyrusdb_db3.c:137: `DB_VERB_WAITSFOR' undeclared (first use in this
function)
cyrusdb_db3.c:140: request for member `set_verbose' in something not a
structure or union
cyrusdb_db3.c:140: `DB_VERB_CHKPOINT' undeclared (first use in this
function)
cyrusdb_db3.c:142: request for member `set_lk_detect' in something not a
structure or union
cyrusdb_db3.c:142: `DB_LOCK_YOUNGEST' undeclared (first use in this
function)
cyrusdb_db3.c:145: request for member `set_lk_max' in something not a
structure or union
cyrusdb_db3.c:152: request for member `set_tx_max' in something not a
structure or union
cyrusdb_db3.c:158: request for member `set_errcall' in something not a
structure or union
cyrusdb_db3.c:160: request for member `set_errpfx' in something not a
structure or union
cyrusdb_db3.c:174: `DB_INIT_LOCK' undeclared (first use in this function)
cyrusdb_db3.c:174: `DB_INIT_MPOOL' undeclared (first use in this function)
cyrusdb_db3.c:175: `DB_INIT_LOG' undeclared (first use in this function)
cyrusdb_db3.c:175: `DB_INIT_TXN' undeclared (first use in this function)
cyrusdb_db3.c:179: request for member `open' in something not a structure or
union
cyrusdb_db3.c: In function `done':
cyrusdb_db3.c:218: request for member `close' in something not a structure
or union
cyrusdb_db3.c: In function `mysync':
cyrusdb_db3.c:241: `DB_INCOMPLETE' undeclared (first use in this function)
cyrusdb_db3.c: In function `myarchive':
cyrusdb_db3.c:262: `DB_ARCH_ABS' undeclared (first use in this function)
cyrusdb_db3.c:283: `DB_ARCH_DATA' undeclared (first use in this function)
cyrusdb_db3.c:311: `DB_ARCH_LOG' undeclared (first use in this function)
cyrusdb_db3.c: In function `myopen':
cyrusdb_db3.c:336: `DB' undeclared (first use in this function)
cyrusdb_db3.c:336: `db' undeclared (first use in this function)
cyrusdb_db3.c:350: `DB_BTREE' undeclared (first use in this function)
cyrusdb_db3.c:350: `DB_CREATE' undeclared (first use in this function)
cyrusdb_db3.c: In function `myclose':
cyrusdb_db3.c:364: `DB' undeclared (first use in this function)
cyrusdb_db3.c:364: `a' undeclared (first use in this function)
cyrusdb_db3.c:364: parse error before ')' token
cyrusdb_db3.c:369: `DB_NOSYNC' undeclared (first use in this function)
cyrusdb_db3.c: At top level:
cyrusdb_db3.c:378: parse error before "DB_TXN"
cyrusdb_db3.c: In function `gettid':
cyrusdb_db3.c:382: `mytid' undeclared (first use in this function)
cyrusdb_db3.c:384: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:384: parse error before ')' token
cyrusdb_db3.c:385: `tid' undeclared (first use in this function)
cyrusdb_db3.c:385: parse error before ')' token
cyrusdb_db3.c:387: `where' undeclared (first use in this function)
cyrusdb_db3.c: In function `myfetch':
cyrusdb_db3.c:412: `DBT' undeclared (first use in this function)
cyrusdb_db3.c:412: parse error before "k"
cyrusdb_db3.c:413: `DB' undeclared (first use in this function)
cyrusdb_db3.c:413: `db' undeclared (first use in this function)
cyrusdb_db3.c:413: parse error before ')' token
cyrusdb_db3.c:414: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:414: `tid' undeclared (first use in this function)
cyrusdb_db3.c:421: `k' undeclared (first use in this function)
cyrusdb_db3.c:422: `d' undeclared (first use in this function)
cyrusdb_db3.c:433: `DB_NOTFOUND' undeclared (first use in this function)
cyrusdb_db3.c:438: `DB_LOCK_DEADLOCK' undeclared (first use in this
function)
cyrusdb_db3.c: In function `fetchlock':
cyrusdb_db3.c:468: `DB_RMW' undeclared (first use in this function)
cyrusdb_db3.c: In function `foreach':
cyrusdb_db3.c:501: `DBT' undeclared (first use in this function)
cyrusdb_db3.c:501: parse error before "k"
cyrusdb_db3.c:502: `DBC' undeclared (first use in this function)
cyrusdb_db3.c:502: `cursor' undeclared (first use in this function)
cyrusdb_db3.c:503: `DB' undeclared (first use in this function)
cyrusdb_db3.c:503: `db' undeclared (first use in this function)
cyrusdb_db3.c:503: parse error before ')' token
cyrusdb_db3.c:504: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:504: `tid' undeclared (first use in this function)
cyrusdb_db3.c:509: `k' undeclared (first use in this function)
cyrusdb_db3.c:510: `d' undeclared (first use in this function)
cyrusdb_db3.c:532: `DB_SET_RANGE' undeclared (first use in this function)
cyrusdb_db3.c:534: `DB_FIRST' undeclared (first use in this function)
cyrusdb_db3.c:536: `DB_LOCK_DEADLOCK' undeclared (first use in this
function)
cyrusdb_db3.c:564: `DB_SET' undeclared (first use in this function)
cyrusdb_db3.c:567: `DB_NEXT' undeclared (first use in this function)
cyrusdb_db3.c:570: `DB_NOTFOUND' undeclared (first use in this function)
cyrusdb_db3.c: In function `mystore':
cyrusdb_db3.c:648: `DBT' undeclared (first use in this function)
cyrusdb_db3.c:648: parse error before "k"
cyrusdb_db3.c:649: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:649: `tid' undeclared (first use in this function)
cyrusdb_db3.c:650: `DB' undeclared (first use in this function)
cyrusdb_db3.c:650: `db' undeclared (first use in this function)
cyrusdb_db3.c:650: parse error before ')' token
cyrusdb_db3.c:658: `k' undeclared (first use in this function)
cyrusdb_db3.c:659: `d' undeclared (first use in this function)
cyrusdb_db3.c:695: `DB_LOCK_DEADLOCK' undeclared (first use in this
function)
cyrusdb_db3.c: In function `create':
cyrusdb_db3.c:728: `DB_NOOVERWRITE' undeclared (first use in this function)
cyrusdb_db3.c: In function `create_nosync':
cyrusdb_db3.c:744: `DB_NOOVERWRITE' undeclared (first use in this function)
cyrusdb_db3.c:745: `DB_TXN_NOSYNC' undeclared (first use in this function)
cyrusdb_db3.c: In function `store_nosync':
cyrusdb_db3.c:753: `DB_TXN_NOSYNC' undeclared (first use in this function)
cyrusdb_db3.c: In function `mydelete':
cyrusdb_db3.c:761: `DBT' undeclared (first use in this function)
cyrusdb_db3.c:761: parse error before "k"
cyrusdb_db3.c:762: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:762: `tid' undeclared (first use in this function)
cyrusdb_db3.c:763: `DB' undeclared (first use in this function)
cyrusdb_db3.c:763: `db' undeclared (first use in this function)
cyrusdb_db3.c:763: parse error before ')' token
cyrusdb_db3.c:771: `k' undeclared (first use in this function)
cyrusdb_db3.c:804: `DB_LOCK_DEADLOCK' undeclared (first use in this
function)
cyrusdb_db3.c:822: `DB_NOTFOUND' undeclared (first use in this function)
cyrusdb_db3.c: In function `delete_nosync':
cyrusdb_db3.c:845: `DB_TXN_NOSYNC' undeclared (first use in this function)
cyrusdb_db3.c: In function `mycommit':
cyrusdb_db3.c:852: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:852: `t' undeclared (first use in this function)
cyrusdb_db3.c:852: parse error before ')' token
cyrusdb_db3.c: In function `commit_nosync':
cyrusdb_db3.c:884: `DB_TXN_NOSYNC' undeclared (first use in this function)
cyrusdb_db3.c: In function `abort_txn':
cyrusdb_db3.c:891: `DB_TXN' undeclared (first use in this function)
cyrusdb_db3.c:891: `t' undeclared (first use in this function)
cyrusdb_db3.c:891: parse error before ')' token
make[1]: *** [cyrusdb_db3.o] Error 1
make[1]: Leaving directory `/root/programs/cyrus-imapd-2.1.9/lib'
make: *** [all] Error 1
 
 
Thanks in advance
 
- Nigel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20021021/f03e7a9a/attachment.html


More information about the Info-cyrus mailing list