Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library linkage Issue with successful cross compilation libraries of linux-pam source #17

Closed
manikanta226 opened this issue Mar 17, 2017 · 2 comments

Comments

@manikanta226
Copy link

This is not an issue, i need help regarding ./configure flags for library linkage. my problem is
Taken the Linux-pam source Linux-PAM-1.3.0.tar.gz and configure to my ARM board and cross compiled using below commands

# ./configure --prefix=/u02/tasks/linux-pam/Linux-PAM-1.3.0/output/pre --exec-prefix=/u02/tasks/linux-pam/Linux-PAM-1.3.0/output/epre CC=/opt/96TT/usr/bin/arm-linkwell-linux-gnueabihf-gcc ARCH=arm --host=arm-none-linux-gnueabi
# make install

Then copied the libraries to my target board to /lib and /lib/security/ respectively, while running pam based application got the error in /var/log/message as

Feb 10 16:13:16 authpriv.err pam_aut: PAM adding faulty module: /u02/tasks/linux-pam/Linux-PAM-1.3.0/output/epre/lib/security/pam_unix.so
Feb 10 16:13:16 authpriv.err pam_aut: PAM unable to dlopen(/u02/tasks/linux-pam/Linux-PAM-1.3.0/output/epre/lib/security/pam_deny.so): /u02/tasks/linux-pam/Linux-PAM-1.3.0/output/epre/lib/security/pam_deny.so: cannot open shared object file: No such file or direct
Feb 10 16:13:16 authpriv.err pam_aut: PAM adding faulty module: /u02/tasks/linux-pam/Linux-PAM-1.3.0/output/epre/lib/security/pam_deny.so

By default application links to /lib/security/*.so , but the library in /lib/security searches for supported library in pc compiled path instead of /lib. so, on board that path not exists its getting file not found.

Here, question is how to change the linkage path of /lib/security/pam_*.so from pc compiled path to /lib/, to achieve this How to configure the pam source to take library linkage from /lib/ instead of PC compiled Path ? Is there any FLAG is need to set while configuring ?

Help me ..

@adityaK18
Copy link

I am facing the same issue. Wanted to know if you have fixed it.

@t8m
Copy link
Member

t8m commented Feb 18, 2020

You should not use prefix with configure but make install DESTDIR=/path/to/install instead.

@t8m t8m closed this as completed Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants