OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Compile errors
From: Lutz Jaenicke (Lutz.Jaenickeaet.TU-Cottbus.DE)
Date: Tue Jun 06 2000 - 08:50:30 CDT


On Tue, Jun 06, 2000 at 02:44:13PM +0100, Chris Horry wrote:
> I'm a little embarrased cause I know it's me missing the bleeding
> obvious! pl08 won't compile on my happy little computer. Now, I'm
> running pl06 so I know that compiled OK but I'm getting the same error for
> both. Conclusion: I'm doing something wrong.
>
> Here's the error after typing "make":
>
> gcc -Wmissing-prototypes -g -O -I. -DLINUX2 -c dict_db.c
> dict_db.c: In function `dict_db_lookup':
> dict_db.c:110: warning: passing arg 2 from incompatible pointer type
> dict_db.c:110: too few arguments to function
> dict_db.c:125: warning: passing arg 2 from incompatible pointer type
> dict_db.c:125: too few arguments to function
> dict_db.c: In function `dict_db_update':
> dict_db.c:193: `R_NOOVERWRITE' undeclared (first use in this function)
> dict_db.c:193: (Each undeclared identifier is reported only once
> dict_db.c:193: for each function it appears in.)
> dict_db.c:193: warning: passing arg 2 from incompatible pointer type
> dict_db.c:193: too few arguments to function
> dict_db.c: In function `dict_db_delete':
[... more errors...]

There are several versions of berkeley DB around, with incompatible
programming interface. Postfix uses the db-1.85 style interface. If your
version is 2.x or 3.x, you must use
-DHAS_DB -DPATH_DB_H='<db_185.h>'
to make sure the correct header is used.

Best regards,
        Lutz

-- 
Lutz Jaenicke                             Lutz.Jaenickeaet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153