NetBSD Problem Report #53401

From www@NetBSD.org  Wed Jun 27 02:03:28 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 363987A0D9
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 Jun 2018 02:03:28 +0000 (UTC)
Message-Id: <20180627020326.5D9C17A1B1@mollari.NetBSD.org>
Date: Wed, 27 Jun 2018 02:03:26 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: mail/sendmail build fails with OpenSSL 1.1 in -current
X-Send-Pr-Version: www-1.0

>Number:         53401
>Category:       pkg
>Synopsis:       mail/sendmail build fails with OpenSSL 1.1 in -current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jnemeth
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 02:05:00 +0000 2018
>Last-Modified:  Sun Jul 08 10:22:44 +0000 2018
>Originator:     John D. Baker
>Release:        NetBSD/sparc-8.99.21, pkgsrc-HEAD (pre-pkgsrc-2018Q2)
>Organization:
>Environment:
NetBSD david.technoskunk.fur 8.99.21 NetBSD 8.99.21 (DAVID) #25: Tue Jun 26 13:37:45 CDT 2018  sysop@plex760.technoskunk.fur:/r0/build/current/obj/sparc/sys/arch/sparc/compile/DAVID sparc

>Description:
I last built "mail/sendmail" on this system exactly one year ago and
would have been none the wiser if my ISP had not started requiring
authentication for relay.

Setting about building with the "sasl" option enabled, the build
eventually failed in the stage-install phase with:

[...]
=> Checking file-check results for sendmail-8.15.2nb2
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg:
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/bin/hoststat
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/bin/mailq
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/bin/newaliases
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/bin/purgestat
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/libexec/sendmail/sendmail
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/man/man1/mailq.1
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/man/man1/newaliases.1
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/man/man5/aliases.5
ERROR:         /var/tmp/pkgsrc/mail/sendmail/work/.destdir/usr/pkg/man/man8/sendmail.8
*** Error code 1

Stop.
make[1]: stopped in /x/pkgsrc/mail/sendmail
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/mail/sendmail


This is also seen in the bulk-build reports:

  http://mail-index.netbsd.org/pkgsrc-bulk/2018/06/05/msg016020.html
  http://mail-index.netbsd.org/pkgsrc-bulk/2018/06/23/msg016088.html

The actual error occurs much earlier, but the build continues
anyway:

[...]
cc -O -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX -DSOCKETMAP -DLDAPMAP -D_FFR_LDAP_NETWORK_TIMEOUT -I/usr/pkg/include -DSMRSH_CMDDIR=\"/usr/pkg/libexec/sm.bin\" -DNETINET6 -DNEEDSGETIPNODE -DTCPWRAPPERS -DSASL=2 -DNAMED_RESN=0 -D_FFR_USE_GETPWNAM_ERRNO=1 -DMILTER -DSTARTTLS   -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/include -c tls.c
tls.c: In function 'get_dh512':
tls.c:70:4: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}'
  dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL);
    ^~
tls.c: In function 'inittls':
tls.c:929:22: warning: implicit declaration of function 'BIO_s_file_internal' [-Wimplicit-function-declaration]
   crl_file = BIO_new(BIO_s_file_internal());
                      ^~~~~~~~~~~~~~~~~~~
tls.c:929:22: warning: passing argument 1 of 'BIO_new' makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/openssl/ssl.h:48:0,
                 from ./sendmail.h:125,
                 from tls.c:11:
/usr/include/openssl/bio.h:535:6: note: expected 'const BIO_METHOD * {aka const struct bio_method_st *}' but argument is of type 'int'
 BIO *BIO_new(const BIO_METHOD *type);
      ^~~~~~~
tls.c:1006:6: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
      (rsa_tmp = RSA_generate_key(RSA_KEYLENGTH, RSA_F4, NULL,
      ^
In file included from /usr/include/openssl/rsa.h:13:0,
                 from /usr/include/openssl/x509.h:31,
                 from /usr/include/openssl/ssl.h:50,
                 from ./sendmail.h:125,
                 from tls.c:11:
/usr/include/openssl/rsa.h:193:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^
tls.c:1213:4: warning: 'DSA_generate_parameters' is deprecated [-Wdeprecated-declarations]
    dsa = DSA_generate_parameters(bits, NULL, 0, NULL,
    ^~~
In file included from /usr/include/openssl/dh.h:13:0,
                 from /usr/include/openssl/dsa.h:31,
                 from /usr/include/openssl/x509.h:32,
                 from /usr/include/openssl/ssl.h:50,
                 from ./sendmail.h:125,
                 from tls.c:11:
/usr/include/openssl/dsa.h:122:1: note: declared here
 DEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,
 ^
tls.c: In function 'tmp_rsa_key':
tls.c:1747:2: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
  rsa_tmp = RSA_generate_key(RSA_KEYLENGTH, RSA_F4, NULL, NULL);
  ^~~~~~~
In file included from /usr/include/openssl/rsa.h:13:0,
                 from /usr/include/openssl/x509.h:31,
                 from /usr/include/openssl/ssl.h:50,
                 from ./sendmail.h:125,
                 from tls.c:11:
/usr/include/openssl/rsa.h:193:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^
tls.c: In function 'x509_verify_cb':
tls.c:1974:10: error: dereferencing pointer to incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}'
   if (ctx->error == X509_V_ERR_UNABLE_TO_GET_CRL)
          ^~
*** Error code 1

Stop.
make[1]: stopped in /var/tmp/pkgsrc/mail/sendmail/work/sendmail-8.15.2/obj.NetBSD.8.99.21.sparc/sendmail
[...]

>How-To-Repeat:
Build "mail/sendmail" on any -current system after the import of
OpenSSL v1.1.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jnemeth
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sun, 08 Jul 2018 10:22:44 +0000
Responsible-Changed-Why:
Over to Sendmail maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.