Subject: SASL, problem compiling sendmail
To: None <netbsd-users@netbsd.org>
From: Lista de NetBSD Users <list10@sepc.edu.mx>
List: netbsd-users
Date: 08/22/2001 18:31:22
Hello

I am preparing to work with sendmail, STARTTLS and SASL but
I have problems compiling sendmail.

I installed cyrus-sasl from /usr/pkgsrc without problems.

I uncomment the following 5 lines in
/usr/src/gnu/usr.sbin/sendmail/Makefile.inc
and I have errors in compilation

.if ${MKCRYPTO} != "no"
CPPFLAGS+=      -DSTARTTLS -D_FFR_TLS_TOREK
LDADD+=         -lssl -lcrypto
DPADD+=         ${LIBSSL} ${LIBCRYPTO}
.endif


Does anybody knows what to do in order to compile
sendmail cleanly?

TIA

Heron Gallegos

server# pwd
/usr/src/gnu/usr.sbin/sendmail
server#
server# cat Makefile.inc
#       $NetBSD: Makefile.inc,v 1.3.2.1 2001/03/09 18:01:23 he Exp $

WARNS?= 0

CPPFLAGS+=      -DNEWDB -DNIS
CPPFLAGS+=      -DMAP_REGEX -DTCPWRAPPERS -DNETISO
CPPFLAGS+=      -DNEEDSGETIPNODE -DNETINET6
CPPFLAGS+=      -I. -I${DIST}/sendmail/sendmail -I${DIST}/sendmail/include

.if ${MKCRYPTO} != "no"
CPPFLAGS+=      -DSTARTTLS -D_FFR_TLS_TOREK
LDADD+=         -lssl -lcrypto
DPADD+=         ${LIBSSL} ${LIBCRYPTO}
.endif

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
server#
server#
server# make
all ===> libsmdb
all ===> libsmutil
all ===> sendmail
cc -O2  -Werror   -DNEWDB -DNIS -DMAP_REGEX -DTCPWRAPPERS -DNETISO
-DNEEDSGETIPNODE -DNETINET6 -I.
-I/usr/src/gnu/usr.sbin/sendmail/sendmail/../../../dist/sendmail/sendmail
-I/usr/src/gnu/usr.sbin/sendmail/sendmail/../../../dist/sendmail/include
-DSTARTTLS -D_FFR_TLS_TOREK -c
/usr/src/gnu/usr.sbin/sendmail/sendmail/../../../dist/sendmail/sendmail/daemon.c
In file included from /usr/include/net/route.h:95,
                 from /usr/include/netinet/ip_var.h:42,
                 from
/usr/src/gnu/usr.sbin/sendmail/sendmail/../../../dist/sendmail/sendmail/daemon.c:59:
/usr/include/net/radix.h:140: warning: `Free' redefined
/usr/include/openssl/crypto.h:258: warning: this is the location of the
previous definition
*** Error code 1

Stop.
*** Error code 1

Stop.
server# uname -a
NetBSD server 1.5.1 NetBSD 1.5.1 (SERVER) #1: Sun Aug  5 17:36:47 CDT 2001
gallegos@server:/usr/src/sys/arch/i386/compile/SERVER i386