NetBSD Problem Report #53407

From www@NetBSD.org  Wed Jun 27 18:00:05 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 EEFA67A1F7
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 Jun 2018 18:00:04 +0000 (UTC)
Message-Id: <20180627180002.E579D7A222@mollari.NetBSD.org>
Date: Wed, 27 Jun 2018 18:00:02 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: netatalk22 does not build with OpenSSL v1.1.x in -current
X-Send-Pr-Version: www-1.0

>Number:         53407
>Category:       pkg
>Synopsis:       netatalk22 does not build with OpenSSL v1.1.x in -current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    markd
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 18:05:00 +0000 2018
>Last-Modified:  Sun Jul 08 10:21:48 +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:
Since the import of OpenSSL v1.1.x to NetBSD-current, netatalk22 builds
fail:

[...]
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..   -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db5 -I/usr/include/openssl -I/usr/pkg/include -I../../sys/netbsd -I../../include -D_U_="__attribute__((unused))" -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db5 -I../../sys -MT uams_randnum.lo -MD -MP -MF .deps/uams_randnum.Tpo -c -o uams_randnum.lo uams_randnum.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/pkgsrc/net/netatalk22/work/.buildlink/include -I/var/tmp/pkgsrc/net/netatalk22/work/.buildlink/include/db5 -I/usr/include/openssl -I../../sys/netbsd -I../../include "-D_U_=__attribute__((unused))" -O2 -D_FORTIFY_SOURCE=2 -I../../sys -MT uams_randnum.lo -MD -MP -MF .deps/uams_randnum.Tpo -c uams_randnum.c  -fPIC -DPIC -o .libs/uams_randnum.o
uams_randnum.c:58:8: error: unknown type name 'C_Block'
 static C_Block  seskey;
        ^~~~~~~
uams_randnum.c:59:8: error: unknown type name 'Key_schedule'
 static Key_schedule seskeysched;
        ^~~~~~~~~~~~
uams_randnum.c: In function 'afppasswd':
uams_randnum.c:149:3: error: unknown type name 'Key_schedule'
   Key_schedule schedule;
   ^~~~~~~~~~~~
uams_randnum.c:206:7: warning: implicit declaration of function 'key_sched' [-Wimplicit-function-declaration]
       key_sched((C_Block *) key, schedule);
       ^~~~~~~~~
uams_randnum.c:206:18: error: 'C_Block' undeclared (first use in this function)
       key_sched((C_Block *) key, schedule);
                  ^~~~~~~
uams_randnum.c:206:18: note: each undeclared identifier is reported only once for each function it appears in
uams_randnum.c:206:27: error: expected expression before ')' token
       key_sched((C_Block *) key, schedule);
                           ^
