From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 13:58:00 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B7C01065670 for ; Mon, 12 Mar 2012 13:58:00 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 92E578FC19 for ; Mon, 12 Mar 2012 13:57:59 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q2CDvfQP079334 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 12 Mar 2012 13:57:42 GMT (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.0 smtp.infracaninophile.co.uk q2CDvfQP079334 Authentication-Results: smtp.infracaninophile.co.uk/q2CDvfQP079334; dkim=none (no signature); dkim-adsp=none Message-ID: <4F5E00CE.6000600@FreeBSD.org> Date: Mon, 12 Mar 2012 13:57:34 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: kamolpat References: <4F58D68D.2060700@dmaccess.net> <4F58ED8A.7050602@FreeBSD.org> <4F5DF97B.7070306@dmaccess.net> In-Reply-To: <4F5DF97B.7070306@dmaccess.net> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig13AF0685895AB018AE7F6881" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@FreeBSD.org Subject: Re: question about SMTP-authentication (2nd ) 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: Mon, 12 Mar 2012 13:58:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig13AF0685895AB018AE7F6881 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/03/2012 13:26, kamolpat wrote: > According to your recommendation .... (as following). When I do make a= t > /usr/src/sur.sbin/sendmail it show as following. > ns1:kamolpat:/usr/src/usr.sbin/sendmail>make clean > rm -f sm_os.h sendmail alias.o arpadate.o bf.o collect.o conf.o > control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o > headers.o macro.o main.o map.o mci.o milter.o mime.o parseaddr.o queue.= o > ratectrl.o readcf.o recipient.o savemail.o sasl.o sfsasl.o shmticklib.o= > sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o timers.o tls.o trace.= o > udb.o usersmtp.o util.o version.o mailq.1.gz newaliases.1.gz > aliases.5.gz sendmail.8.gz mailq.1.cat.gz newaliases.1.cat.gz > aliases.5.cat.gz sendmail.8.cat.gz > ns1:kamolpat:/usr/src/usr.sbin/sendmail>make > ln -sf > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/include/sm/os/sm_os_f= reebsd.h > sm_os.h > cc -O2 -pipe -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src > -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB= > -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS > -D_FFR_TLS_1 -I/usr/local/include/sasl -DSASL=3D2 -std=3Dgnu99 > -fstack-protector -c > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c > In file included from > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14: > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:135:25= : > error: sasl/sasl.h: No such file or directory > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:136:29= : > error: sasl/saslutil.h: No such file or directory > In file included from > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c:14: > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:607: > error: expected '=3D', ',', ';', 'asm' or '__attribute__' before ':' to= ken > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:691: > error: expected specifier-qualifier-list before 'sasl_conn_t' > *** Error code 1 >=20 > Stop in /usr/src/usr.sbin/sendmail. >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > then I try to find where is sasl.h >=20 > ns1:kamolpat:/usr>find . -name "sasl.h" > ./local/include/sasl/sasl.h > ./ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.25/include/sasl.h > ./ports/security/cyrus-sasl2-saslauthd/work/cyrus-sasl-2.1.25/include/s= asl.h >=20 >=20 > What should I do next? Shold I just copy the sasl.h to > /usr/src/contrib/sendmail/src/sendmail ? No. Don't do that. It won't help anything. You need to follow my instructions correctly. Specifically this line needs to be in /etc/make.conf in order to pick up the SASL header files: SENDMAIL_CFLAGS=3D-I/usr/local/include -DSASL=3D2 Where, you will note, this does *not* say /usr/local/include/sasl, which is what appears in your compiler output. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig13AF0685895AB018AE7F6881 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9eANUACgkQ8Mjk52CukIx3BwCcChAhNuK4T4LyTcgnWnjx0FVB 9ccAn1IJbQWieQWq6MqTqZo/GWlejvHQ =cFV8 -----END PGP SIGNATURE----- --------------enig13AF0685895AB018AE7F6881--