NetBSD Problem Report #53979

From www@NetBSD.org  Thu Feb 14 15:43:36 2019
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 0AEC27A154
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Feb 2019 15:43:36 +0000 (UTC)
Message-Id: <20190214154315.6F4267A1EC@mollari.NetBSD.org>
Date: Thu, 14 Feb 2019 15:43:15 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: OpenSSL builtin.mk does not work as intended on NetBSD-8 with legacy DES API
X-Send-Pr-Version: www-1.0

>Number:         53979
>Category:       pkg
>Synopsis:       OpenSSL builtin.mk does not work as intended on NetBSD-8 with legacy DES API
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 14 15:45:00 +0000 2019
>Originator:     Sevan Janiyan
>Release:        pkgsrc-current on NetBSD-8
>Organization:
>Environment:
NetBSD 8.0_STABLE macppc powerpc
>Description:
Attempting to build a package which use DES related API fails on NetBSD 8.0 due to builtin.mk including both openssl/des.h & the system provided des.h (/usr/include/des.h). In this scenario DES_LONG is defined as a different type within these heades and so the build of a packages fails because DES_LONG has been redefined.

From build.log of security/opensc
  CC       sm-common.lo
In file included from /scratch/work/security/opensc/work/.buildlink/include/openssl/des.h:3:0,
                 from sm-common.c:43:
/usr/include/des.h:69:0: error: "DES_LONG" redefined [-Werror]
 #define DES_LONG u_int32_t
 ^
In file included from /usr/include/openssl/e_os2.h:56:0,
                 from /usr/include/openssl/des.h:63,
                 from /scratch/work/security/opensc/work/.buildlink/include/openssl/des.h:2,
                 from sm-common.c:43:
/usr/include/openssl/opensslconf.h:181:0: note: this is the location of the previous definition
 #define DES_LONG uint32_t
 ^
cc1: all warnings being treated as errors


This is not an issue on NetBSD-HEAD
>How-To-Repeat:
build pkgsrc/security/opensc on NetBSD-8
>Fix:

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.