From owner-freebsd-questions@FreeBSD.ORG Sat Jan 13 20:03:02 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEE6F16A40F for ; Sat, 13 Jan 2007 20:03:02 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [216.9.132.179]) by mx1.freebsd.org (Postfix) with ESMTP id 1B33213C45A for ; Sat, 13 Jan 2007 20:03:02 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id A55DF7E8C7 for ; Sat, 13 Jan 2007 15:03:01 -0500 (EST) X-Virus-Scanned: by amavisd-new at netmusician.org Received: from netmusician.org ([127.0.0.1]) by localhost (netmusician.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EFBmTo7HV1P9 for ; Sat, 13 Jan 2007 15:03:00 -0500 (EST) Received: from [192.168.0.3] (74-130-30-11.dhcp.insightbb.com [74.130.30.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id 4C2937E8BF for ; Sat, 13 Jan 2007 15:03:00 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v752.2) To: freebsd-questions Questions Message-Id: Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-12--714656526" From: Joe Auty Date: Sat, 13 Jan 2007 15:03:07 -0500 Content-Transfer-Encoding: 7bit X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Gpgmail-State: signed X-Mailer: Apple Mail (2.752.2) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: filtercmd, krb5, heimdal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2007 20:03:02 -0000 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 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 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--