From owner-freebsd-stable@freebsd.org Sat Oct 21 23:22:45 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8797E3CC63 for ; Sat, 21 Oct 2017 23:22:45 +0000 (UTC) (envelope-from howard@leadmon.net) Received: from leadmon.net (mail.leadmon.net [IPv6:2001:550:102:5::130]) by mx1.freebsd.org (Postfix) with ESMTP id 84FAB6F223 for ; Sat, 21 Oct 2017 23:22:45 +0000 (UTC) (envelope-from howard@leadmon.net) Received: from localhost (localhost [127.0.0.1]) by leadmon.net (Postfix) with ESMTP id E9DC411238 for ; Sat, 21 Oct 2017 19:22:43 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at leadmon.net Received: from leadmon.net ([127.0.0.1]) by localhost (mail.leadmon.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qorSoWkmWPNo for ; Sat, 21 Oct 2017 19:22:39 -0400 (EDT) Received: from [IPv6:2001:559:80fd:0:4c93:1786:c892:5868] (unknown [IPv6:2001:559:80fd:0:4c93:1786:c892:5868]) by leadmon.net (Postfix) with ESMTPSA id 4C28D11221 for ; Sat, 21 Oct 2017 19:22:39 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 leadmon.net 4C28D11221 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=leadmon.net; s=default; t=1508628159; bh=BDrzOba5BYRVv1cfMRnIDOz3ZHO3n2Tn7YBkX2QEnSA=; h=To:From:Subject:Date:From; b=NdAoLTxDesFhqnyimUOcdgZzK7DBLKNvp6V0Y1qZUMD3z1jM/4kMwd4ofvoYG9LtZ DzEXjrK77UrDI1K6TSibteUxL1x0myFHVwaytaY+yAQdSoxnMDDVqOsDjI/WIa/vBz EvctzESFtjM1GHJyGuSPmQiPD73rB66giPn/qu/8= To: freebsd-stable@freebsd.org From: Howard Leadmon Subject: Freebsd 10 to 11 sendmail compile issues.. Organization: PBW Communications Message-ID: <7a4b5f15-1bab-9ab4-1ecf-8ffbf8546758@leadmon.net> Date: Sat, 21 Oct 2017 19:22:40 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Oct 2017 23:22:45 -0000  Hopefully someone can help or give me a pointer to a solution to this one.   Running FreeBSD 10.3 and figured I would do a source build and jump to FreeBSD 11.1.  For the most part this seemed to be going well, but when it goes to compile sendmail, it spits out the following error: bmake[4]: "/usr/src/share/mk/src.libnames.mk" line 391: /usr/src/libexec/mail.local: These libraries should be LIBADD+=foo rather than DPADD/LDADD+=-lfoo:  ssl crypto I have the following flags in /etc/make.conf: SENDMAIL_CFLAGS= -I/usr/local/include -DSASL=2 -DDNSMAP -DSTARTTLS SENDMAIL_LDFLAGS= -L/usr/local/lib SENDMAIL_LDADD= -lsasl2 -lssl -lcrypto  So I trhought OK, simple enough looking at the error and changed this over to the following: SENDMAIL_CFLAGS= -I/usr/local/include -DSASL=2 -DDNSMAP -DSTARTTLS SENDMAIL_LDFLAGS= -L/usr/local/lib SENDMAIL_LIBADD+= sasl2 ssl crypto  After that the error received was that I didn't has sasl2: --- ELF/Arch/AMDGPU.o --- c++   -O2 -pipe -march=nocona -I/usr/src/contrib/llvm/tools/lld/ELF -I/usr/src/contrib/llvm/tools/lld/include -I/usr/obj/usr/src/usr.bin/clang/lld -I/usr/obj/usr/src/lib/clang/libllvm -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.1\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.1\" -DDEFAULT_SYSROOT=\"\" -ffunction-sections -fdata-sections -g -MD -MF.depend.ELF_Arch_AMDGPU.o -MTELF/Arch/AMDGPU.o -fstack-protector-strong -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions  -c /usr/src/contrib/llvm/tools/lld/ELF/Arch/AMDGPU.cpp -o ELF/Arch/AMDGPU.o --- all_subdir_usr.sbin --- deliver.o: In function `endmailer': /usr/src/contrib/sendmail/src/deliver.c:3874: undefined reference to `sasl_dispose' deliver.o: In function `deliver': /usr/src/contrib/sendmail/src/deliver.c:3137: undefined reference to `sasl_getprop' main.o: In function `main': /usr/src/contrib/sendmail/src/main.c:2303: undefined reference to `sasl_server_init' /usr/src/contrib/sendmail/src/main.c:2305: undefined reference to `sasl_errstring' sasl.o: In function `sm_sasl_init': /usr/src/contrib/sendmail/src/sasl.c:146: undefined reference to `sasl_set_alloc' sfsasl.o: In function `sasl_read': /usr/src/contrib/sendmail/src/sfsasl.c:224: undefined reference to `sasl_decode' sfsasl.o: In function `sasl_write': /usr/src/contrib/sendmail/src/sfsasl.c:311: undefined reference to `sasl_getprop' /usr/src/contrib/sendmail/src/sfsasl.c:316: undefined reference to `sasl_encode' srvrsmtp.o: In function `smtp': /usr/src/contrib/sendmail/src/srvrsmtp.c:951: undefined reference to `sasl_server_new' /usr/src/contrib/sendmail/src/srvrsmtp.c:1004: undefined reference to `sasl_setprop' /usr/src/contrib/sendmail/src/srvrsmtp.c:1018: undefined reference to `sasl_setprop' /usr/src/contrib/sendmail/src/srvrsmtp.c:1069: undefined reference to `sasl_setprop' /usr/src/contrib/sendmail/src/srvrsmtp.c:1081: undefined reference to `sasl_setprop' /usr/src/contrib/sendmail/src/srvrsmtp.c:1083: undefined reference to `sasl_setprop' srvrsmtp.o:/usr/src/contrib/sendmail/src/srvrsmtp.c:2254: more undefined references to `sasl_setprop' follow  So apparently that change seems to be including ssl and crypto but not sasl2 for some reason.    I have googled looking for examples of how to correct it, but everything I find shows the original way I had it to start with, and clearly that is no longer working.  Any ideas on how I need to define this would be most appreciated.. --- Howard Leadmon PBW Communications, LLC http://www.pbwcomm.com