pam doesn't bootstrap due to missing --enable-dbm in db
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
db (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
db5.3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
pam (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Building (or crossbuilding) pam (with dpkg-buildpackage -B)
fails with a set of undefined reference to `__db_ndbm_*' errors.
This is due to db not have the compatibility layer unless --enable-dbm is set in the db package.
I don't know if this is a changed default from ealier versions of db or if in fact this should be fixed by getting pam not to use this interface anymore, but for now this seems simplest.
I noticed this doing the arm64 bootstrap but I don't think there is anything arm-specific about it, given that the test below fails.
I don't know why this doesn't show up normally. I presume that the normal db configuration implies --enable-dbm, but the stage1 config used in http://
Turning --enable-dbm on explicitly makes things work.
Here is a small test case
$ cat test.c
#define DB_DBM_HSEARCH 1
#include <db.h>
int main(void) {
DBM *db = dbm_open(
return 0;
}
$ gcc -ldb test.c
/tmp/ccvbSNOF.o: In function `main':
test.c:
collect2: ld returned 1 exit status
affects: | pam → pam (Ubuntu) |
summary: |
- pam doesn't cross-build due to missing --enable-dbm in db + pam doesn't bootstrap due to missing --enable-dbm in db |
The attachment "db_5.1. 29-5ubuntu6- fix-pam- enable- dbm.patch" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]