agentzh/ngx_openresty — Issue #8: make failed without openssl
Author: bigplum
Created: 2012-02-29 05:18:07+00:00
State: open

./configure --with-debug --with-luajit --without-http_ssl_module

..... and make failed. For set-misc module need openssl, I didn't install openssl-dev.

make[1]: Leaving directory `/root/work/ngx_openresty-1.0.10.44/build/lua-rds-parser-0.04'
cd /root/work/ngx_openresty-1.0.10.44/build/nginx-1.0.10 && make
make[1]: Entering directory `/root/work/ngx_openresty-1.0.10.44/build/nginx-1.0.10'
make -f objs/Makefile
make[2]: Entering directory `/root/work/ngx_openresty-1.0.10.44/build/nginx-1.0.10'
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -g -O0 -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_devel_kit-0.2.17/objs -I objs/addon/ndk -I /root/work/ngx_openresty-1.0.10.44/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 -I objs -I src/http -I src/http/modules -I ../ngx_devel_kit-0.2.17/src -I src/mail \
-o objs/addon/src/ngx_http_set_hash.o \
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c
In file included from ../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:5:
src/core/ngx_sha1.h:18:17: error: sha.h: No such file or directory
In file included from ../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:5:
src/core/ngx_sha1.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ngx_sha1_t’
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c: In function ‘ngx_http_set_misc_set_sha1’:
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:28: error: ‘ngx_sha1_t’ undeclared (first use in this function)
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:28: error: (Each undeclared identifier is reported only once
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:28: error: for each function it appears in.)
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:28: error: expected ‘;’ before ‘sha’
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:36: warning: implicit declaration of function ‘SHA1_Init’
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:36: error: ‘sha’ undeclared (first use in this function)
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:37: warning: implicit declaration of function ‘SHA1_Update’
../set-misc-nginx-module-0.22rc4/src/ngx_http_set_hash.c:38: warning: implicit declaration of function ‘SHA1_Final’
make[2]: *** [objs/addon/src/ngx_http_set_hash.o] Error 1
make[2]: Leaving directory `/root/work/ngx_openresty-1.0.10.44/build/nginx-1.0.10'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/work/ngx_openresty-1.0.10.44/build/nginx-1.0.10'
make: *** [all] Error 2