Wind River Support Network

HomeDefectsLIN1019-4150
Fixed

LIN1019-4150 : libpam: pam_userdb.so is not built even though libdb(Berkeley DB) exist

Created: Mar 17, 2020    Updated: Apr 13, 2020
Resolved Date: Apr 2, 2020
Found In Version: 10.19.45.3
Fix Version: 10.19.45.6
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Userspace

Description

Use pam_userdb.so plugin but it's not built.
 Only Makefile exists in build directory for the plugin.

build/tmp-glibc/work/core2-64-wrs-linux/libpam/1.3.1-r0/build/modules/pam_userdb

pam_userdb.so depends on libdb(Berkley DB) . libdb is built at below and can be found on target.

build/tmp-glibc/work/core2-64-wrs-linux/db/1_5.3.28-r1/

Below lines in Makefile.am seems to prevent pam_userdb.so to be built if HAVE_LIBDB
 is false.

<build/tmp-glibc/work/core2-64-wrs-linux/libpam/1.3.1-r0/Linux-PAM-1.3.1/modules/pam_userdb/Makefile.am>
 ...
 if HAVE_LIBDB
 securelib_LTLIBRARIES = pam_userdb.la
 pam_userdb_la_LIBADD = $(top_builddir)/libpam/libpam.la
 endif

Steps to Reproduce

mkdir -p my-project
cd my-project
git clone --branch WRLINUX_10_19_LTS \
  https://windshare.windriver.com/remote.php/gitsmart/WRLinux-lts-19-Core/wrlinux-x
./wrlinux-x/setup.sh --machines qemux86-64
bitbake wrlinux-image-small

See if build/tmp-glibc/work/core2-64-wrs-linux/libpam/1.3.1-r0/image/lib64/security/pam_userdb.so exists.

Live chat
Online