Конфигурация<br>./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --user=www-data --group=www-data --lock-path=/var/lock/nginx.lock --with-debug --with-http_stub_status_module --with-http_sub_module --with-http_realip_module --with-http_gzip_static_module --with-pcre=/opt/pcre-7.9 --with-md5=/opt/openssl-0.9.8i/crypto/md5 --with-openssl=/opt/openssl-0.9.8k<br>
<br>На этапе компиляции вываливается:<br><br>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 /opt/pcre-7.9 -I objs -I src/http -I src/http/modules \<br>
-o objs/src/http/ngx_http_file_cache.o \<br> src/http/ngx_http_file_cache.c<br>In file included from src/http/ngx_http_file_cache.c:10:<br>src/core/ngx_md5.h:16:25: error: openssl/md5.h: No such file or directory<br>
In file included from src/http/ngx_http_file_cache.c:10:<br>src/core/ngx_md5.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ngx_md5_t’<br>src/http/ngx_http_file_cache.c: In function ‘ngx_http_file_cache_create_key’:<br>
src/http/ngx_http_file_cache.c:120: error: ‘ngx_md5_t’ undeclared (first use in this function)<br>src/http/ngx_http_file_cache.c:120: error: (Each undeclared identifier is reported only once<br>src/http/ngx_http_file_cache.c:120: error: for each function it appears in.)<br>
src/http/ngx_http_file_cache.c:120: error: expected ‘;’ before ‘md5’<br>cc1: warnings being treated as errors<br>src/http/ngx_http_file_cache.c:128: error: implicit declaration of function ‘MD5_Init’<br>src/http/ngx_http_file_cache.c:128: error: ‘md5’ undeclared (first use in this function)<br>
src/http/ngx_http_file_cache.c:138: error: implicit declaration of function ‘MD5_Update’<br>src/http/ngx_http_file_cache.c:145: error: implicit declaration of function ‘MD5_Final’<br>make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1<br>
make[1]: Leaving directory `/opt/nginx-0.7.58'<br>make: *** [build] Error 2<br><br><br>Если в конфиг добавить --without-http-cache то все проходит без ошибки<br><br><br>Вывод конфигуратора:<br><br>checking for OS<br> + Linux 2.6.18-028stab060.8 x86_64<br>
checking for C compiler ... found<br> + using GNU C compiler<br> + gcc version: 4.3.2 (Debian 4.3.2-1.1)<br>checking for gcc -pipe switch ... found<br>checking for gcc variadic macros ... found<br>checking for C99 variadic macros ... found<br>
checking for unistd.h ... found<br>checking for inttypes.h ... found<br>checking for limits.h ... found<br>checking for sys/filio.h ... not found<br>checking for sys/param.h ... found<br>checking for sys/mount.h ... found<br>
checking for sys/statvfs.h ... found<br>checking for crypt.h ... found<br>checking for Linux specific features<br>checking for epoll ... found<br>checking for sendfile() ... found<br>checking for sendfile64() ... found<br>
checking for sys/prctl.h ... found<br>checking for prctl(PR_SET_DUMPABLE) ... found<br>checking for sched_setaffinity() ... found<br>checking for crypt_r() ... found<br>checking for sys/vfs.h ... found<br>checking for poll() ... found<br>
checking for /dev/poll ... not found<br>checking for kqueue ... not found<br>checking for crypt() ... not found<br>checking for crypt() in libcrypt ... found<br>checking for O_DIRECT ... found<br>checking for F_NOCACHE ... not found<br>
checking for directio() ... not found<br>checking for statfs() ... found<br>checking for statvfs() ... found<br>checking for zlib library ... found<br>creating objs/Makefile<br>checking for int size ... 4 bytes<br>checking for long size ... 8 bytes<br>
checking for long long size ... 8 bytes<br>checking for void * size ... 8 bytes<br>checking for uint64_t ... found<br>checking for sig_atomic_t ... found<br>checking for sig_atomic_t size ... 4 bytes<br>checking for socklen_t ... found<br>
checking for in_addr_t ... found<br>checking for in_port_t ... found<br>checking for rlim_t ... found<br>checking for uintptr_t ... uintptr_t found<br>checking for system endianess ... little endianess<br>checking for size_t size ... 8 bytes<br>
checking for off_t size ... 8 bytes<br>checking for time_t size ... 8 bytes<br>checking for setproctitle() ... not found<br>checking for pread() ... found<br>checking for pwrite() ... found<br>checking for strerror_r() ... found but is not working<br>
checking for gnu style strerror_r() ... found<br>checking for localtime_r() ... found<br>checking for posix_memalign() ... found<br>checking for memalign() ... found<br>checking for sched_yield() ... found<br>checking for dlopen() ... not found<br>
checking for dlopen() in libdl ... found<br>checking for mmap(MAP_ANON|MAP_SHARED) ... found<br>checking for mmap("/dev/zero", MAP_SHARED) ... found<br>checking for System V shared memory ... found<br>checking for struct msghdr.msg_control ... found<br>
checking for ioctl(FIONBIO) ... found<br>checking for struct tm.tm_gmtoff ... found<br>checking for struct dirent.d_namlen ... not found<br>checking for struct dirent.d_type ... found<br><br>Configuration summary<br> + using PCRE library: /opt/pcre-7.9<br>
+ using OpenSSL library: /opt/openssl-0.9.8k<br> + md5: using OpenSSL library<br> + sha1 library is not used<br> + using system zlib library<br><br> nginx path prefix: "/etc/nginx"<br> nginx binary file: "/usr/sbin/nginx"<br>
nginx configuration prefix: "/etc/nginx"<br> nginx configuration file: "/etc/nginx/nginx.conf"<br> nginx pid file: "/var/run/nginx.pid"<br> nginx error log file: "/var/log/nginx/error.log"<br>
nginx http access log file: "/var/log/nginx/access.log"<br> nginx http client request body temporary files: "client_body_temp"<br> nginx http proxy temporary files: "proxy_temp"<br> nginx http fastcgi temporary files: "fastcgi_temp"<br>