Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Mar 2013 01:00:26 +0100
From:      "Julian H. Stacey" <jhs@berklix.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        questions@freebsd.org
Subject:   Re: buildowrld fails in sendmail 
Message-ID:  <201303020000.r2200Qrg005278@fire.js.berklix.net>
In-Reply-To: Your message "Fri, 01 Mar 2013 16:46:17 EST." <20785.8617.401737.814680@jerusalem.litteratus.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
Reference:
> From:		Robert Huff <roberthuff@rcn.com> 
> Date:		Fri, 1 Mar 2013 16:46:17 -0500 
> Message-id:	<20785.8617.401737.814680@jerusalem.litteratus.org> 

Robert Huff wrote:
> 
> 	On a system running:
> 
> FreeBSD 10.0-CURRENT #0: Sun Dec 30 12:52:09 EST 2012  amd64 
> 
> 	"make buildworld" fails with this:
> 
> 
> cc -O -pipe -g  -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/ -DSASL=2 -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sysexits.c
> cc -O -pipe -g  -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/ -DSASL=2 -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/timers.c
> cc -O -pipe -g  -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/ -DSASL=2 -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/tls.c
> cc -O -pipe -g  -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/ -DSASL=2 -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/trace.c
> cc -O -pipe -g  -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/ -DSASL=2 -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/udb.c
> cc -O -pipe -g  -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/ -DSASL=2 -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.c
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.c:1797:50: error: incompatible pointer types passing 'void ()' to parameter of type 'void (*)(char *, bool, MAILER *, struct mailer_con_info *, ENVELOPE *)' [-Werror,-Wincompatible-pointer-types]
>         smtpresult = reply(m, mci, e, TimeOuts.to_auth, getsasldata, NULL,
>                                                         ^~~~~~~~~~~
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:2519:67: note: passing argument to parameter here
> extern int      reply __P((MAILER *, MCI *, ENVELOPE *, time_t, void (*)__P((char *, bool, MAILER *, MCI *, ENVELOPE *)), char **, int));
>                                                                        ^
> /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:136:21: note: expanded from macro '__P'
> #define __P(protos)     protos          /* full-blown ANSI C */
>                         ^
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.c:1842:9: error: incompatible pointer types passing 'void ()' to parameter of type 'void (*)(char *, bool, MAILER *, struct mailer_con_info *, ENVELOPE *)' [-Werror,-Wincompatible-pointer-types]
>                                            getsasldata, NULL, XS_AUTH);
>                                            ^~~~~~~~~~~
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:2519:67: note: passing argument to parameter here
> extern int      reply __P((MAILER *, MCI *, ENVELOPE *, time_t, void (*)__P((char *, bool, MAILER *, MCI *, ENVELOPE *)), char **, int));
>                                                                        ^
> /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:136:21: note: expanded from macro '__P'
> #define __P(protos)     protos          /* full-blown ANSI C */
>                         ^
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.c:1864:8: error: incompatible pointer types passing 'void ()' to parameter of type 'void (*)(char *, bool, MAILER *, struct mailer_con_info *, ENVELOPE *)' [-Werror,-Wincompatible-pointer-types]
>                                    getsasldata, NULL, XS_AUTH);
>                                    ^~~~~~~~~~~
> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:2519:67: note: passing argument to parameter here
> extern int      reply __P((MAILER *, MCI *, ENVELOPE *, time_t, void (*)__P((char *, bool, MAILER *, MCI *, ENVELOPE *)), char **, int));
>                                                                        ^
> /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:136:21: note: expanded from macro '__P'
> #define __P(protos)     protos          /* full-blown ANSI C */
>                         ^
> 3 errors generated.
> *** [usersmtp.o] Error code 1
> 
> Stop in /usr/src/usr.sbin/sendmail.
> *** [all] Error code 1
> 
> Stop in /usr/src/usr.sbin.
> *** [usr.sbin.all__D] Error code 1
> 
> 	"make.conf" is appended.
> 	Any idea what I've borked?
> 	Respectfully,
> 
> 
> 				Robert Huff
> 
> 		****		make.conf
> 
> CFLAGS=			-O -pipe -g 
> STRIP= 
> SYMVER_ENABLED=	yes
> X_WINDOW_SYSTEM=	xorg
> HAVE_MOTIF=		yes
> 
> #FC="gfortran42"
> 
> KERNCONF=JERUSALEM
> 
> # To avoid building various parts of the base system:
> #	(copied from /usr/share/examples/etc/make.conf
> 
> #NO_BOOT=       true    # do not build boot blocks and loader
> #NO_CVS=        true    # do not build CVS
> #NO_CXX=        true    # do not build C++ and friends
> #NO_BIND=       true    # do not build BIND
> NO_BIND_ETC=       true    # Do not install files to /etc/namedb
> NO_BLUETOOTH=  true    # do not build Bluetooth related stuff
> #NO_FORTRAN=    true    # do not build g77 and related libraries
> #NO_GDB=        true    # do not build GDB
> #NO_I4B=        true    # do not build isdn4bsd package
> #NO_IPFILTER=   true    # do not build IP Filter package
> #NO_PF=         true    # do not build PF firewall package
> #NO_AUTHPF=     true    # do not build and install authpf (setuid/gid)
> #NO_KERBEROS=   true    # do not build and install Kerberos 5 (KTH Heimdal)
> #NO_LPR=        true    # do not build lpr and related programs
> #NO_MAILWRAPPER=true    # do not build the mailwrapper(8) MTA selector
> #NO_MODULES=    true    # do not build modules with the kernel
> #NO_OBJC=       true    # do not build Objective C support
> #NO_OPENSSH=    true    # do not build OpenSSH
> #NO_OPENSSL=    true    # do not build OpenSSL (implies NO_KERBEROS/NO_OPENSSH)
> #NO_SENDMAIL=   true    # do not build sendmail and related programs
> #NO_SHAREDOCS=  true    # do not build the 4.4BSD legacy docs
> #NO_TCSH=       true    # do not build and install /bin/csh (which is tcsh)
> #NO_VINUM=      true    # do not build Vinum utilities
> #NOCRYPT=       true    # do not build any crypto code
> #NOGAMES=       true    # do not build games (games/ subdir)
> #NOINFO=        true    # do not make or install info files
> #NOLIBC_R=      true    # do not build libc_r (re-entrant version of libc)
> #NOMAN=         true    # do not build manual pages
> NO_PROFILE=     true    # Avoid compiling profiled libraries
> #NOSHARE=       true    # do not go into the share subdir
> 
> #	to get automatic SASL in sendmail
> 
> SENDMAIL_CFLAGS+=	-I/usr/local/include/ -DSASL=2
> SENDMAIL_LDFLAGS+=	-L/usr/local/lib
> SENDMAIL_LDADD+=	-lsasl2
> 
> #
> #	to make CUPS magically keep working
> #	See: http://www.csua.berkeley.edu/~ranga/notes/freebsd_cups.html
> #
> 
> CUPS_OVERWRITE_BASE=	yes
> NO_LPR=				true
> 
> #	added per /usr/ports/UPDATING entry 20090401
> 
> OVERRIDE_LINUX_BASE_PORT=f10
> OVERRIDE_LINUX_NONBASE_PORTS=f10
> 
> #
> 
> WITH_MOZILLA=			libxul
> WITH_GECKO=			libxul
> 
> #
> # added 2007/03/04 per advice of <freebsd@troback.com> 
> #	in re science/gramps
> #
> 
> WITH_BERKELEYDB=db43
> WITH_BDB_VER=43
> WANT_OPENLDAP_VER=24
> WANT_OPENLDAP_SASL=true
> 
> #
> #  as required by ports/UPDATING of 20121012
> #
> 
> SAMBA_ENABLE=YES
> 
> #
> # PORTS: use clang unless gcc is explicitly required
> #
> 
> #
> # default to using clang for all port builds, with the following
> # exceptions
> 
> # ports which will only build with the base system GNU compiler (4.2)
> #
> # the "make index" target also seems to need this, for some reason
> 
> .if target(index) | \
> ${.CURDIR:M*/devel/antlr*} | \
> ${.CURDIR:M*/devel/google-perftools* } | \
> ${.CURDIR:M*/graphics/ImageMagick* } | \
> ${.CURDIR:M*/graphics/opencv*} | \
> ${.CURDIR:M*/x11/kdelibs4*} | \
> USE_GCC?=4.2
> .endif
> 
> # ports which need *some* version of the GNU compiler (won't build with
> # clang or have runtime issues if built with clang)
> # use the highest version of gcc we have installed from ports (4.6)
> 
> .if ${.CURDIR:M*/accessibility/jovie*} | \
> ${.CURDIR:M*/accessibility/kdeaccessibility4*} | \
> ${.CURDIR:M*/audio/grip*} | \
> ${.CURDIR:M*/audio/mpg123*} | \
> ${.CURDIR:M*/audio/rosegarden*} | \
> ${.CURDIR:M*/databases/virtuoso*} | \
> ${.CURDIR:M*/deskutils/kdepimlibs4*} | \
> ${.CURDIR:M*/devel/apache-ant*} | \
> ${.CURDIR:M*/devel/icu*} | \
> ${.CURDIR:M*/devel/kdevelop-kde4*} | \
> ${.CURDIR:M*/devel/kdevplatform*} | \
> ${.CURDIR:M*/devel/log4j*} | \
> ${.CURDIR:M*/games/kdegames4*} | \
> ${.CURDIR:M*/graphics/tonicpoint-viewer*} | \
> ${.CURDIR:M*/java/* } | \
> ${.CURDIR:M*/lang/gcc* } | \
> ${.CURDIR:M*/math/fftw3*} | \
> ${.CURDIR:M*/multimedia/avidemux2*} | \
> ${.CURDIR:M*/multimedia/kdemultimedia4*} | \
> ${.CURDIR:M*/multimedia/vlc*} | \
> ${.CURDIR:M*/multimedia/xbmc*} | \
> ${.CURDIR:M*/net/kdenetwork4*} | \
> ${.CURDIR:M*/net/mpich2*} | \
> ${.CURDIR:M*/net/opal3*} | \
> ${.CURDIR:M*/net-p2p/ktorrent*} | \
> ${.CURDIR:M*/net-p2p/vuze*} | \
> ${.CURDIR:M*/sysutils/lsof*} | \
> ${.CURDIR:M*/textproc/docbook-xsl*} | \
> ${.CURDIR:M*/textproc/fop*} | \
> ${.CURDIR:M*/www/libxul*} | \
> ${.CURDIR:M*/x11/kde4-baseapps*} | \
> ${.CURDIR:M*/x11/kde4-workspace*} | \
> ${.CURDIR:M*/x11/lxpanel*} | \
> USE_GCC?=4.6+
> .endif
> 
> .if ${.CURDIR:M*/usr/ports/*}
> .if !defined(USE_GCC)
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> .if !defined(CPP) || ${CPP} == "cpp"
> CPP=clang-cpp
> .endif
> .endif
> .endif
> 
> 
> WITH_NEW_XORG=yes
> 
> WITH_BSD_SORT=
> 
> 
> WITH_PKGNG=yes
> 
> # added by use.perl 2012-12-29 10:59:31
> PERL_VERSION=5.16.2
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 

Try
	mv /etc/make.conf /etc/make.conf.mv ; cd /usr/src ; make world
& it should work, proving its your make.conf

I normally do a world with a vanilla system & then slowly carefully add SASL,
'cos yes it breaks things as you saw.

I have a 
# .include      "/site/domain/this/etc/make.conf.sasl"
with
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

I see you have  += not = so you may be inheriting other parameters too.
> SENDMAIL_CFLAGS+=     -I/usr/local/include/ -DSASL=2
> SENDMAIL_LDFLAGS+=    -L/usr/local/lib
> SENDMAIL_LDADD+=      -lsasl2

I'm using 9.1-RELEASE.

As you'r quoting 10, you should ask on current@freebsd.org 
(questions@ was started to support beginners questions (on releases),
you've moved beyond :-)

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with "> ".
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303020000.r2200Qrg005278>