Re: [Exim] db.h missiing on Build of Exim-4.10

Góra strony
Delete this message
Reply to this message
Autor: John (TJ) Penton
Data:  
Dla: Richard D Vogel
CC: exim-users
Temat: Re: [Exim] db.h missiing on Build of Exim-4.10
On Sun, 8 Sep 2002, Richard D Vogel wrote:

> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> While building Exim-4.10 on Mandrake 8.2 I got the error
> db.h Missing . After reading all of the README's and INSTALL's and doc files I was still confused. Not being a C programmer or whatever, I finally figured out what they meant.
>
> If you are using gdbm you must include the following in your Local/Makefile
>
> DBMLIB = -lgdbm
> USE_GDBM = yes
>
> If the file contains a USE_DB=yes TAKE IT OUT!!!!!!
> I assume this also applies to the rest of the dbm's.


Normally the compile will look for db.h in /usr/include/. On some systems
(SUSE and Mandrake I believe) it is kept somewhere else (eg.
/usr/include/db1/) and therefore the compiler can't find it. There are
two ways of fixing it if this is the case:

1. Symlink from /usr/include/db.h to whereever your db.h resides.
2. Add a CFLAGS line to Local/Makefile like:
    CFLAGS = -I/usr/include/db1
   The directory should be the directory in which db.h is found.


See the thread on this mailing list "compiler error" which is talking
a bit about this issue.

John

--
-...tut, tut, it looks like rain-