On 21-Dec-00 at 21:04, Ilya ([EMAIL PROTECTED]) wrote:
> I am trying to build 2.0.9 on a freebsd 4.2 and i am getting this error,
> any ideas? :
> 
> rusdb_db3.c
> cyrusdb_db3.c:75: syntax error before `*'
> cyrusdb_db3.c:75: warning: data definition has no type or storage class

Look at this line and see what type is being used.

> cyrusdb_db3.c:80: syntax error before `*'
> cyrusdb_db3.c:84: syntax error before `75'
> cyrusdb_db3.c:84: conflicting types for `exit'
> /usr/include/stdlib.h:94: previous declaration of `exit'
> cyrusdb_db3.c:84: warning: data definition has no type or storage class
> *** Error code 1

Without looking at the code, my first guess would be that cyrusdb_db3.c
is including db.h without a directory qualifier and getting the wrong
version.  The older version of db is bundled with the OS.  The cleanest
way to get the db3 files is to specify 'db3/' in the include:

        #include <db3/db.h>

(Grep for db.h in all of the cyrus sources to make sure you get them all.)



-Pat

Reply via email to