Subject: Re: security/PAM on Linux
To: Jeremy C. Reed <reed@reedmedia.net>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 10/18/2005 22:24:13
This is a cryptographically signed message in MIME format.
--------------ms070904020408040509030106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Jeremy C. Reed wrote:
> 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?
>
No. I don't have one. Perhaps that's why many Slackware installations
don't complain about not being able to find db.h.
> You may want a file a PR. I can look at it next week.
>
Before I do, you should know that there is this too...
--- databases/db4/buildlink3.mk.orig 2005-10-18 22:20:01.000000000 -0400
+++ databases/db4/buildlink3.mk 2005-10-15 13:06:10.000000000 -0400
@@ -18,7 +18,7 @@
BUILDLINK_PKGSRCDIR.db4?= ../../databases/db4
BUILDLINK_INCDIRS.db4?= include/db4
BUILDLINK_LDADD.db4= -ldb4
-BUILDLINK_TRANSFORM+= l:db-4:db4
+BUILDLINK_TRANSFORM+= l:db-4:db4 l:db43:db4
. if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
#
... I needed this to get openldap to build. Maybe this is the culprit.
Louis
--------------ms070904020408040509030106
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content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