Subject: Re: security/PAM on Linux
To: Louis Guillaume <lguillaume@berklee.edu>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/17/2005 18:19:52
On Mon, 17 Oct 2005, Louis Guillaume wrote:
> security/pam was not building on Linux. It could not find db.h when
> attempting to build pam_userdb.o in modules/pam_userdb.
>
> This made it work:
>
> --- pam_userdb.c.orig 2005-10-18 00:52:51.000000000 +0000
> +++ pam_userdb.c 2005-10-18 00:49:52.000000000 +0000
> @@ -25,7 +25,7 @@
> #else
> # ifdef HAVE_DB_H
> # define DB_DBM_HSEARCH 1 /* use the dbm interface */
> -# include <db.h>
> +# include <db4/db.h>
The buildlink system should take care of this.
Also, db4 is not required, but any Berkeley db should work. For example,
databases/db4/buildlink3.mk has
BUILDLINK_INCDIRS.db4?= include/db4
Do you have a /usr/include/ndbm.h file?
You may want a file a PR. I can look at it next week.
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/