LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2010, 05:44 AM   #1
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
cannot find -lpam


Heya,

When I run the "make" command I get the following issue. I'm using centos

Code:
gcc -c filtercmd.c -DDEBUG -DSQUIRRELMAILCONFIGFILE='"/home/domain/public_html/webmail/config/config.php"'
gcc -c checkcreds_cclient.c -DDEBUG -I/usr/include/imap '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' -DIMAP_TIMEOUT=2
checkcreds_cclient.c: In function âmm_loginâ:
checkcreds_cclient.c:84: warning: incompatible implicit declaration of built-in function âstrncpyâ
gcc -o filtercmd filtercmd.o checkcreds_cclient.o /usr/lib/c-client.a -lssl -lpam -L/usr/kerberos/lib/ -lgssapi_krb5 -lcrypt -lkrb5 -lresolv -lcom_err -ldl -lz -lcrypto -lk5crypto  -static
/usr/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
make: *** [filtercmd] Error 1
Code:
I have checked the pam-devel package and it is installed and I have the libraries in /usr/lib which points to /lib. The files exist in both the paths. I'm clueless as to why is it not detecting lpam.

$ ldconfig -vn /lib | grep pam
        libpam.so.0 -> libpam.so.0.81.5
        libpam_misc.so.0 -> libpam_misc.so.0.81.2
        libpamc.so.0 -> libpamc.so.0.81.0

$ldconfig -p | grep pam
        libpamc.so.0 (libc6) => /lib/libpamc.so.0
        libpamc.so (libc6) => /usr/lib/libpamc.so
        libpam_misc.so.0 (libc6) => /lib/libpam_misc.so.0
        libpam_misc.so (libc6) => /usr/lib/libpam_misc.so
        libpam.so.0 (libc6) => /lib/libpam.so.0
        libpam.so (libc6) => /usr/lib/libpam.so
This is part of Squirrel Mail plugin installation. The name of the plugin is Server Side Filters, I have configured other parts of the plugins just need to compile this binary called filtercmd.
 
Old 05-02-2010, 08:09 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What does rpm -qa | grep pam return?
 
Old 05-02-2010, 08:36 AM   #3
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Original Poster
Rep: Reputation: 30
$rpm -qa | grep pam
pam_passwdqc-1.0.2-1.2.2
spamassassin-3.2.5-1.el5
pam_krb5-2.2.14-10
pam_smb-1.1.7-7.2.1
pam-0.99.6.2-6.el5_4.1
pam_pkcs11-0.5.3-23
pam_ccreds-3-5
 
Old 05-02-2010, 11:18 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
install pam-devel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Find URL in Debian package index via awk/sed (=find a line, then search from there) maddes.b Linux - Software 11 06-28-2013 07:37 AM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 06:19 AM
fedora7 make error - /usr/bin/ld: cannot find -lpam ted_s Linux - Server 2 01-14-2010 09:23 AM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM
I cannot find what should be very easy to find... a distro with the Gnome desktop bluecog6 Linux - General 3 06-10-2007 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration