[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libpam.so.0 and libaudit.so.0 linking



On 11/29/2011 11:10 AM, Test Test wrote:

>     .libs/pam_selinux.o: In function `send_audit_message':
>     /home/fmyoen/tmp/1/pam-1.1.1/modules/pam_selinux/pam_selinux.c:87:
> undefined reference to `audit_open'
>     /home/fmyoen/tmp/1/pam-1.1.1/modules/pam_selinux/pam_selinux.c:112:
> undefined reference to `audit_log_user_message'
>     collect2: ld returned 1 exit status

> Any ideas what should I do? 

This looks like a problem with the --no-copy-dt-needed-entries linker
option (aka --no-add-needed). Have a look at

http://wiki.debian.org/ToolChain/DSOLinking#Not_resolving_symbols_in_indirect_dependent_shared_libraries

for hints to fix it.

Cheers, Andreas

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: