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.