Невозможно скомпилировать nginx 1.0.4 на OSX lion

Valery Viktorovsky viktorovsky на gmail.com
Вт Июл 5 17:54:19 UTC 2011


Привет,

обновил OSX до Lion, пытаюсь скомпилить nginx v1.0.4, но безуспешно.

получаю:
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
		-o objs/src/core/ngx_crypt.o \
		src/core/ngx_crypt.c
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)
src/core/ngx_crypt.c:77: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:78: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:79: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:81: warning: ‘MD5_Init’ is deprecated (declared at /usr/include/openssl/md5.h:113)
src/core/ngx_crypt.c:82: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:83: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:84: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:85: warning: ‘MD5_Final’ is deprecated (declared at /usr/include/openssl/md5.h:115)
src/core/ngx_crypt.c:88: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:95: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:98: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:102: warning: ‘MD5_Final’ is deprecated (declared at /usr/include/openssl/md5.h:115)
src/core/ngx_crypt.c:105: warning: ‘MD5_Init’ is deprecated (declared at /usr/include/openssl/md5.h:113)
src/core/ngx_crypt.c:108: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:111: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:115: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:119: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:123: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:126: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/core/ngx_crypt.c:129: warning: ‘MD5_Final’ is deprecated (declared at /usr/include/openssl/md5.h:115)
src/core/ngx_crypt.c: In function ‘ngx_crypt_ssha’:
src/core/ngx_crypt.c:215: warning: ‘SHA1_Init’ is deprecated (declared at /usr/include/openssl/sha.h:121)
src/core/ngx_crypt.c:216: warning: ‘SHA1_Update’ is deprecated (declared at /usr/include/openssl/sha.h:122)
src/core/ngx_crypt.c:217: warning: ‘SHA1_Update’ is deprecated (declared at /usr/include/openssl/sha.h:122)
src/core/ngx_crypt.c:218: warning: ‘SHA1_Final’ is deprecated (declared at /usr/include/openssl/sha.h:123)
make[1]: *** [objs/src/core/ngx_crypt.o] Error 1
make: *** [build] Error 2

при попытке компилить с опцией --without-http_auth_basic_module
получаю ошибку 
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
		-o objs/src/http/ngx_http_file_cache.o \
		src/http/ngx_http_file_cache.c
cc1: warnings being treated as errors
src/http/ngx_http_file_cache.c: In function ‘ngx_http_file_cache_create_key’:
src/http/ngx_http_file_cache.c:214: warning: ‘MD5_Init’ is deprecated (declared at /usr/include/openssl/md5.h:113)
src/http/ngx_http_file_cache.c:224: warning: ‘MD5_Update’ is deprecated (declared at /usr/include/openssl/md5.h:114)
src/http/ngx_http_file_cache.c:231: warning: ‘MD5_Final’ is deprecated (declared at /usr/include/openssl/md5.h:115)
make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1
make: *** [build] Error 2

система OSX Lion 10.7 с Xcode 4.1 developer preview 7
uname -a
Darwin book 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64 x86_64

openssl version
OpenSSL 0.9.8r 8 Feb 2011

И еще заметил, в OS X не существует файла crypt.h,  все функции из него содержаться в unistd.h, поэтому может быть стоит удалить проверку в configure, чтобы лишний раз не светилось
checking for crypt.h ... not found

С уважением,
Валерий


Подробная информация о списке рассылки nginx-ru