Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2007 15:03:07 -0500
From:      Joe Auty <joe@netmusician.org>
To:        freebsd-questions Questions <freebsd-questions@freebsd.org>
Subject:   filtercmd, krb5, heimdal
Message-ID:  <AEE85747-084C-4F06-9FEE-1AE6728491FD@netmusician.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-12--714656526
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

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@netmusician.org



--Apple-Mail-12--714656526
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFFqTr8CgdfeCwsL5ERAjoTAKCS54RF8MYJ0bOm+7Xb3Z7amOphKACeOKh3
SGVUX3KCTMer4khFAkMBfI0=
=lzuw
-----END PGP SIGNATURE-----

--Apple-Mail-12--714656526--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AEE85747-084C-4F06-9FEE-1AE6728491FD>