filtercmd, krb5, heimdal

Joe Auty joe at netmusician.org
Sat Jan 13 20:03:02 UTC 2007


Hello,

Working with this guide:

http://perlstalker.amigo.net/tiki/tiki-index.php?page=serversidefilter 
%20on%20FreeBSD

First of all, I'm having the same problem described here:

http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/ 
124454.html

where the Heimdal port conflicts with krb5 and therefore won't  
install. I'm assuming that Heimdal is built into krb5 and that I  
won't need it, so moving along...



My initial problem was this build-time error:

# make
gcc -c filtercmd.c  -DSQUIRRELMAILCONFIGFILE='"/usr/local/www/ 
squirrelmail/config/config.php"'
gcc -c checkcreds_cclient.c
checkcreds_cclient.c:12:10: #include expects "FILENAME" or <FILENAME>
checkcreds_cclient.c: In function `checkcredentials':
checkcreds_cclient.c:28: error: `MAILTMPLEN' undeclared (first use in  
this function)
checkcreds_cclient.c:28: error: (Each undeclared identifier is  
reported only once
checkcreds_cclient.c:28: error: for each function it appears in.)
checkcreds_cclient.c:29: error: `MAILSTREAM' undeclared (first use in  
this function)
checkcreds_cclient.c:29: error: `stream' undeclared (first use in  
this function)
checkcreds_cclient.c:30: error: syntax error before "mb"
checkcreds_cclient.c:31: error: `DRIVER' undeclared (first use in  
this function)
checkcreds_cclient.c:31: error: `d' undeclared (first use in this  
function)
checkcreds_cclient.c:38:18: #include expects "FILENAME" or <FILENAME>
checkcreds_cclient.c:41: error: syntax error before ')' token
checkcreds_cclient.c:54: error: `NIL' undeclared (first use in this  
function)
checkcreds_cclient.c:54: error: `SET_MAXLOGINTRIALS' undeclared  
(first use in this function)
checkcreds_cclient.c: At top level:
checkcreds_cclient.c:78: error: syntax error before '*' token
checkcreds_cclient.c: In function `mm_login':
checkcreds_cclient.c:80: error: `mb' undeclared (first use in this  
function)
checkcreds_cclient.c:84: error: `user' undeclared (first use in this  
function)
checkcreds_cclient.c:84: error: `MAILTMPLEN' undeclared (first use in  
this function)
checkcreds_cclient.c:85: error: `pwd' undeclared (first use in this  
function)
checkcreds_cclient.c: In function `mm_log':
checkcreds_cclient.c:90: error: `NIL' undeclared (first use in this  
function)
checkcreds_cclient.c:91: error: `PARSE' undeclared (first use in this  
function)
checkcreds_cclient.c:92: error: `WARN' undeclared (first use in this  
function)
checkcreds_cclient.c:93: error: `ERROR' undeclared (first use in this  
function)
checkcreds_cclient.c: At top level:
checkcreds_cclient.c:100: error: syntax error before '*' token
checkcreds_cclient.c: In function `mm_notify':
checkcreds_cclient.c:101: error: `string' undeclared (first use in  
this function)
checkcreds_cclient.c:101: error: `errflg' undeclared (first use in  
this function)
checkcreds_cclient.c: At top level:
checkcreds_cclient.c:106: error: syntax error before '*' token
checkcreds_cclient.c:107: error: syntax error before '*' token
checkcreds_cclient.c:108: error: syntax error before '*' token
checkcreds_cclient.c:109: error: syntax error before '*' token
checkcreds_cclient.c:110: error: syntax error before '*' token
checkcreds_cclient.c:111: error: syntax error before '*' token
checkcreds_cclient.c:112: error: syntax error before '*' token
checkcreds_cclient.c:114: error: syntax error before '*' token
checkcreds_cclient.c:115: error: syntax error before '*' token
checkcreds_cclient.c:116: error: syntax error before '*' token
*** Error code 1

Stop in /usr/local/www/squirrelmail/plugins/serversidefilter/script.


The include in question that it doesn't like appears to be this:

// c-client library
#include MAIL_H

(this is line 12)

I changed this to the complete path to mail.h:

#include "/usr/local/include/c-client/mail.h"

I did the same for linkage.h, which it also complained about:

#include "/usr/local/include/c-client/linkage.c"


My remaining problem is this:

# make
gcc -o filtercmd filtercmd.o checkcreds_cclient.o -lc-client4 -lssl - 
lpam -lcrypt -lcom_err  -L /usr/local/lib -lz -lcrypto -L /usr/lib - 
static -lkrb5 -lk5crypto  -lgssapi -lopie -lradius -lskey -ltacplus - 
lutil -lmd -static
/usr/bin/ld: cannot find -lk5crypto
*** Error code 1

Stop in /usr/local/www/squirrelmail/plugins/serversidefilter/script.



Is this due to my missing Heimdal port? What would you suggest trying?







-----------
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe at netmusician.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070113/4c74d5d4/PGP.pgp


More information about the freebsd-questions mailing list