-
-
Save dwfait/f943ba48e79b065d363c to your computer and use it in GitHub Desktop.
This file contains 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
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/eventmachine-1.0.8/ext | |
/usr/local/bin/ruby -r ./siteconf20151228-11378-gg245o.rb extconf.rb --with-pkg-config=/usr/local/opt/openssl/lib/pkgconfig | |
checking for main() in -lssl... yes | |
checking for main() in -lcrypto... yes | |
checking for openssl/ssl.h... yes | |
checking for openssl/err.h... yes | |
checking for rb_trap_immediate in ruby.h,rubysig.h... no | |
checking for rb_thread_blocking_region()... no | |
checking for ruby/thread.h... yes | |
checking for rb_thread_call_without_gvl() in ruby/thread.h... no | |
checking for inotify_init() in sys/inotify.h... no | |
checking for __NR_inotify_init in sys/syscall.h... no | |
checking for writev() in sys/uio.h... yes | |
checking for rb_thread_fd_select()... no | |
checking for rb_fdset_t in ruby/intern.h... yes | |
checking for pipe2() in unistd.h... no | |
checking for accept4() in sys/socket.h... no | |
checking for SOCK_CLOEXEC in sys/socket.h... no | |
checking for rb_wait_for_single_fd()... no | |
checking for rb_enable_interrupt()... no | |
checking for rb_time_new()... no | |
checking for sys/event.h... yes | |
checking for sys/queue.h... yes | |
CFLAGS=$(cflags) -pipe -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result | |
CPPFLAGS=-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result | |
checking for clock_gettime()... no | |
checking for gethrtime()... no | |
creating Makefile | |
To see why this extension failed to compile, please check the mkmf.log which can be found here: | |
/usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-14/2.4.0-static/eventmachine-1.0.8/mkmf.log | |
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/eventmachine-1.0.8/ext | |
make "DESTDIR=" clean | |
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/eventmachine-1.0.8/ext | |
make "DESTDIR=" | |
compiling binder.cpp | |
In file included from binder.cpp:20: | |
In file included from ./project.h:164: | |
./binder.h:35:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t GetBinding() {return Binding;} | |
^~~~~~ | |
In file included from binder.cpp:20: | |
In file included from ./project.h:165: | |
./em.h:131:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (int); | |
^~~~~~ | |
./em.h:132:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToServer (const char *, int, const char *, int); | |
^~~~~~ | |
./em.h:133:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:135:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:136:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:137:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:138:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (int); | |
^~~~~~ | |
./em.h:139:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:141:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (int, bool); | |
^~~~~~ | |
./em.h:164:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:173:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchPid (int); | |
^~~~~~ | |
In file included from binder.cpp:20: | |
In file included from ./project.h:169: | |
./eventmachine.h:47:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (int seconds); | |
^~~~~~ | |
./eventmachine.h:48:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_server (const char *bind_addr, int bind_port, const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:49:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_unix_server (const char *server); | |
^~~~~~ | |
./eventmachine.h:51:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_fd (int file_descriptor, int watch_mode); | |
^~~~~~ | |
./eventmachine.h:66:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_tcp_server (const char *address, int port); | |
^~~~~~ | |
./eventmachine.h:67:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_unix_domain_server (const char *filename); | |
^~~~~~ | |
./eventmachine.h:68:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:69:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_datagram_socket (const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:70:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:107:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:109:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:112:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_pid (int); | |
^~~~~~ | |
25 warnings generated. | |
compiling cmain.cpp | |
In file included from cmain.cpp:20: | |
In file included from ./project.h:164: | |
./binder.h:35:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t GetBinding() {return Binding;} | |
^~~~~~ | |
In file included from cmain.cpp:20: | |
In file included from ./project.h:165: | |
./em.h:131:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (int); | |
^~~~~~ | |
./em.h:132:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToServer (const char *, int, const char *, int); | |
^~~~~~ | |
./em.h:133:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:135:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:136:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:137:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:138:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (int); | |
^~~~~~ | |
./em.h:139:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:141:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (int, bool); | |
^~~~~~ | |
./em.h:164:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:173:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchPid (int); | |
^~~~~~ | |
In file included from cmain.cpp:20: | |
In file included from ./project.h:169: | |
./eventmachine.h:47:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (int seconds); | |
^~~~~~ | |
./eventmachine.h:48:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_server (const char *bind_addr, int bind_port, const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:49:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_unix_server (const char *server); | |
^~~~~~ | |
./eventmachine.h:51:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_fd (int file_descriptor, int watch_mode); | |
^~~~~~ | |
./eventmachine.h:66:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_tcp_server (const char *address, int port); | |
^~~~~~ | |
./eventmachine.h:67:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_unix_domain_server (const char *filename); | |
^~~~~~ | |
./eventmachine.h:68:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:69:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_datagram_socket (const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:70:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:107:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:109:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:112:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_pid (int); | |
^~~~~~ | |
cmain.cpp:103:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_install_oneshot_timer (int seconds) | |
^~~~~~ | |
cmain.cpp:114:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_connect_to_server (const char *bind_addr, int bind_port, const char *server, int port) | |
^~~~~~ | |
cmain.cpp:124:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_connect_to_unix_server (const char *server) | |
^~~~~~ | |
cmain.cpp:134:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_attach_fd (int file_descriptor, int watch_mode) | |
^~~~~~ | |
cmain.cpp:277:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_create_tcp_server (const char *address, int port) | |
^~~~~~ | |
cmain.cpp:287:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_create_unix_domain_server (const char *filename) | |
^~~~~~ | |
cmain.cpp:297:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_attach_sd (int sd) | |
^~~~~~ | |
cmain.cpp:307:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_open_datagram_socket (const char *address, int port) | |
^~~~~~ | |
cmain.cpp:317:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_open_keyboard() | |
^~~~~~ | |
cmain.cpp:327:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_watch_filename (const char *fname) | |
^~~~~~ | |
cmain.cpp:347:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_watch_pid (int pid) | |
^~~~~~ | |
cmain.cpp:710:12: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
extern "C" const uintptr_t evma_popen (char * const*cmd_strings) | |
^~~~~~ | |
cmain.cpp:818:6: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] | |
r = read (Fd, data, filesize); | |
~ ^~~~~~~~~~~~~~~~~~~~~~~~~ | |
38 warnings generated. | |
compiling ed.cpp | |
In file included from ed.cpp:20: | |
In file included from ./project.h:164: | |
./binder.h:35:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t GetBinding() {return Binding;} | |
^~~~~~ | |
In file included from ed.cpp:20: | |
In file included from ./project.h:165: | |
./em.h:131:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (int); | |
^~~~~~ | |
./em.h:132:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToServer (const char *, int, const char *, int); | |
^~~~~~ | |
./em.h:133:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:135:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:136:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:137:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:138:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (int); | |
^~~~~~ | |
./em.h:139:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:141:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (int, bool); | |
^~~~~~ | |
./em.h:164:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:173:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchPid (int); | |
^~~~~~ | |
In file included from ed.cpp:20: | |
In file included from ./project.h:169: | |
./eventmachine.h:47:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (int seconds); | |
^~~~~~ | |
./eventmachine.h:48:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_server (const char *bind_addr, int bind_port, const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:49:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_unix_server (const char *server); | |
^~~~~~ | |
./eventmachine.h:51:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_fd (int file_descriptor, int watch_mode); | |
^~~~~~ | |
./eventmachine.h:66:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_tcp_server (const char *address, int port); | |
^~~~~~ | |
./eventmachine.h:67:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_unix_domain_server (const char *filename); | |
^~~~~~ | |
./eventmachine.h:68:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:69:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_datagram_socket (const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:70:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:107:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:109:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:112:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_pid (int); | |
^~~~~~ | |
ed.cpp:591:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
int remaining = length - writed; | |
~~~~~~~~~ ~~~~~~~^~~~~~~~ | |
ed.cpp:649:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
OutboundPages.push_back (OutboundPage (buffer, length)); | |
~~~~~~~~~~~~ ^~~~~~ | |
ed.cpp:654:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return length; | |
~~~~~~ ^~~~~~ | |
ed.cpp:799:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] | |
int r = read (sd, readbuffer, sizeof(readbuffer) - 1); | |
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
ed.cpp:864:34: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
SslBox->PutCiphertext (buffer, size); | |
~~~~~~ ^~~~ | |
ed.cpp:1018:15: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int iovcnt = OutboundPages.size(); | |
~~~~~~ ^~~~~~~~~~~~~~~~~~~~ | |
ed.cpp:1063:22: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] | |
int bytes_written = writev (GetSocket(), iov, iovcnt); | |
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
ed.cpp:1646:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] | |
int r = recvfrom (sd, readbuffer, sizeof(readbuffer) - 1, 0, (struct sockaddr*)&sin, &slen); | |
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
ed.cpp:1716:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] | |
int s = sendto (sd, (char*)op->Buffer, op->Length, 0, (struct sockaddr*)&(op->From), sizeof(op->From)); | |
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
ed.cpp:1793:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
OutboundPages.push_back (OutboundPage (buffer, length, ReturnAddress)); | |
~~~~~~~~~~~~ ^~~~~~ | |
ed.cpp:1807:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return length; | |
~~~~~~ ^~~~~~ | |
ed.cpp:1842:24: warning: implicit conversion loses integer precision: 'unsigned long' to 'in_addr_t' (aka 'unsigned int') [-Wshorten-64-to-32] | |
pin.sin_addr.s_addr = HostAddr; | |
~ ^~~~~~~~ | |
ed.cpp:1853:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
OutboundPages.push_back (OutboundPage (buffer, length, pin)); | |
~~~~~~~~~~~~ ^~~~~~ | |
ed.cpp:1867:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return length; | |
~~~~~~ ^~~~~~ | |
39 warnings generated. | |
compiling em.cpp | |
In file included from em.cpp:23: | |
In file included from ./project.h:164: | |
./binder.h:35:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t GetBinding() {return Binding;} | |
^~~~~~ | |
In file included from em.cpp:23: | |
In file included from ./project.h:165: | |
./em.h:131:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (int); | |
^~~~~~ | |
./em.h:132:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToServer (const char *, int, const char *, int); | |
^~~~~~ | |
./em.h:133:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:135:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:136:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:137:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:138:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (int); | |
^~~~~~ | |
./em.h:139:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:141:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (int, bool); | |
^~~~~~ | |
./em.h:164:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:173:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchPid (int); | |
^~~~~~ | |
In file included from em.cpp:23: | |
In file included from ./project.h:169: | |
./eventmachine.h:47:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (int seconds); | |
^~~~~~ | |
./eventmachine.h:48:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_server (const char *bind_addr, int bind_port, const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:49:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_connect_to_unix_server (const char *server); | |
^~~~~~ | |
./eventmachine.h:51:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_fd (int file_descriptor, int watch_mode); | |
^~~~~~ | |
./eventmachine.h:66:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_tcp_server (const char *address, int port); | |
^~~~~~ | |
./eventmachine.h:67:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_create_unix_domain_server (const char *filename); | |
^~~~~~ | |
./eventmachine.h:68:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:69:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_datagram_socket (const char *server, int port); | |
^~~~~~ | |
./eventmachine.h:70:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:107:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:109:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:112:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_pid (int); | |
^~~~~~ | |
em.cpp:293:14: warning: implicit conversion loses integer precision: 'rlim_t' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] | |
return rlim.rlim_cur; | |
~~~~~~ ~~~~~^~~~~~~~ | |
em.cpp:700:13: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'? | |
if ((ret = rb_thread_select(kqfd + 1, &fdreads, NULL, NULL, &tv)) < 1) { | |
^~~~~~~~~~~~~~~~ | |
rb_thread_fd_select | |
/usr/local/include/ruby-2.4.0/ruby/intern.h:459:5: note: 'rb_thread_fd_select' declared here | |
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); | |
^ | |
em.cpp:700:40: error: cannot initialize a parameter of type 'rb_fdset_t *' with an rvalue of type 'fd_set *' | |
if ((ret = rb_thread_select(kqfd + 1, &fdreads, NULL, NULL, &tv)) < 1) { | |
^~~~~~~~ | |
/usr/local/include/ruby-2.4.0/ruby/intern.h:459:42: note: passing argument to parameter here | |
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); | |
^ | |
em.cpp:832:17: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int nSockets = Descriptors.size(); | |
~~~~~~~~ ^~~~~~~~~~~~~~~~~~ | |
em.cpp:933:9: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'? | |
return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv); | |
^~~~~~~~ | |
rb_thread_fd_select | |
./em.h:29:22: note: expanded from macro 'EmSelect' | |
#define EmSelect rb_thread_select | |
^ | |
/usr/local/include/ruby-2.4.0/ruby/intern.h:459:5: note: 'rb_thread_fd_select' declared here | |
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); | |
^ | |
em.cpp:1057:6: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'? | |
EmSelect (0, NULL, NULL, NULL, &tv); | |
^~~~~~~~ | |
rb_thread_fd_select | |
./em.h:29:22: note: expanded from macro 'EmSelect' | |
#define EmSelect rb_thread_select | |
^ | |
/usr/local/include/ruby-2.4.0/ruby/intern.h:459:5: note: 'rb_thread_fd_select' declared here | |
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); | |
^ | |
em.cpp:1139:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::InstallOneshotTimer (int milliseconds) | |
^~~~~~ | |
em.cpp:1161:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::ConnectToServer (const char *bind_addr, int bind_port, const char *server, int port) | |
^~~~~~ | |
em.cpp:1347:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::ConnectToUnixServer (const char *server) | |
^~~~~~ | |
em.cpp:1420:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::AttachFD (int fd, bool watch_mode) | |
^~~~~~ | |
em.cpp:1600:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::CreateTcpServer (const char *server, int port) | |
^~~~~~ | |
em.cpp:1663:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::OpenDatagramSocket (const char *address, int port) | |
^~~~~~ | |
em.cpp:1942:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::CreateUnixDomainServer (const char *filename) | |
^~~~~~ | |
em.cpp:2008:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::AttachSD (int sd_accept) | |
^~~~~~ | |
em.cpp:2043:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::Socketpair (char * const*cmd_strings) | |
^~~~~~ | |
em.cpp:2107:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::OpenKeyboard() | |
^~~~~~ | |
em.cpp:2123:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return Descriptors.size() + NewDescriptors.size(); | |
~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ | |
em.cpp:2132:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::WatchPid (int pid) | |
^~~~~~ | |
em.cpp:2203:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::WatchFile (const char *fpath) | |
^~~~~~ | |
40 warnings and 4 errors generated. | |
make: *** [em.o] Error 1 | |
make failed, exit code 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment