Конфигурация<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&nbsp; -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g&nbsp; -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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o objs/src/http/ngx_http_file_cache.o \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 &lsquo;=&rsquo;, &lsquo;,&rsquo;, &lsquo;;&rsquo;, &lsquo;asm&rsquo; or &lsquo;__attribute__&rsquo; before &lsquo;ngx_md5_t&rsquo;<br>src/http/ngx_http_file_cache.c: In function &lsquo;ngx_http_file_cache_create_key&rsquo;:<br>
src/http/ngx_http_file_cache.c:120: error: &lsquo;ngx_md5_t&rsquo; 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 &lsquo;;&rsquo; before &lsquo;md5&rsquo;<br>cc1: warnings being treated as errors<br>src/http/ngx_http_file_cache.c:128: error: implicit declaration of function &lsquo;MD5_Init&rsquo;<br>src/http/ngx_http_file_cache.c:128: error: &lsquo;md5&rsquo; undeclared (first use in this function)<br>
src/http/ngx_http_file_cache.c:138: error: implicit declaration of function &lsquo;MD5_Update&rsquo;<br>src/http/ngx_http_file_cache.c:145: error: implicit declaration of function &lsquo;MD5_Final&rsquo;<br>make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1<br>
make[1]: Leaving directory `/opt/nginx-0.7.58&#39;<br>make: *** [build] Error 2<br><br><br>Если в конфиг добавить --without-http-cache то все проходит без ошибки<br><br><br>Вывод конфигуратора:<br><br>checking for OS<br>&nbsp;+ Linux 2.6.18-028stab060.8 x86_64<br>
checking for C compiler ... found<br>&nbsp;+ using GNU C compiler<br>&nbsp;+ 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(&quot;/dev/zero&quot;, 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>&nbsp; + using PCRE library: /opt/pcre-7.9<br>
&nbsp; + using OpenSSL library: /opt/openssl-0.9.8k<br>&nbsp; + md5: using OpenSSL library<br>&nbsp; + sha1 library is not used<br>&nbsp; + using system zlib library<br><br>&nbsp; nginx path prefix: &quot;/etc/nginx&quot;<br>&nbsp; nginx binary file: &quot;/usr/sbin/nginx&quot;<br>
&nbsp; nginx configuration prefix: &quot;/etc/nginx&quot;<br>&nbsp; nginx configuration file: &quot;/etc/nginx/nginx.conf&quot;<br>&nbsp; nginx pid file: &quot;/var/run/nginx.pid&quot;<br>&nbsp; nginx error log file: &quot;/var/log/nginx/error.log&quot;<br>
&nbsp; nginx http access log file: &quot;/var/log/nginx/access.log&quot;<br>&nbsp; nginx http client request body temporary files: &quot;client_body_temp&quot;<br>&nbsp; nginx http proxy temporary files: &quot;proxy_temp&quot;<br>&nbsp; nginx http fastcgi temporary files: &quot;fastcgi_temp&quot;<br>