http cache & OpenSSL
Pavel Khusainov
alvelcom at rambler.ru
Tue Jun 16 11:26:05 MSD 2009
Конфигурю nginx-0.8.2
#./configure --with-pcre=./pcre-7.9/ --with-zlib=./zlib-1.2.3/
--with-openssl=../openssl-0.9.8k/
checking for OS
+ Linux 2.4.20-9asp i686
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 3.2.2 20030222 (ASPLinux 3.2.2-5asp)
checking for gcc -pipe switch ... found
checking for gcc variadic macros ... found
checking for C99 variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
+ rt signals found
checking for epoll ... not found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... not found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for system md library ... not found
checking for system md5 library ... not found
checking for OpenSSL md5 crypto library ... not found
./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http_cache option, or install the OpenSSL library into the
system,
or build the OpenSSL library statically from the source with nginx by
using
--with-openssl=<path> option.
Ставим эту опцию
#./configure --without-http_cache --with-pcre=./pcre-7.9/
--with-zlib=./zlib-1.2.3/ --with-openssl=../openssl-0.9.8k/
./configure: error: invalid option "--without-http_cache"
В ./configure --help увидел, что --without-http_cache пишется через
дифис
#./configure --without-http-cache --with-pcre=./pcre-7.9/
--with-zlib=./zlib-1.2.3/ --with-openssl=../openssl-0.9.8k/
всё нормально сконфигурировалось
делаю make, начинает собираться и
gcc -c -O -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 ./pcre-7.9/
-I ./zlib-1.2.3/ -I objs -I src/http -I src/http/modules \
-o objs/src/http/ngx_http_upstream.o \
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.c: In function
`ngx_http_upstream_hide_headers_hash':
src/http/ngx_http_upstream.c:4089: structure has no member named `cache'
src/http/ngx_http_upstream.c:4089: structure has no member named `cache'
make[1]: *** [objs/src/http/ngx_http_upstream.o] Ошибка 1
make[1]: Выход из каталог `/var/ftp/incoming/nginx-0.8.2'
make: *** [build] Ошибка 2
Залез src/http/ngx_http_upstream.c
изменил до этого
#if (NGX_HTTP_CACHE)
if (conf->hide_headers_hash.buckets
&& ((conf->cache == NULL) == (prev->cache == NULL)))
{
return NGX_OK;
}
#endif
такая же весчь была и в src/http/modules/ngx_http_proxy_module.c:2346
после этого всё скомпилировалось.
Однако, как скомпилировать со включеным file cache
More information about the nginx-ru
mailing list