MAC OS X Lion + Xcode + nginx-1.0.5 make error
Igor Sysoev
igor at sysoev.ru
Fri Jul 22 10:25:40 UTC 2011
Thank you. Are any pointers what they suggest to use instead ?
On Fri, Jul 22, 2011 at 06:14:37PM +0800, 191919 wrote:
> In Lion+Xcode 4.1, almost all openssl functions are "deprecated" by
> a DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER macro:
>
> 110 #ifdef OPENSSL_FIPS
> 111 int private_MD5_Init(MD5_CTX *c)
> DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
> 112 #endif
> 113 int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
> 114 int MD5_Update(MD5_CTX *c, const void *data, size_t len)
> DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
> 115 int MD5_Final(unsigned char *md, MD5_CTX *c)
> DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
> 116 unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md)
> DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
> 117 void MD5_Transform(MD5_CTX *c, const unsigned char *b)
> DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
> 118 #ifdef __cplusplus
> 119 }
> 120 #endif
>
> 2011/7/22 Igor Sysoev <igor at sysoev.ru>
>
> > On Fri, Jul 22, 2011 at 05:51:17AM -0400, qinjian wrote:
> >
> > > cc1: warnings being treated as errors
> > > src/core/ngx_crypt.c: In function ‘ngx_crypt_apr1’:
> > > src/core/ngx_crypt.c:76: warning: ‘MD5_Init’ is deprecated (declared
> > > at /usr/include/openssl/md5.h:113)
> >
> > > make[1]: *** [objs/src/core/ngx_crypt.o] Error 1
> > > make: *** [build] Error 2
> > > qinjianmatoMac:nginx-1.0.5 qinjian$ pwd
> > > /Users/qinjian/Downloads/nginx-1.0.5
> >
> > Could you please send me privatly /usr/include/openssl/md5.h file ?
--
Igor Sysoev
More information about the nginx
mailing list