pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53979: OpenSSL builtin.mk does not work as intended on NetBSD-8 with legacy DES API



>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:



Home | Main Index | Thread Index | Old Index