Ошибка компиляции с модулем кеширования

Alex Vorona voron at amhost.net
Thu May 21 01:37:31 MSD 2009


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

А если добавить --with-http_ssl_module ?





More information about the nginx-ru mailing list