NetBSD-Bugs archive

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

Re: bin/51282: build of libdns fails when MKCRYPTO=no



The following reply was made to PR bin/51282; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51282: build of libdns fails when MKCRYPTO=no
Date: Tue, 28 Jun 2016 16:17:40 +0800 (PHT)

 The following patch to include/config.h allows the build to proceed to 
 completion.  Basically, we don't define the preprocessor macros for
 openssl components if we don't have openssl at all!
 
 It would be great if someone more familiar with this code could review 
 and comment.  Also, it might be useful to get this sent upstream?
 
 
 Index: config.h
 ===================================================================
 RCS file: /cvsroot/src/external/bsd/bind/include/config.h,v
 retrieving revision 1.19
 diff -u -p -r1.19 config.h
 --- config.h	26 May 2016 16:50:01 -0000	1.19
 +++ config.h	28 Jun 2016 08:15:20 -0000
 @@ -146,9 +146,13 @@ int sigwait(const unsigned int *set, int
   /** define if you have strerror in the C library. */
   #define HAVE_STRERROR 1
 
 +#ifdef OPENSSL
 +
   /* Define if OpenSSL includes DSA support */
   #define HAVE_OPENSSL_DSA 1
 
 +#endif
 +
   /* Define if you have getpassphrase in the C library. */
   /* #undef HAVE_GETPASSPHRASE */
 
 @@ -359,6 +363,8 @@ int sigwait(const unsigned int *set, int
   /* Define to 1 if you have the <net/route.h> header file. */
   #define HAVE_NET_ROUTE_H 1
 
 +#ifdef OPENSSL
 +
   /* Define if your OpenSSL version supports AES */
   #define HAVE_OPENSSL_AES 1
 
 @@ -371,6 +377,8 @@ int sigwait(const unsigned int *set, int
   /* Define if your OpenSSL version supports GOST. */
   #define HAVE_OPENSSL_GOST 1
 
 +#endif
 +
   /* Define if your PKCS11 provider supports ECDSA. */
   /* #undef HAVE_PKCS11_ECDSA */
 
 
 
 
 +------------------+--------------------------+------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
 +------------------+--------------------------+------------------------+
 


Home | Main Index | Thread Index | Old Index