I'm receiving the following warning when building openssl-1.0.0d:

making all in crypto/conf...
conf_api.c: In function '_CONF_get_string':
conf_api.c:144:5: warning: implicit declaration of function 'getenv'
conf_api.c:144:6: warning: assignment makes pointer from integer without a cast
conf_api.c:157:3: warning: return makes pointer from integer without a cast

The attached patch resolves the issue for me.

Index: crypto/conf/conf_api.c
===================================================================
--- crypto/conf/conf_api.c      (revision 26625)
+++ crypto/conf/conf_api.c      (revision 26626)
@@ -64,6 +64,7 @@
 #endif

 #include <assert.h>
+#include <stdlib.h>
 #include <string.h>
 #include <openssl/conf.h>
 #include <openssl/conf_api.h>

-- 
Doug Goldstein

Attachment: openssl-1.0.0d-getenv.patch
Description: Binary data

Reply via email to