uams_randnum.c:212:2: warning: implicit declaration of function 'ecb_encrypt' [-Wimplicit-function-declaration]
  ecb_encrypt((C_Block *) passwd, (C_Block *) passwd, schedule,
  ^~~~~~~~~~~
uams_randnum.c:212:24: error: expected expression before ')' token
  ecb_encrypt((C_Block *) passwd, (C_Block *) passwd, schedule,
                        ^
uams_randnum.c:216:24: error: expected expression before ')' token
  ecb_encrypt((C_Block *) p, (C_Block *) p, schedule, DES_DECRYPT);
                        ^
uams_randnum.c: In function 'rand_login':
uams_randnum.c:324:44: warning: passing argument 3 of 'randpass' makes pointer from integer without a cast [-Wint-conversion]
   if ((err = randpass(randpwd, passwdfile, seskey,
                                            ^~~~~~
uams_randnum.c:262:12: note: expected 'unsigned char *' but argument is of type 'int'
 static int randpass(const struct passwd *pwd, const char *file,
            ^~~~~~~~
uams_randnum.c: In function 'randnum_logincont':
uams_randnum.c:365:14: error: 'C_Block' undeclared (first use in this function)
   key_sched((C_Block *) seskey, seskeysched);
              ^~~~~~~
uams_randnum.c:365:23: error: expected expression before ')' token
   key_sched((C_Block *) seskey, seskeysched);
                       ^
In file included from /usr/include/ssp/stdio.h:34:0,
                 from /usr/include/stdio.h:597,
                 from uams_randnum.c:13:
uams_randnum.c:366:10: warning: passing argument 1 of '__builtin_object_size' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
uams_randnum.c:366:10: note: expected 'const void *' but argument is of type 'int'
uams_randnum.c:366:10: warning: passing argument 1 of '__builtin_object_size' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
uams_randnum.c:366:10: note: expected 'const void *' but argument is of type 'int'
In file included from /usr/include/string.h:127:0,
                 from uams_randnum.c:18:
uams_randnum.c:366:10: warning: passing argument 1 of '__builtin___memset_chk' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
uams_randnum.c:366:10: note: expected 'void *' but argument is of type 'int'
uams_randnum.c:366:10: warning: passing argument 1 of '__memset_ichk' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
/usr/include/ssp/string.h:84:1: note: expected 'void *' but argument is of type 'int'
 __ssp_bos_icheck3(memset, void *, int)
 ^
uams_randnum.c:367:25: error: expected expression before ')' token
   ecb_encrypt((C_Block *) randbuf, (C_Block *) randbuf,
                         ^
uams_randnum.c: In function 'rand2num_logincont':
uams_randnum.c:406:11: error: subscripted value is neither array nor pointer nor vector
     seskey[i] <<= 1;
           ^
uams_randnum.c:409:14: error: 'C_Block' undeclared (first use in this function)
   key_sched((C_Block *) seskey, seskeysched);
              ^~~~~~~
uams_randnum.c:409:23: error: expected expression before ')' token
   key_sched((C_Block *) seskey, seskeysched);
                       ^
In file included from /usr/include/ssp/stdio.h:34:0,
                 from /usr/include/stdio.h:597,
                 from uams_randnum.c:13:
uams_randnum.c:410:10: warning: passing argument 1 of '__builtin_object_size' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
uams_randnum.c:410:10: note: expected 'const void *' but argument is of type 'int'
uams_randnum.c:410:10: warning: passing argument 1 of '__builtin_object_size' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
uams_randnum.c:410:10: note: expected 'const void *' but argument is of type 'int'
In file included from /usr/include/string.h:127:0,
                 from uams_randnum.c:18:
uams_randnum.c:410:10: warning: passing argument 1 of '__builtin___memset_chk' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
uams_randnum.c:410:10: note: expected 'void *' but argument is of type 'int'
uams_randnum.c:410:10: warning: passing argument 1 of '__memset_ichk' makes pointer from integer without a cast [-Wint-conversion]
   memset(seskey, 0, sizeof(seskey));
          ^
/usr/include/ssp/string.h:84:1: note: expected 'void *' but argument is of type 'int'
 __ssp_bos_icheck3(memset, void *, int)
 ^
uams_randnum.c:411:26: error: expected expression before ')' token
   ecb_encrypt( (C_Block *) randbuf, (C_Block *) randbuf,
                          ^
uams_randnum.c:424:26: error: expected expression before ')' token
   ecb_encrypt( (C_Block *) ibuf, (C_Block *) rbuf,
                          ^
uams_randnum.c: In function 'randnum_changepw':
uams_randnum.c:455:42: warning: passing argument 3 of 'randpass' makes pointer from integer without a cast [-Wint-conversion]
     if ((err = randpass(pwd, passwdfile, seskey,
                                          ^~~~~~
uams_randnum.c:262:12: note: expected 'unsigned char *' but argument is of type 'int'
 static int randpass(const struct passwd *pwd, const char *file,
            ^~~~~~~~
uams_randnum.c:460:16: error: 'C_Block' undeclared (first use in this function)
     key_sched((C_Block *) seskey, seskeysched);
                ^~~~~~~
uams_randnum.c:460:25: error: expected expression before ')' token
     key_sched((C_Block *) seskey, seskeysched);
                         ^
uams_randnum.c:463:28: error: expected expression before ')' token
     ecb_encrypt( (C_Block *) ibuf, (C_Block *) ibuf, seskeysched, DES_DECRYPT);
                            ^
uams_randnum.c:466:25: error: expected expression before ')' token
     key_sched((C_Block *) ibuf, seskeysched);
                         ^
uams_randnum.c:468:27: error: expected expression before ')' token
     ecb_encrypt((C_Block *) ibuf, (C_Block *) ibuf, seskeysched, DES_DECRYPT);
                           ^
uams_randnum.c:469:16: warning: passing argument 1 of 'memcmp' makes pointer from integer without a cast [-Wint-conversion]
     if (memcmp(seskey, ibuf, sizeof(seskey)))
                ^~~~~~
In file included from uams_randnum.c:18:0:
/usr/include/string.h:50:6: note: expected 'const void *' but argument is of type 'int'
 int  memcmp(const void *, const void *, size_t);
      ^~~~~~
uams_randnum.c:471:21: warning: passing argument 1 of 'memcmp' makes pointer from integer without a cast [-Wint-conversion]
     else if (memcmp(seskey, ibuf + PASSWDLEN, sizeof(seskey)) == 0)
                     ^~~~~~
In file included from uams_randnum.c:18:0:
/usr/include/string.h:50:6: note: expected 'const void *' but argument is of type 'int'
 int  memcmp(const void *, const void *, size_t);
      ^~~~~~
In file included from /usr/include/ssp/stdio.h:34:0,
                 from /usr/include/stdio.h:597,
                 from uams_randnum.c:13:
uams_randnum.c:483:12: warning: passing argument 1 of '__builtin_object_size' makes pointer from integer without a cast [-Wint-conversion]
     memset(seskey, 0, sizeof(seskey));
            ^
uams_randnum.c:483:12: note: expected 'const void *' but argument is of type 'int'
uams_randnum.c:483:12: warning: passing argument 1 of '__builtin_object_size' makes pointer from integer without a cast [-Wint-conversion]
     memset(seskey, 0, sizeof(seskey));
            ^
uams_randnum.c:483:12: note: expected 'const void *' but argument is of type 'int'
In file included from /usr/include/string.h:127:0,
                 from uams_randnum.c:18:
uams_randnum.c:483:12: warning: passing argument 1 of '__builtin___memset_chk' makes pointer from integer without a cast [-Wint-conversion]
     memset(seskey, 0, sizeof(seskey));
            ^
uams_randnum.c:483:12: note: expected 'void *' but argument is of type 'int'
uams_randnum.c:483:12: warning: passing argument 1 of '__memset_ichk' makes pointer from integer without a cast [-Wint-conversion]
     memset(seskey, 0, sizeof(seskey));
            ^
/usr/include/ssp/string.h:84:1: note: expected 'void *' but argument is of type 'int'
 __ssp_bos_icheck3(memset, void *, int)
 ^
Makefile:758: recipe for target 'uams_randnum.lo' failed
[...]

Similar failures observed in 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

>How-To-Repeat:
Attempt to build "net/netatalk22" on -current (8.99.x) after the import
of OpenSSL v1.1.x
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->markd
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sun, 08 Jul 2018 10:21:48 +0000
Responsible-Changed-Why:
Over to 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.