NetBSD Problem Report #53979

From  Thu Feb 14 15:43:36 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 0AEC27A154
	for <>; Thu, 14 Feb 2019 15:43:36 +0000 (UTC)
Message-Id: <>
Date: Thu, 14 Feb 2019 15:43:15 +0000 (UTC)
Subject: OpenSSL 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 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
NetBSD 8.0_STABLE macppc powerpc
Attempting to build a package which use DES related API fails on NetBSD 8.0 due to 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
build pkgsrc/security/opensc on NetBSD-8

NetBSD Home
NetBSD PR Database Search

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