Last active
August 29, 2015 14:05
-
-
Save LYY/79b59ca5fe9c059dc5c7 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) | |
| Submodule 'coevent' (https://github.com/oneoo/alilua-coevent-module) registered for path 'coevent' | |
| Submodule 'luajit' (https://github.com/agentzh/luajit2.git) registered for path 'luajit' | |
| Cloning into 'coevent'... | |
| Submodule path 'coevent': checked out 'a9065984f443d674598e955173577f864e675575' | |
| Cloning into 'luajit'... | |
| Submodule path 'luajit': checked out 'f948fe0c2797bb75ed2147ef86795b082712c96b' | |
| [ -f coevent/merry/merry.h ] || (cd coevent && git submodule init && git submodule update) | |
| Submodule 'merry' (https://github.com/oneoo/merry.git) registered for path 'merry' | |
| Cloning into 'merry'... | |
| Submodule path 'merry': checked out 'a4a564683e9ad8ee141f24d92d5ff35e3025aa0c' | |
| [ -d objs ] || mkdir objs; | |
| [ -d objs/merry ] || mkdir objs/merry; | |
| [ -f luajit/src/libluajit.a ] || (cd luajit && make) | |
| ==== Building LuaJIT 2.0.3 ==== | |
| /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src | |
| HOSTCC host/minilua.o | |
| HOSTLINK host/minilua | |
| DYNASM host/buildvm_arch.h | |
| HOSTCC host/buildvm.o | |
| HOSTCC host/buildvm_asm.o | |
| HOSTCC host/buildvm_peobj.o | |
| HOSTCC host/buildvm_lib.o | |
| HOSTCC host/buildvm_fold.o | |
| HOSTLINK host/buildvm | |
| BUILDVM lj_vm.s | |
| ASM lj_vm.o | |
| CC lj_gc.o | |
| BUILDVM lj_ffdef.h | |
| CC lj_err.o | |
| CC lj_char.o | |
| BUILDVM lj_bcdef.h | |
| CC lj_bc.o | |
| CC lj_obj.o | |
| CC lj_str.o | |
| CC lj_tab.o | |
| CC lj_func.o | |
| CC lj_udata.o | |
| CC lj_meta.o | |
| CC lj_debug.o | |
| CC lj_state.o | |
| CC lj_dispatch.o | |
| CC lj_vmevent.o | |
| CC lj_vmmath.o | |
| CC lj_strscan.o | |
| CC lj_api.o | |
| CC lj_lex.o | |
| CC lj_parse.o | |
| CC lj_bcread.o | |
| CC lj_bcwrite.o | |
| CC lj_load.o | |
| CC lj_ir.o | |
| CC lj_opt_mem.o | |
| BUILDVM lj_folddef.h | |
| CC lj_opt_fold.o | |
| CC lj_opt_narrow.o | |
| CC lj_opt_dce.o | |
| CC lj_opt_loop.o | |
| CC lj_opt_split.o | |
| CC lj_opt_sink.o | |
| CC lj_mcode.o | |
| CC lj_snap.o | |
| CC lj_record.o | |
| CC lj_crecord.o | |
| BUILDVM lj_recdef.h | |
| CC lj_ffrecord.o | |
| CC lj_asm.o | |
| CC lj_trace.o | |
| CC lj_gdbjit.o | |
| CC lj_ctype.o | |
| CC lj_cdata.o | |
| CC lj_cconv.o | |
| CC lj_ccall.o | |
| CC lj_ccallback.o | |
| CC lj_carith.o | |
| CC lj_clib.o | |
| CC lj_cparse.o | |
| CC lj_lib.o | |
| CC lj_alloc.o | |
| CC lib_aux.o | |
| BUILDVM lj_libdef.h | |
| CC lib_base.o | |
| CC lib_math.o | |
| CC lib_bit.o | |
| CC lib_string.o | |
| CC lib_table.o | |
| CC lib_io.o | |
| CC lib_os.o | |
| CC lib_package.o | |
| CC lib_debug.o | |
| CC lib_jit.o | |
| CC lib_ffi.o | |
| CC lib_init.o | |
| AR libluajit.a | |
| CC luajit.o | |
| BUILDVM jit/vmdef.lua | |
| DYNLINK libluajit.so | |
| LINK luajit | |
| OK Successfully built LuaJIT | |
| ==== Successfully built LuaJIT 2.0.3 ==== | |
| 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:174:13: error: non-void function '_lua_echo' should return a value [-Wreturn-type] | |
| return; | |
| ^ | |
| ../src/lua-ext.c:183:17: error: non-void function '_lua_echo' should return a value [-Wreturn-type] | |
| return; | |
| ^ | |
| ../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: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); | |
| ^ | |
| 3 warnings and 2 errors 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:766:1: warning: control may reach end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../src/network.c:780:8: warning: implicit declaration of function 'worker_process' is invalid in C99 [-Wimplicit-function-declaration] | |
| if(worker_process(epd, 0) != 0) { | |
| ^ | |
| ../src/network.c:784:1: warning: control reaches end of non-void function [-Wreturn-type] | |
| } | |
| ^ | |
| ../src/network.c:815: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:828: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:848: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:925: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:1030: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:1042: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:1129: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:1132: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:1149: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. | |
| make: *** [main.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment