Hongwei Li wrote:
Hongwei Li wrote:
gcc -c filtercmd.c -DSQUIRRELMAILCONFIGFILE='"/etc/squirrelmail/config.php"' gcc -c checkcreds_cclient.c -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/lib/ -lgssapi_krb5 -lcrypt -lkrb5 -lresolv -lcom_err -ldl -lz -lcrypto -lk5crypto -static
^^^^^^^ ...
I checked /usr/lib and find that all required libs in Makefile are there. What should I do to fix the error?
My suggestions: remove -static replace /usr/lib/c-client.a with -lc-client -- Rex