Created
August 19, 2014 02:39
-
-
Save LYY/a79b952e1bd99f1daf32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ -f coevent/src/coevent.h ] || (git submodule init && git submodule update) | |
| [ -f coevent/merry/merry.h ] || (cd coevent && git submodule init && git submodule update) | |
| [ -d objs ] || mkdir objs; | |
| [ -d objs/merry ] || mkdir objs/merry; | |
| [ -f luajit/src/libluajit.a ] || (cd luajit && make) | |
| cd objs/merry && gcc -fPIC -c ../../coevent/merry/common/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| ../../coevent/merry/common/strings.c:170:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] | |
| if(val < 0) { | |
| ~~~ ^ ~ | |
| 1 warning generated. | |
| cd objs/merry && gcc -fPIC -c ../../coevent/merry/se/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| cd objs/merry && gcc -fPIC -c ../../coevent/merry/se/libeio/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| cd objs/merry && gcc -fPIC -c ../../coevent/merry/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| cd objs && gcc -fPIC -c ../coevent/src/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| ../coevent/src/coevent.c:63:9: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_shutdown(cok->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here | |
| int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:64:9: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_free(cok->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here | |
| void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:66:9: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:107:8: warning: 'SSL_connect' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_connect(cok->ssl)) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1492:6: note: 'SSL_connect' declared here | |
| int SSL_connect(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:152:24: warning: 'SSL_CTX_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| cok->ctx = SSL_CTX_new(SSLv23_client_method()); | |
| ^ | |
| /usr/include/openssl/ssl.h:1346:10: note: 'SSL_CTX_new' declared here | |
| SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:152:36: warning: 'SSLv23_client_method' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| cok->ctx = SSL_CTX_new(SSLv23_client_method()); | |
| ^ | |
| /usr/include/openssl/ssl.h:1517:13: note: 'SSLv23_client_method' declared here | |
| SSL_METHOD *SSLv23_client_method(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* SSLv3 but can rollback to v2 */ | |
| ^ | |
| ../coevent/src/coevent.c:169:20: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| cok->ssl = SSL_new(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here | |
| SSL * SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:180:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:188:9: warning: 'SSL_set_fd' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_set_fd(cok->ssl, cok->fd); | |
| ^ | |
| /usr/include/openssl/ssl.h:1370:5: note: 'SSL_set_fd' declared here | |
| int SSL_set_fd(SSL *s, int fd) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:191:12: warning: 'SSL_connect' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_connect(cok->ssl) == 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1492:6: note: 'SSL_connect' declared here | |
| int SSL_connect(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:319:32: warning: passing 'unsigned char [4096]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int len = snprintf(temp_buf, 4096, "%s%s:%d:%ld", port > 0 ? "tcp://" : "unix://", host, port, cok->ssl_sign); | |
| ^~~~~~~~ | |
| /usr/include/secure/_stdio.h:57:29: note: expanded from macro 'snprintf' | |
| __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| ../coevent/src/coevent.c:408:20: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| while((n = SSL_write(cok->ssl, cok->send_buf + cok->send_buf_ed, | |
| ^ | |
| /usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here | |
| int SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:718:20: warning: 'SSL_read' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| while((n = SSL_read(cok->ssl, cok->last_buf->buf + cok->last_buf->buf_len, | |
| ^ | |
| /usr/include/openssl/ssl.h:1493:6: note: 'SSL_read' declared here | |
| int SSL_read(SSL *ssl,void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:826:34: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] | |
| if(cok->buf_read_len < 0) { | |
| ~~~~~~~~~~~~~~~~~ ^ ~ | |
| ../coevent/src/coevent.c:908:17: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_free(cok->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here | |
| void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:913:17: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:931:1: warning: control reaches end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../coevent/src/coevent.c:1073:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1076:20: warning: 'SSL_CTX_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| cok->ctx = SSL_CTX_new(SSLv23_client_method()); | |
| ^ | |
| /usr/include/openssl/ssl.h:1346:10: note: 'SSL_CTX_new' declared here | |
| SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1076:32: warning: 'SSLv23_client_method' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| cok->ctx = SSL_CTX_new(SSLv23_client_method()); | |
| ^ | |
| /usr/include/openssl/ssl.h:1517:13: note: 'SSLv23_client_method' declared here | |
| SSL_METHOD *SSLv23_client_method(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* SSLv3 but can rollback to v2 */ | |
| ^ | |
| ../coevent/src/coevent.c:1096:17: warning: 'SSL_CTX_set_default_passwd_cb_userdata' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_set_default_passwd_cb_userdata(cok->ctx, (void *)cok->ssl_pw); | |
| ^ | |
| /usr/include/openssl/ssl.h:1473:6: note: 'SSL_CTX_set_default_passwd_cb_userdata' declared here | |
| void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1097:17: warning: 'SSL_CTX_set_default_passwd_cb' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_set_default_passwd_cb(cok->ctx, ssl_password_cb); | |
| ^ | |
| /usr/include/openssl/ssl.h:1472:6: note: 'SSL_CTX_set_default_passwd_cb' declared here | |
| void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1100:30: warning: passing 'unsigned char [4096]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int l = snprintf(temp_buf, 4096, "%s:%s:%s", lua_tostring(L, 1), lua_tostring(L, 1), p1); | |
| ^~~~~~~~ | |
| /usr/include/secure/_stdio.h:57:29: note: expanded from macro 'snprintf' | |
| __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| ../coevent/src/coevent.c:1104:30: warning: passing 'unsigned char [4096]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int l = snprintf(temp_buf, 4096, "%s:%s:", lua_tostring(L, 1), lua_tostring(L, 1)); | |
| ^~~~~~~~ | |
| /usr/include/secure/_stdio.h:57:29: note: expanded from macro 'snprintf' | |
| __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| ../coevent/src/coevent.c:1108:12: warning: 'SSL_CTX_use_certificate_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_CTX_use_certificate_file(cok->ctx, lua_tostring(L, 1), SSL_FILETYPE_PEM) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1402:5: note: 'SSL_CTX_use_certificate_file' declared here | |
| int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1109:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1116:12: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_CTX_use_PrivateKey_file(cok->ctx, lua_tostring(L, 2), SSL_FILETYPE_PEM) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1401:5: note: 'SSL_CTX_use_PrivateKey_file' declared here | |
| int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1117:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1124:13: warning: 'SSL_CTX_check_private_key' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(!SSL_CTX_check_private_key(cok->ctx)) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1475:5: note: 'SSL_CTX_check_private_key' declared here | |
| int SSL_CTX_check_private_key(const SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1125:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1401:1: warning: control reaches end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../coevent/src/coevent.c:1466:5: warning: 'SSL_library_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_library_init(); | |
| ^ | |
| /usr/include/openssl/ssl.h:1553:5: note: 'SSL_library_init' declared here | |
| int SSL_library_init(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/coevent.c:1467:5: warning: 'OPENSSL_add_all_algorithms_noconf' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| OpenSSL_add_all_algorithms(); | |
| ^ | |
| /usr/include/openssl/evp.h:836:3: note: expanded from macro 'OpenSSL_add_all_algorithms' | |
| OPENSSL_add_all_algorithms_noconf() | |
| ^ | |
| /usr/include/openssl/evp.h:828:6: note: 'OPENSSL_add_all_algorithms_noconf' declared here | |
| void OPENSSL_add_all_algorithms_noconf(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| 33 warnings generated. | |
| ../coevent/src/connection-pool.c:42:9: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_free(n->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here | |
| void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/connection-pool.c:44:9: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(n->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/connection-pool.c:243:17: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(cok->ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../coevent/src/connection-pool.c:271:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] | |
| if(pool_key < 0 || !ptr || ptr->fd < 0) { | |
| ~~~~~~~~ ^ ~ | |
| ../coevent/src/connection-pool.c:271:40: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] | |
| if(pool_key < 0 || !ptr || ptr->fd < 0) { | |
| ~~~~~~~ ^ ~ | |
| 5 warnings generated. | |
| ../coevent/src/lua-eio.c:642:15: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] | |
| if(offset < 0) { | |
| ~~~~~~ ^ ~ | |
| 1 warning generated. | |
| ../coevent/src/lua-log.c:46:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_copy_str_in_table(L, gn, buf); | |
| ^~~ | |
| ../coevent/src/coevent.h:110:71: note: passing argument to parameter 'dst' here | |
| unsigned char *lua_copy_str_in_table(lua_State *L, int index, u_char *dst); | |
| ^ | |
| ../coevent/src/lua-log.c:52:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_copy_str_in_table(L, gn, buf); | |
| ^~~ | |
| ../coevent/src/coevent.h:110:71: note: passing argument to parameter 'dst' here | |
| unsigned char *lua_copy_str_in_table(lua_State *L, int index, u_char *dst); | |
| ^ | |
| 2 warnings generated. | |
| ../coevent/src/lua-md5.c:16:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| md5(src, slen, (unsigned char *)&output); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../coevent/src/../merry/common/md5.h:50:55: note: passing argument to parameter 'hex' here | |
| void md5(const unsigned char *data, size_t len, char *hex); | |
| ^ | |
| ../coevent/src/lua-md5.c:18:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_pushlstring(L, (unsigned char *) &output, 32); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /Users/tency/Documents/projects/alilua/alilua/luajit/src/lua.h:163:60: note: passing argument to parameter 's' here | |
| LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l); | |
| ^ | |
| 2 warnings generated. | |
| ../coevent/src/lua-sha1.c:59:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| sprintf(o2 + (i * 2), "%.2x", (unsigned int) output[i]); | |
| ^~~~~~~~~~~~ | |
| /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' | |
| __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| 1 warning generated. | |
| cd objs && gcc -fPIC -c ../src/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| ../src/lua-ext-cache.c:22:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| md5((unsigned char *) key, klen, (unsigned char *) &digest); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../src/../coevent/merry/common/md5.h:50:55: note: passing argument to parameter 'hex' here | |
| void md5(const unsigned char *data, size_t len, char *hex); | |
| ^ | |
| ../src/lua-ext-cache.c:54:24: warning: implicit declaration of function 'yac_storage_update' is invalid in C99 [-Wimplicit-function-declaration] | |
| lua_pushboolean(L, yac_storage_update(key, klen, value, vlen, 1, ttl, 0, now)); | |
| ^ | |
| ../src/lua-ext-cache.c:80:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| md5((unsigned char *) key, klen, (unsigned char *) &digest); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../src/../coevent/merry/common/md5.h:50:55: note: passing argument to parameter 'hex' here | |
| void md5(const unsigned char *data, size_t len, char *hex); | |
| ^ | |
| ../src/lua-ext-cache.c:96:8: warning: implicit declaration of function 'yac_storage_find' is invalid in C99 [-Wimplicit-function-declaration] | |
| if(yac_storage_find(key, klen, &value, &vlen, &flag, (int *) 0, now)) { | |
| ^ | |
| ../src/lua-ext-cache.c:112:13: warning: implicit declaration of function 'yac_free' is invalid in C99 [-Wimplicit-function-declaration] | |
| yac_free(value); | |
| ^ | |
| ../src/lua-ext-cache.c:141:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| md5((unsigned char *) key, klen, (unsigned char *) &digest); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../src/../coevent/merry/common/md5.h:50:55: note: passing argument to parameter 'hex' here | |
| void md5(const unsigned char *data, size_t len, char *hex); | |
| ^ | |
| ../src/lua-ext-cache.c:154:24: warning: implicit declaration of function 'yac_storage_delete' is invalid in C99 [-Wimplicit-function-declaration] | |
| lua_pushboolean(L, yac_storage_delete((char *) key, klen, 300 , now)); | |
| ^ | |
| 7 warnings generated. | |
| ../src/lua-ext.c:171:15: warning: implicit declaration of function 'lua_calc_strlen_in_table' is invalid in C99 [-Wimplicit-function-declaration] | |
| len = lua_calc_strlen_in_table(L, 1, 2, 0 /* strict */); | |
| ^ | |
| ../src/lua-ext.c:186:13: warning: implicit declaration of function 'lua_copy_str_in_table' is invalid in C99 [-Wimplicit-function-declaration] | |
| lua_copy_str_in_table(L, 1, buf); | |
| ^ | |
| ../src/lua-ext.c:710:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../src/lua-ext.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_pushlstring(L, epd->headers + epd->_header_length, epd->data_len - epd->_header_length); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /Users/tency/Documents/projects/alilua/alilua/luajit/src/lua.h:163:60: note: passing argument to parameter 's' here | |
| LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l); | |
| ^ | |
| 4 warnings generated. | |
| ../src/main.c:44:21: warning: 'SSL_get_ex_data' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| epdata_t *epd = SSL_get_ex_data(X509_STORE_CTX_get_ex_data(store, SSL_get_ex_data_X509_STORE_CTX_idx()), ssl_epd_idx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1587:7: note: 'SSL_get_ex_data' declared here | |
| void *SSL_get_ex_data(const SSL *ssl,int idx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:44:37: warning: 'X509_STORE_CTX_get_ex_data' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| epdata_t *epd = SSL_get_ex_data(X509_STORE_CTX_get_ex_data(store, SSL_get_ex_data_X509_STORE_CTX_idx()), ssl_epd_idx); | |
| ^ | |
| /usr/include/openssl/x509_vfy.h:450:8: note: 'X509_STORE_CTX_get_ex_data' declared here | |
| void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:44:71: warning: 'SSL_get_ex_data_X509_STORE_CTX_idx' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| epdata_t *epd = SSL_get_ex_data(X509_STORE_CTX_get_ex_data(store, SSL_get_ex_data_X509_STORE_CTX_idx()), ssl_epd_idx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1601:5: note: 'SSL_get_ex_data_X509_STORE_CTX_idx' declared here | |
| int SSL_get_ex_data_X509_STORE_CTX_idx(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:109:9: warning: implicit declaration of function 'yac_storage_startup' is invalid in C99 [-Wimplicit-function-declaration] | |
| if(!yac_storage_startup(YAC_CACHE_SIZE / 16, YAC_CACHE_SIZE - (YAC_CACHE_SIZE / 16), &msg)) { | |
| ^ | |
| ../src/main.c:195:5: warning: implicit declaration of function 'luaopen_fastlz' is invalid in C99 [-Wimplicit-function-declaration] | |
| luaopen_fastlz(_L); | |
| ^ | |
| ../src/main.c:196:5: warning: implicit declaration of function 'luaopen_coevent' is invalid in C99 [-Wimplicit-function-declaration] | |
| luaopen_coevent(_L); | |
| ^ | |
| ../src/main.c:197:5: warning: implicit declaration of function 'luaopen_libfs' is invalid in C99 [-Wimplicit-function-declaration] | |
| luaopen_libfs(_L); | |
| ^ | |
| ../src/main.c:198:5: warning: implicit declaration of function 'luaopen_string_utils' is invalid in C99 [-Wimplicit-function-declaration] | |
| luaopen_string_utils(_L); | |
| ^ | |
| ../src/main.c:199:5: warning: implicit declaration of function 'luaopen_crypto' is invalid in C99 [-Wimplicit-function-declaration] | |
| luaopen_crypto(_L); | |
| ^ | |
| ../src/main.c:254:19: warning: 'SSL_CTX_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| ssl_ctx = SSL_CTX_new(SSLv23_server_method()); | |
| ^ | |
| /usr/include/openssl/ssl.h:1346:10: note: 'SSL_CTX_new' declared here | |
| SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:254:31: warning: 'SSLv23_server_method' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| ssl_ctx = SSL_CTX_new(SSLv23_server_method()); | |
| ^ | |
| /usr/include/openssl/ssl.h:1516:13: note: 'SSLv23_server_method' declared here | |
| SSL_METHOD *SSLv23_server_method(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* SSLv3 but can rollback to v2 */ | |
| ^ | |
| ../src/main.c:261:12: warning: 'SSL_CTX_use_certificate_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_CTX_use_certificate_file(ssl_ctx, getarg("ssl-cert"), SSL_FILETYPE_PEM) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1402:5: note: 'SSL_CTX_use_certificate_file' declared here | |
| int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:262:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(ssl_ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:267:12: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_CTX_use_PrivateKey_file(ssl_ctx, getarg("ssl-key"), SSL_FILETYPE_PEM) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1401:5: note: 'SSL_CTX_use_PrivateKey_file' declared here | |
| int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:268:13: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(ssl_ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:273:9: warning: 'SSL_CTX_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL); | |
| ^ | |
| /usr/include/openssl/ssl.h:571:2: note: expanded from macro 'SSL_CTX_set_options' | |
| SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL) | |
| ^ | |
| /usr/include/openssl/ssl.h:1498:6: note: 'SSL_CTX_ctrl' declared here | |
| long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:276:27: warning: 'SSL_get_ex_new_index' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| ssl_epd_idx = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL); | |
| ^ | |
| /usr/include/openssl/ssl.h:1588:5: note: 'SSL_get_ex_new_index' declared here | |
| int SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | |
| ^ | |
| ../src/main.c:283:16: warning: 'SSL_CTX_load_verify_locations' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_CTX_load_verify_locations(ssl_ctx, getarg("ssl-ca"), NULL) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1571:5: note: 'SSL_CTX_load_verify_locations' declared here | |
| int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, | |
| ^ | |
| ../src/main.c:284:17: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_free(ssl_ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here | |
| void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/main.c:289:17: warning: 'SSL_CTX_set_verify' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT, verify_callback); | |
| ^ | |
| /usr/include/openssl/ssl.h:1458:6: note: 'SSL_CTX_set_verify' declared here | |
| void SSL_CTX_set_verify(SSL_CTX *ctx,int mode, | |
| ^ | |
| ../src/main.c:290:17: warning: 'SSL_CTX_set_verify_depth' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_CTX_set_verify_depth(ssl_ctx, 4); | |
| ^ | |
| /usr/include/openssl/ssl.h:1460:6: note: 'SSL_CTX_set_verify_depth' declared here | |
| void SSL_CTX_set_verify_depth(SSL_CTX *ctx,int depth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| 21 warnings generated. | |
| ../src/network-util.c:148:107: warning: data argument not used by format string [-Wformat-extra-args] | |
| int len2 = sprintf(temp_buf, "HTTP/1.1 %d %s\r\nContent-Type: text/html; charset=UTF-8", code, code_, hostname); | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
| /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' | |
| __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| ../src/network-util.c:203:95: warning: data argument not used by format string [-Wformat-extra-args] | |
| int len = sprintf(temp_buf, "HTTP/1.1 200 OK\r\nContent-Type: text/plain; charset=UTF-8", hostname); | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
| /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' | |
| __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | |
| ^ | |
| ../src/network-util.c:287:31: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| epd->zs->next_out = buf; | |
| ^ ~~~ | |
| 3 warnings generated. | |
| ../src/network.c:28:13: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| n = SSL_write(ssl, contents + len, length - len); | |
| ^ | |
| /usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here | |
| int SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/network.c:32:26: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| int status = SSL_get_error(ssl, n); | |
| ^ | |
| /usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here | |
| int SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/network.c:282:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| pt1 = epd->headers; | |
| ^ ~~~~~~~~~~~~ | |
| ../src/network.c:285:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] | |
| while(t1 = strtok_r(pt1, "\n", &pt1)) { | |
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../src/network.c:285:18: note: place parentheses around the assignment to silence this warning | |
| while(t1 = strtok_r(pt1, "\n", &pt1)) { | |
| ^ | |
| ( ) | |
| ../src/network.c:285:18: note: use '==' to turn this assignment into an equality comparison | |
| while(t1 = strtok_r(pt1, "\n", &pt1)) { | |
| ^ | |
| == | |
| ../src/network.c:769:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../src/network.c:783:8: warning: implicit declaration of function 'worker_process' is invalid in C99 [-Wimplicit-function-declaration] | |
| if(worker_process(epd, 0) != 0) { | |
| ^ | |
| ../src/network.c:787:1: warning: control reaches end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../src/network.c:818:30: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| epd->headers = _t; | |
| ^ ~~ | |
| ../src/network.c:831:28: warning: 'SSL_read' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| while((n = (epd->ssl ? SSL_read(epd->ssl, epd->headers + epd->data_len, epd->buf_size - epd->data_len) : | |
| ^ | |
| /usr/include/openssl/ssl.h:1493:6: note: 'SSL_read' declared here | |
| int SSL_read(SSL *ssl,void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/network.c:851:30: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| epd->headers = _t; | |
| ^ ~~ | |
| ../src/network.c:928:56: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| epd->content_length = atoi(fp); | |
| ^~ | |
| /usr/include/stdlib.h:132:23: note: passing argument to parameter here | |
| int atoi(const char *); | |
| ^ | |
| ../src/network.c:1033:29: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| uri = epd->headers; | |
| ^ ~~~~~~~~~~~~ | |
| ../src/network.c:1045:29: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| uri = epd->headers + i; | |
| ^ ~~~~~~~~~~~~~~~~ | |
| ../src/network.c:1132:21: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| bytes_written = SSL_write(ssl, buffer, bytes); | |
| ^ | |
| /usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here | |
| int SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/network.c:1135:22: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| int status = SSL_get_error(ssl, bytes_written); | |
| ^ | |
| /usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here | |
| int SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/network.c:1152:20: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| ssize_t tcnt = SSL_write(ssl, temp_buf64k, size); | |
| ^ | |
| /usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here | |
| int SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| 16 warnings generated. | |
| ../src/websocket.c:206:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_pushlstring(L, epd->contents, payload_length); | |
| ^~~~~~~~~~~~~ | |
| /Users/tency/Documents/projects/alilua/alilua/luajit/src/lua.h:163:60: note: passing argument to parameter 's' here | |
| LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l); | |
| ^ | |
| ../src/websocket.c:349:39: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| n = network_raw_send(epd->fd, buf_256, offset + payload_len); | |
| ^~~~~~~ | |
| ../src/../coevent/merry/common/network.h:32:49: note: passing argument to parameter 'contents' here | |
| int network_raw_send(int client_fd, const char *contents, int length); | |
| ^ | |
| ../src/websocket.c:358:39: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| n = network_raw_send(epd->fd, buf_256, offset); | |
| ^~~~~~~ | |
| ../src/../coevent/merry/common/network.h:32:49: note: passing argument to parameter 'contents' here | |
| int network_raw_send(int client_fd, const char *contents, int length); | |
| ^ | |
| ../src/websocket.c:484:12: warning: implicit declaration of function '_lua_sleep' is invalid in C99 [-Wimplicit-function-declaration] | |
| return _lua_sleep(L, 10); | |
| ^ | |
| 4 warnings generated. | |
| ../src/worker.c:96:13: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(!SSL_shutdown(epd->ssl)) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here | |
| int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:98:13: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_shutdown(epd->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here | |
| int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:101:9: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_free(epd->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here | |
| void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:198:9: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| pt1 = epd->headers; | |
| ^ ~~~~~~~~~~~~ | |
| ../src/worker.c:211:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] | |
| while(t1 = strtok_r(pt1, "\n", &pt1)) { | |
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../src/worker.c:211:14: note: place parentheses around the assignment to silence this warning | |
| while(t1 = strtok_r(pt1, "\n", &pt1)) { | |
| ^ | |
| ( ) | |
| ../src/worker.c:211:14: note: use '==' to turn this assignment into an equality comparison | |
| while(t1 = strtok_r(pt1, "\n", &pt1)) { | |
| ^ | |
| == | |
| ../src/worker.c:326:53: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] | |
| getsockname(epd->fd, (struct sockaddr *) &addr, &l); | |
| ^~ | |
| /usr/include/sys/socket.h:561:74: note: passing argument to parameter here | |
| int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) | |
| ^ | |
| ../src/worker.c:366:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_setfield(L, -2, p); | |
| ^ | |
| /Users/tency/Documents/projects/alilua/alilua/luajit/src/lua.h:191:66: note: passing argument to parameter 'k' here | |
| LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); | |
| ^ | |
| ../src/worker.c:378:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] | |
| while(t1 = strtok_r(cookies, ";", &cookies)) { | |
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../src/worker.c:378:18: note: place parentheses around the assignment to silence this warning | |
| while(t1 = strtok_r(cookies, ";", &cookies)) { | |
| ^ | |
| ( ) | |
| ../src/worker.c:378:18: note: use '==' to turn this assignment into an equality comparison | |
| while(t1 = strtok_r(cookies, ";", &cookies)) { | |
| ^ | |
| == | |
| ../src/worker.c:405:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| lua_setfield(L, -2, p + (p[0] == ' ' ? 1 : 0)); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /Users/tency/Documents/projects/alilua/alilua/luajit/src/lua.h:191:66: note: passing argument to parameter 'k' here | |
| LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); | |
| ^ | |
| ../src/worker.c:506:20: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| epd->ssl = SSL_new(ssl_ctx); | |
| ^ | |
| /usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here | |
| SSL * SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:514:12: warning: 'SSL_set_fd' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_set_fd(epd->ssl, epd->fd) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1370:5: note: 'SSL_set_fd' declared here | |
| int SSL_set_fd(SSL *s, int fd) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:515:13: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_free(epd->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here | |
| void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:523:16: warning: 'SSL_set_ex_data' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if(SSL_set_ex_data(epd->ssl, ssl_epd_idx, epd) != 1) { | |
| ^ | |
| /usr/include/openssl/ssl.h:1586:5: note: 'SSL_set_ex_data' declared here | |
| int SSL_set_ex_data(SSL *ssl,int idx,void *data) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:524:17: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| SSL_free(epd->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here | |
| void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:534:15: warning: 'SSL_accept' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| int ret = SSL_accept(epd->ssl); | |
| ^ | |
| /usr/include/openssl/ssl.h:1491:6: note: 'SSL_accept' declared here | |
| int SSL_accept(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:537:23: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| int ssl_err = SSL_get_error(epd->ssl, ret); | |
| ^ | |
| /usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here | |
| int SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../src/worker.c:548:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../src/worker.c:628:5: warning: implicit declaration of function 'set_loop_fd' is invalid in C99 [-Wimplicit-function-declaration] | |
| set_loop_fd(loop_fd, _worker_n); // for coevent module | |
| ^ | |
| 18 warnings generated. | |
| [ -d objs/deps ] || mkdir objs/deps; | |
| cd objs/deps && gcc -fPIC -c ../../deps/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| ../../deps/lcrypto.c:71:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| unsigned long e = ERR_get_error(); | |
| ^ | |
| /usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here | |
| unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:72:5: warning: 'ERR_load_crypto_strings' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| ERR_load_crypto_strings(); | |
| ^ | |
| /usr/include/openssl/err.h:296:6: note: 'ERR_load_crypto_strings' declared here | |
| void ERR_load_crypto_strings(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:74:25: warning: 'ERR_error_string' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| lua_pushstring ( L, ERR_error_string ( e, buf ) ); | |
| ^ | |
| /usr/include/openssl/err.h:279:7: note: 'ERR_error_string' declared here | |
| char *ERR_error_string(unsigned long e,char *buf) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:100:24: warning: 'EVP_get_digestbyname' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| DIGEST_TYPE type = DIGEST_BY_NAME ( s ); | |
| ^ | |
| ../../deps/lcrypto.c:31:27: note: expanded from macro 'DIGEST_BY_NAME' | |
| #define DIGEST_BY_NAME(s) EVP_get_digestbyname(s) | |
| ^ | |
| /usr/include/openssl/evp.h:849:15: note: 'EVP_get_digestbyname' declared here | |
| const EVP_MD *EVP_get_digestbyname(const char *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:109:5: warning: 'EVP_MD_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_init ( c ); | |
| ^ | |
| /usr/include/openssl/evp.h:547:6: note: 'EVP_MD_CTX_init' declared here | |
| void EVP_MD_CTX_init(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:110:5: warning: 'EVP_DigestInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_DigestInit_ex ( c, type, NULL ); //must return 1 (not checked!) | |
| ^ | |
| /usr/include/openssl/evp.h:555:5: note: 'EVP_DigestInit_ex' declared here | |
| int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:122:5: warning: 'EVP_MD_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_init ( d ); | |
| ^ | |
| /usr/include/openssl/evp.h:547:6: note: 'EVP_MD_CTX_init' declared here | |
| void EVP_MD_CTX_init(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:123:5: warning: 'EVP_MD_CTX_copy_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_copy_ex ( d, c ); | |
| ^ | |
| /usr/include/openssl/evp.h:551:9: note: 'EVP_MD_CTX_copy_ex' declared here | |
| int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out,const EVP_MD_CTX *in) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:134:23: warning: 'EVP_MD_CTX_md' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| const EVP_MD *t = EVP_MD_CTX_md ( c ); | |
| ^ | |
| /usr/include/openssl/evp.h:486:16: note: 'EVP_MD_CTX_md' declared here | |
| const EVP_MD * EVP_MD_CTX_md(const EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:135:5: warning: 'EVP_MD_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_cleanup ( c ); | |
| ^ | |
| /usr/include/openssl/evp.h:548:5: note: 'EVP_MD_CTX_cleanup' declared here | |
| int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:136:5: warning: 'EVP_MD_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_init ( c ); | |
| ^ | |
| /usr/include/openssl/evp.h:547:6: note: 'EVP_MD_CTX_init' declared here | |
| void EVP_MD_CTX_init(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:137:5: warning: 'EVP_DigestInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_DigestInit_ex ( c, t, NULL ); | |
| ^ | |
| /usr/include/openssl/evp.h:555:5: note: 'EVP_DigestInit_ex' declared here | |
| int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:149:5: warning: 'EVP_DigestUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_UPDATE ( c, s, s_len ); | |
| ^ | |
| ../../deps/lcrypto.c:33:29: note: expanded from macro 'EVP_UPDATE' | |
| #define EVP_UPDATE(c,s,len) EVP_DigestUpdate(c, s, len) | |
| ^ | |
| /usr/include/openssl/evp.h:556:5: note: 'EVP_DigestUpdate' declared here | |
| int EVP_DigestUpdate(EVP_MD_CTX *ctx,const void *d, | |
| ^ | |
| ../../deps/lcrypto.c:170:9: warning: 'EVP_DigestUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_UPDATE ( c, s, s_len ); | |
| ^ | |
| ../../deps/lcrypto.c:33:29: note: expanded from macro 'EVP_UPDATE' | |
| #define EVP_UPDATE(c,s,len) EVP_DigestUpdate(c, s, len) | |
| ^ | |
| /usr/include/openssl/evp.h:556:5: note: 'EVP_DigestUpdate' declared here | |
| int EVP_DigestUpdate(EVP_MD_CTX *ctx,const void *d, | |
| ^ | |
| ../../deps/lcrypto.c:174:9: warning: 'EVP_MD_CTX_create' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| d = EVP_MD_CTX_create(); | |
| ^ | |
| /usr/include/openssl/evp.h:549:13: note: 'EVP_MD_CTX_create' declared here | |
| EVP_MD_CTX *EVP_MD_CTX_create(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:175:5: warning: 'EVP_MD_CTX_copy_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_copy_ex ( d, c ); | |
| ^ | |
| /usr/include/openssl/evp.h:551:9: note: 'EVP_MD_CTX_copy_ex' declared here | |
| int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out,const EVP_MD_CTX *in) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:176:5: warning: 'EVP_DigestFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_DigestFinal_ex ( d, digest, ( unsigned int * ) &written ); | |
| ^ | |
| /usr/include/openssl/evp.h:558:5: note: 'EVP_DigestFinal_ex' declared here | |
| int EVP_DigestFinal_ex(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:177:5: warning: 'EVP_MD_CTX_destroy' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_MD_CTX_destroy ( d ); | |
| ^ | |
| /usr/include/openssl/evp.h:550:6: note: 'EVP_MD_CTX_destroy' declared here | |
| void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:213:5: warning: 'EVP_MD_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_CLEANUP ( c ); | |
| ^ | |
| ../../deps/lcrypto.c:35:24: note: expanded from macro 'EVP_CLEANUP' | |
| #define EVP_CLEANUP(c) EVP_MD_CTX_cleanup(c); | |
| ^ | |
| /usr/include/openssl/evp.h:548:5: note: 'EVP_MD_CTX_cleanup' declared here | |
| int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:221:24: warning: 'EVP_get_digestbyname' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| DIGEST_TYPE type = DIGEST_BY_NAME ( type_name ); | |
| ^ | |
| ../../deps/lcrypto.c:31:27: note: expanded from macro 'DIGEST_BY_NAME' | |
| #define DIGEST_BY_NAME(s) EVP_get_digestbyname(s) | |
| ^ | |
| /usr/include/openssl/evp.h:849:15: note: 'EVP_get_digestbyname' declared here | |
| const EVP_MD *EVP_get_digestbyname(const char *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:236:9: warning: 'EVP_MD_CTX_create' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| c = EVP_MD_CTX_create(); | |
| ^ | |
| /usr/include/openssl/evp.h:549:13: note: 'EVP_MD_CTX_create' declared here | |
| EVP_MD_CTX *EVP_MD_CTX_create(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:237:5: warning: 'EVP_DigestInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_DigestInit_ex ( c, type, NULL ); | |
| ^ | |
| /usr/include/openssl/evp.h:555:5: note: 'EVP_DigestInit_ex' declared here | |
| int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:238:5: warning: 'EVP_DigestUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_DigestUpdate ( c, s, lua_strlen ( L, 2 ) ); | |
| ^ | |
| /usr/include/openssl/evp.h:556:5: note: 'EVP_DigestUpdate' declared here | |
| int EVP_DigestUpdate(EVP_MD_CTX *ctx,const void *d, | |
| ^ | |
| ../../deps/lcrypto.c:239:5: warning: 'EVP_DigestFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| EVP_DigestFinal_ex ( c, digest, ( unsigned int * ) &written ); | |
| ^ | |
| /usr/include/openssl/evp.h:558:5: note: 'EVP_DigestFinal_ex' declared here | |
| int EVP_DigestFinal_ex(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:280:24: warning: 'EVP_get_digestbyname' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| DIGEST_TYPE type = DIGEST_BY_NAME ( s ); | |
| ^ | |
| ../../deps/lcrypto.c:31:27: note: expanded from macro 'DIGEST_BY_NAME' | |
| #define DIGEST_BY_NAME(s) EVP_get_digestbyname(s) | |
| ^ | |
| /usr/include/openssl/evp.h:849:15: note: 'EVP_get_digestbyname' declared here | |
| const EVP_MD *EVP_get_digestbyname(const char *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:288:5: warning: 'HMAC_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_CTX_init ( c ); | |
| ^ | |
| /usr/include/openssl/hmac.h:90:6: note: 'HMAC_CTX_init' declared here | |
| void HMAC_CTX_init(HMAC_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:289:5: warning: 'HMAC_Init_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_Init_ex ( c, k, k_len, type, NULL ); | |
| ^ | |
| /usr/include/openssl/hmac.h:97:6: note: 'HMAC_Init_ex' declared here | |
| void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | |
| ^ | |
| ../../deps/lcrypto.c:313:5: warning: 'HMAC_Init_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_Init_ex ( c, NULL, 0, NULL, NULL ); | |
| ^ | |
| /usr/include/openssl/hmac.h:97:6: note: 'HMAC_Init_ex' declared here | |
| void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | |
| ^ | |
| ../../deps/lcrypto.c:325:5: warning: 'HMAC_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_UPDATE ( c, s, s_len ); | |
| ^ | |
| ../../deps/lcrypto.c:34:30: note: expanded from macro 'HMAC_UPDATE' | |
| #define HMAC_UPDATE(c,s,len) HMAC_Update(c, (unsigned char *)s, len); | |
| ^ | |
| /usr/include/openssl/hmac.h:99:6: note: 'HMAC_Update' declared here | |
| void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:345:9: warning: 'HMAC_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_UPDATE ( c, s, s_len ); | |
| ^ | |
| ../../deps/lcrypto.c:34:30: note: expanded from macro 'HMAC_UPDATE' | |
| #define HMAC_UPDATE(c,s,len) HMAC_Update(c, (unsigned char *)s, len); | |
| ^ | |
| /usr/include/openssl/hmac.h:99:6: note: 'HMAC_Update' declared here | |
| void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:349:5: warning: 'HMAC_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_Final ( c, digest, ( unsigned int * ) &written ); | |
| ^ | |
| /usr/include/openssl/hmac.h:100:6: note: 'HMAC_Final' declared here | |
| void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:385:5: warning: 'HMAC_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_CLEANUP ( c ); | |
| ^ | |
| ../../deps/lcrypto.c:36:25: note: expanded from macro 'HMAC_CLEANUP' | |
| #define HMAC_CLEANUP(c) HMAC_CTX_cleanup(c); | |
| ^ | |
| /usr/include/openssl/hmac.h:91:6: note: 'HMAC_CTX_cleanup' declared here | |
| void HMAC_CTX_cleanup(HMAC_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:398:24: warning: 'EVP_get_digestbyname' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| DIGEST_TYPE type = DIGEST_BY_NAME ( t ); | |
| ^ | |
| ../../deps/lcrypto.c:31:27: note: expanded from macro 'DIGEST_BY_NAME' | |
| #define DIGEST_BY_NAME(s) EVP_get_digestbyname(s) | |
| ^ | |
| /usr/include/openssl/evp.h:849:15: note: 'EVP_get_digestbyname' declared here | |
| const EVP_MD *EVP_get_digestbyname(const char *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:411:5: warning: 'HMAC_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_CTX_init ( &c ); | |
| ^ | |
| /usr/include/openssl/hmac.h:90:6: note: 'HMAC_CTX_init' declared here | |
| void HMAC_CTX_init(HMAC_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:412:5: warning: 'HMAC_Init_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_Init_ex ( &c, k, k_len, type, NULL ); | |
| ^ | |
| /usr/include/openssl/hmac.h:97:6: note: 'HMAC_Init_ex' declared here | |
| void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | |
| ^ | |
| ../../deps/lcrypto.c:413:5: warning: 'HMAC_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_Update ( &c, ( unsigned char * ) s, s_len ); | |
| ^ | |
| /usr/include/openssl/hmac.h:99:6: note: 'HMAC_Update' declared here | |
| void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:414:5: warning: 'HMAC_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| HMAC_Final ( &c, digest, ( unsigned int * ) &written ); | |
| ^ | |
| /usr/include/openssl/hmac.h:100:6: note: 'HMAC_Final' declared here | |
| void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:467:31: warning: 'RAND_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| return rand_do_bytes ( L, RAND_bytes ); | |
| ^ | |
| /usr/include/openssl/rand.h:104:6: note: 'RAND_bytes' declared here | |
| int RAND_bytes(unsigned char *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:472:31: warning: 'RAND_pseudo_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| return rand_do_bytes ( L, RAND_pseudo_bytes ); | |
| ^ | |
| /usr/include/openssl/rand.h:105:6: note: 'RAND_pseudo_bytes' declared here | |
| int RAND_pseudo_bytes(unsigned char *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:501:5: warning: 'RAND_add' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| RAND_add ( buf, num, entropy ); | |
| ^ | |
| /usr/include/openssl/rand.h:107:6: note: 'RAND_add' declared here | |
| void RAND_add(const void *buf,int num,double entropy) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:511:26: warning: 'RAND_status' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| lua_pushboolean ( L, RAND_status() ); | |
| ^ | |
| /usr/include/openssl/rand.h:111:5: note: 'RAND_status' declared here | |
| int RAND_status(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:526:30: warning: 'RAND_file_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if ( !name && ! ( name = RAND_file_name ( tmp, sizeof tmp ) ) ) { | |
| ^ | |
| /usr/include/openssl/rand.h:110:13: note: 'RAND_file_name' declared here | |
| const char *RAND_file_name(char *file,size_t num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:530:9: warning: 'RAND_load_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| n = RAND_load_file ( name, WRITE_FILE_COUNT ); | |
| ^ | |
| /usr/include/openssl/rand.h:108:6: note: 'RAND_load_file' declared here | |
| int RAND_load_file(const char *file,long max_bytes) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:555:30: warning: 'RAND_file_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| if ( !name && ! ( name = RAND_file_name ( tmp, sizeof tmp ) ) ) { | |
| ^ | |
| /usr/include/openssl/rand.h:110:13: note: 'RAND_file_name' declared here | |
| const char *RAND_file_name(char *file,size_t num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:559:9: warning: 'RAND_write_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| n = RAND_write_file ( name ); | |
| ^ | |
| /usr/include/openssl/rand.h:109:6: note: 'RAND_write_file' declared here | |
| int RAND_write_file(const char *file) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:582:5: warning: 'RAND_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| RAND_cleanup(); | |
| ^ | |
| /usr/include/openssl/rand.h:103:6: note: 'RAND_cleanup' declared here | |
| void RAND_cleanup(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| ../../deps/lcrypto.c:705:5: warning: 'OpenSSL_add_all_digests' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] | |
| OpenSSL_add_all_digests(); | |
| ^ | |
| /usr/include/openssl/evp.h:840:6: note: 'OpenSSL_add_all_digests' declared here | |
| void OpenSSL_add_all_digests(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; | |
| ^ | |
| 47 warnings generated. | |
| ../../deps/string_utils.c:222:53: warning: passing 'char [256]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| return base64_decode_internal ( dst, src, slen, basis64 ); | |
| ^~~~~~~ | |
| ../../deps/string_utils.c:134:71: note: passing argument to parameter 'basis' here | |
| size_t slen, const unsigned char *basis ) | |
| ^ | |
| ../../deps/string_utils.c:239:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int nlen = base64encode ( end, src, slen ); | |
| ^~~ | |
| ../../deps/string_utils.c:99:42: note: passing argument to parameter 'dst' here | |
| static int base64encode ( unsigned char *dst, const unsigned char *src, int len ) | |
| ^ | |
| ../../deps/string_utils.c:239:36: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int nlen = base64encode ( end, src, slen ); | |
| ^~~ | |
| ../../deps/string_utils.c:99:68: note: passing argument to parameter 'src' here | |
| static int base64encode ( unsigned char *dst, const unsigned char *src, int len ) | |
| ^ | |
| ../../deps/string_utils.c:259:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int nlen = base64decode ( end, src, slen ); | |
| ^~~ | |
| ../../deps/string_utils.c:176:42: note: passing argument to parameter 'dst' here | |
| static int base64decode ( unsigned char *dst, const unsigned char *src, size_t slen ) | |
| ^ | |
| ../../deps/string_utils.c:259:36: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| int nlen = base64decode ( end, src, slen ); | |
| ^~~ | |
| ../../deps/string_utils.c:176:68: note: passing argument to parameter 'src' here | |
| static int base64decode ( unsigned char *dst, const unsigned char *src, size_t slen ) | |
| ^ | |
| ../../deps/string_utils.c:382:14: warning: implicit declaration of function 'toupper' is invalid in C99 [-Wimplicit-function-declaration] | |
| if ( toupper ( str[i] ) == toupper ( pat[0] ) && ( length - i ) >= pat_len | |
| ^ | |
| ../../deps/string_utils.c:742:30: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| if ( _php_iconv_strlen ( &_len, src, src_len, enc ) == 0 ) { | |
| ^~~~~ | |
| ../../deps/string_utils.c:678:46: note: passing argument to parameter 'pretval' here | |
| static int _php_iconv_strlen ( unsigned int *pretval, const char *str, size_t nbytes, | |
| ^ | |
| ../../deps/string_utils.c:793:34: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| if ( _php_iconv_strlen ( &_len, src, src_len, enc ) == 0 ) { | |
| ^~~~~ | |
| ../../deps/string_utils.c:678:46: note: passing argument to parameter 'pretval' here | |
| static int _php_iconv_strlen ( unsigned int *pretval, const char *str, size_t nbytes, | |
| ^ | |
| 8 warnings generated. | |
| cd objs/deps && gcc -fPIC -c ../../deps/yac/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| cd objs/deps && gcc -fPIC -c ../../deps/fastlz/*.c -g -ggdb -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/; | |
| ../../deps/fastlz/lua-fastlz.c:87:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
| dst = ( unsigned char * ) large_malloc ( value_len + 20 ); | |
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| ../../deps/fastlz/lua-fastlz.c:118:1: warning: control reaches end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| 2 warnings generated. | |
| [ -f lua-libs/bit.so ] || (cd coevent/lua-libs/LuaBitOp-1.0.2 && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp bit.so ../../../lua-libs/ && make clean); | |
| [ -f lua-libs/cjson.so ] || (cd coevent/lua-libs/lua-cjson-2.1.0 && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp cjson.so ../../../lua-libs/ && make clean); | |
| [ -f lua-libs/zlib.so ] || (cd coevent/lua-libs/lzlib && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp zlib.so ../../../lua-libs/ && make clean && rm -rf *.o); | |
| [ -f lua-libs/llmdb.so ] || (cd coevent/lua-libs/lightningmdb && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp llmdb.so ../../../lua-libs/ && make clean); | |
| [ -f lua-libs/cmsgpack.so ] || (cd coevent/lua-libs/lua-cmsgpack && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp cmsgpack.so ../../../lua-libs/ && make clean); | |
| [ -f lua-libs/monip.so ] || (cd coevent/lua-libs/lua-monip && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp monip.so ../../../lua-libs/ && make clean); | |
| [ -f lua-libs/crc32.so ] || (cd coevent/lua-libs/lua-crc32 && make LIBLUA="-L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ -I/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a" && cp crc32.so ../../../lua-libs/ && make clean); | |
| gcc objs/merry/*.o objs/deps/*.o objs/*.o -L/Users/tency/Documents/projects/alilua/alilua/luajit/src/ /Users/tency/Documents/projects/alilua/alilua/luajit/src/libluajit.a -Wl,-E -liconv -lm -ldl -lpthread -lz -lssl -lcrypto -g -ggdb -o alilua | |
| ld: unknown option: -E | |
| clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
| make: *** [alilua] Error 1 |
Author
x86_64-apple-darwin13.3.0
现在pull,试试。应该好了
我的桌面环境是 10.9.4 重现不到错误,得麻烦你帮忙了
Author
ok了,虽然还是一堆warning,但能编译完成。谢谢~
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
麻烦帮忙在 shell 执行 gcc -dumpmachine 给我返回的信息