Skip to content

Instantly share code, notes, and snippets.

@hamishforbes
Created March 13, 2014 10:18
Show Gist options
  • Save hamishforbes/9525712 to your computer and use it in GitHub Desktop.
Save hamishforbes/9525712 to your computer and use it in GitHub Desktop.
Openresty 1.5.11.1rc1 OS X errors
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I/usr/local/Cellar/pcre/8.34/include -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/http -I src/http/modules -I src/os/unix -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /Users/hamish/edge/ngx_openresty-1.5.11.1rc1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -I ../ngx_lua-0.9.5/src/api -I objs \
-o objs/src/core/ngx_crypt.o \
src/core/ngx_crypt.c
src/core/ngx_crypt.c:82:5: error: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_init(&md5);
^
src/core/ngx_md5.h:30:25: note: expanded from macro 'ngx_md5_init'
#define ngx_md5_init MD5_Init
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:83:5: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&md5, key, keylen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:84:5: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&md5, (u_char *) "$apr1$", sizeof("$apr1$") - 1);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:85:5: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&md5, salt, saltlen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:87:5: error: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_init(&ctx1);
^
src/core/ngx_md5.h:30:25: note: expanded from macro 'ngx_md5_init'
#define ngx_md5_init MD5_Init
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:88:5: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, key, keylen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:89:5: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, salt, saltlen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:90:5: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, key, keylen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:91:5: error: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_final(final, &ctx1);
^
src/core/ngx_md5.h:32:25: note: expanded from macro 'ngx_md5_final'
#define ngx_md5_final MD5_Final
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:94:9: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&md5, final, n > 16 ? 16 : n);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:101:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&md5, final, 1);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:104:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&md5, key, 1);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:108:5: error: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_final(final, &md5);
^
src/core/ngx_md5.h:32:25: note: expanded from macro 'ngx_md5_final'
#define ngx_md5_final MD5_Final
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:111:9: error: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_init(&ctx1);
^
src/core/ngx_md5.h:30:25: note: expanded from macro 'ngx_md5_init'
#define ngx_md5_init MD5_Init
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:114:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, key, keylen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:117:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, final, 16);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:121:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, salt, saltlen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:125:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, key, keylen);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
src/core/ngx_crypt.c:129:13: error: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Werror,-Wdeprecated-declarations]
ngx_md5_update(&ctx1, final, 16);
^
src/core/ngx_md5.h:31:25: note: expanded from macro 'ngx_md5_update'
#define ngx_md5_update MD5_Update
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [objs/src/core/ngx_crypt.o] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I/usr/local/Cellar/pcre/8.34/include -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/http -I src/http/modules -I src/os/unix -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /Users/hamish/edge/ngx_openresty-1.5.11.1rc1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -I ../ngx_lua-0.9.5/src/api -I objs -I src/http -I src/http/modules -I ../ngx_devel_kit-0.2.19/src -I src/mail \
-o objs/addon/src/ngx_http_memc_response.o \
../memc-nginx-module-0.14/src/ngx_http_memc_response.c
src/ngx_http_memc_response.c:27:18: error: unused variable 'memc_storage_en_main' [-Werror,-Wunused-const-variable]
static const int memc_storage_en_main = 1;
^
src/ngx_http_memc_response.c:40:18: error: unused variable 'memc_flush_all_en_main' [-Werror,-Wunused-const-variable]
static const int memc_flush_all_en_main = 1;
^
src/ngx_http_memc_response.c:53:18: error: unused variable 'memc_version_en_main' [-Werror,-Wunused-const-variable]
static const int memc_version_en_main = 1;
^
src/ngx_http_memc_response.c:66:18: error: unused variable 'memc_stats_en_main' [-Werror,-Wunused-const-variable]
static const int memc_stats_en_main = 1;
^
src/ngx_http_memc_response.c:79:18: error: unused variable 'memc_delete_en_main' [-Werror,-Wunused-const-variable]
static const int memc_delete_en_main = 1;
^
src/ngx_http_memc_response.c:92:18: error: unused variable 'memc_incr_decr_en_main' [-Werror,-Wunused-const-variable]
static const int memc_incr_decr_en_main = 1;
^
6 errors generated.
make[2]: *** [objs/addon/src/ngx_http_memc_response.o] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I/usr/local/Cellar/pcre/8.34/include -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/http -I src/http/modules -I src/os/unix -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /Users/hamish/edge/ngx_openresty-1.5.11.1rc1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -I ../ngx_lua-0.9.5/src/api -I objs -I src/http -I src/http/modules -I ../ngx_devel_kit-0.2.19/src -I src/mail \
-o objs/addon/src/ngx_http_rds_csv_output.o \
../rds-csv-nginx-module-0.05/src/ngx_http_rds_csv_output.c
../rds-csv-nginx-module-0.05/src/ngx_http_rds_csv_output.c:413:17: error: variable 'need_quotes' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
if (need_quotes) {
^~~~~~~~~~~
../rds-csv-nginx-module-0.05/src/ngx_http_rds_csv_output.c:308:53: note: initialize the variable 'need_quotes' to silence this warning
unsigned need_quotes;
^
= 0
1 error generated.
make[2]: *** [objs/addon/src/ngx_http_rds_csv_output.o] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I/usr/local/Cellar/pcre/8.34/include -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/http -I src/http/modules -I src/os/unix -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /Users/hamish/edge/ngx_openresty-1.5.11.1rc1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -I ../ngx_lua-0.9.5/src/api -I objs -I src/http -I src/http/modules -I ../ngx_devel_kit-0.2.19/src -I src/mail \
-o objs/addon/src/ngx_http_redis2_reply.o \
../redis2-nginx-module-0.10/src/ngx_http_redis2_reply.c
src/ngx_http_redis2_reply.c:19:18: error: unused variable 'reply_first_final' [-Werror,-Wunused-const-variable]
static const int reply_first_final = 52;
^
src/ngx_http_redis2_reply.c:22:18: error: unused variable 'reply_en_main' [-Werror,-Wunused-const-variable]
static const int reply_en_main = 1;
^
2 errors generated.
make[2]: *** [objs/addon/src/ngx_http_redis2_reply.o] Error 1
make[1]: *** [build] Error
cc -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -I/usr/local/Cellar/pcre/8.34/include -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DLUA_DEFAULT_PATH='"/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/openresty/lualib/?.so"' -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/http -I src/http/modules -I src/os/unix -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /Users/hamish/edge/ngx_openresty-1.5.11.1rc1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 -I ../ngx_lua-0.9.5/src/api -I objs -I src/http -I src/http/modules -I ../ngx_devel_kit-0.2.19/src -I src/mail \
-o objs/addon/src/ngx_http_xss_util.o \
../xss-nginx-module-0.04/src/ngx_http_xss_util.c
src/ngx_http_xss_util.c:22:18: error: unused variable 'javascript_first_final' [-Werror,-Wunused-const-variable]
static const int javascript_first_final = 6;
^
src/ngx_http_xss_util.c:23:18: error: unused variable 'javascript_error' [-Werror,-Wunused-const-variable]
static const int javascript_error = 0;
^
src/ngx_http_xss_util.c:25:18: error: unused variable 'javascript_en_main' [-Werror,-Wunused-const-variable]
static const int javascript_en_main = 1;
^
3 errors generated.
make[2]: *** [objs/addon/src/ngx_http_xss_util.o] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment