Re: Oops. Linux...

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tim Cutts
Fecha:  
A: Ian Jackson
Cc: exim-users
Asunto: Re: Oops. Linux...
On Thu, 12 Sep 1996, Ian Jackson wrote:

> Philip Hazel writes ("Oops. Linux..."):
> > One minor change I made was simply to reduce an annoyance. The header
> > file for the libident library (libident/ident.h) defines the __P macro
> > for handling function prototypes. The header file for Berkeley DB (db.h)
> > calls <cdefs.h> which also defines it, and doesn't check it first
> > (libident does). This causes compiler warnings.
> >
> > I like things to compile clean, so I added code to undefine __P if it
> > was already defined, before #including <db.h> from dbhdr.h.
> >
> > The first person to try compiling on Redhat Linux got a slew of errors.
> > Turns out that in that system, <db.h>, although the same version as the
> > copy I have, does NOT call <cdefs.h> and so doesn't define __P.
> >
> This is, I think, a bug in the header files on the Linux system. I
> suggest you get it fixed, by reporting it as a bug to the appropriate
> people.


It compiled cleanly on Debian Linux; this may be a RedHat specific
problem. I will check these this out though.

Tim.