Created
February 4, 2022 18:50
-
-
Save goldylucks/8369ea09af4f3f70d707809f4bb700df 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
Building native extensions. This could take a while... | |
ERROR: Error installing eventmachine: | |
ERROR: Failed to build gem native extension. | |
current directory: /Users/Goldy/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/eventmachine-1.2.7/ext | |
/Users/Goldy/.rbenv/versions/2.5.5/bin/ruby -I /Users/Goldy/.rbenv/versions/2.5.5/lib/ruby/site_ruby/2.5.0 -r ./siteconf20220204-75650-1z06u3r.rb extconf.rb | |
checking for -lcrypto... yes | |
checking for -lssl... 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 rb_thread_call_without_gvl() in ruby/thread.h... no | |
checking for rb_thread_fd_select()... no | |
checking for rb_fdset_t in ruby/intern.h... yes | |
checking for rb_wait_for_single_fd()... no | |
checking for rb_enable_interrupt()... no | |
checking for rb_time_new()... 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 pipe2() in unistd.h... no | |
checking for accept4() in sys/socket.h... no | |
checking for SOCK_CLOEXEC in sys/socket.h... no | |
checking for sys/event.h... yes | |
checking for sys/queue.h... yes | |
checking for clock_gettime()... yes | |
checking for CLOCK_MONOTONIC_RAW in time.h... yes | |
checking for CLOCK_MONOTONIC in time.h... yes | |
CXXFLAGS=$(cxxflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result -Wno-address | |
creating Makefile | |
current directory: /Users/Goldy/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/eventmachine-1.2.7/ext | |
make "DESTDIR=" clean | |
current directory: /Users/Goldy/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/eventmachine-1.2.7/ext | |
make "DESTDIR=" | |
compiling binder.cpp | |
In file included from binder.cpp:20: | |
In file included from ./project.h:167: | |
./binder.h:41: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:168: | |
./em.h:145:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (uint64_t); | |
^~~~~~ | |
./em.h:146: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:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:149:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:150:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:151:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:152:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (SOCKET); | |
^~~~~~ | |
./em.h:153:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:155:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:161:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (SOCKET, bool); | |
^~~~~~ | |
./em.h:178:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:187: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:172: | |
./eventmachine.h:54:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (uint64_t milliseconds); | |
^~~~~~ | |
./eventmachine.h:55: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:56: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:58: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:73: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:74: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:75:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:76: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:77:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:119:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:121:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:124: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:167: | |
./binder.h:41: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:168: | |
./em.h:145:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (uint64_t); | |
^~~~~~ | |
./em.h:146: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:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:149:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:150:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:151:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:152:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (SOCKET); | |
^~~~~~ | |
./em.h:153:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:155:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:161:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (SOCKET, bool); | |
^~~~~~ | |
./em.h:178:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:187: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:172: | |
./eventmachine.h:54:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (uint64_t milliseconds); | |
^~~~~~ | |
./eventmachine.h:55: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:56: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:58: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:73: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:74: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:75:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:76: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:77:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:119:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:121:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:124: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 (uint64_t milliseconds) | |
^~~~~~ | |
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:782: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:890: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:167: | |
./binder.h:41: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:168: | |
./em.h:145:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (uint64_t); | |
^~~~~~ | |
./em.h:146: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:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:149:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:150:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:151:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:152:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (SOCKET); | |
^~~~~~ | |
./em.h:153:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:155:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:161:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (SOCKET, bool); | |
^~~~~~ | |
./em.h:178:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:187: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:172: | |
./eventmachine.h:54:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (uint64_t milliseconds); | |
^~~~~~ | |
./eventmachine.h:55: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:56: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:58: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:73: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:74: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:75:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:76: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:77:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:119:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:121:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:124:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_pid (int); | |
^~~~~~ | |
ed.cpp:642:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
int remaining = length - writed; | |
~~~~~~~~~ ~~~~~~~^~~~~~~~ | |
ed.cpp:700:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
OutboundPages.push_back (OutboundPage (buffer, length)); | |
~~~~~~~~~~~~ ^~~~~~ | |
ed.cpp:705:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return length; | |
~~~~~~ ^~~~~~ | |
ed.cpp:850: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:915:34: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
SslBox->PutCiphertext (buffer, size); | |
~~~~~~~~~~~~~ ^~~~ | |
ed.cpp:1079:29: warning: implicit conversion loses integer precision: 'std::deque<ConnectionDescriptor::OutboundPage>::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int iovcnt = OutboundPages.size(); | |
~~~~~~ ~~~~~~~~~~~~~~^~~~~~ | |
ed.cpp:1126: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:1763: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:1833: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), | |
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
ed.cpp:1911:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
OutboundPages.push_back (OutboundPage (buffer, length, ReturnAddress)); | |
~~~~~~~~~~~~ ^~~~~~ | |
ed.cpp:1925:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return length; | |
~~~~~~ ^~~~~~ | |
ed.cpp:1958:49: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
OutboundPages.push_back (OutboundPage (buffer, length, addr_here)); | |
~~~~~~~~~~~~ ^~~~~~ | |
ed.cpp:1972:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return length; | |
~~~~~~ ^~~~~~ | |
38 warnings generated. | |
compiling em.cpp | |
In file included from em.cpp:23: | |
In file included from ./project.h:167: | |
./binder.h:41: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:168: | |
./em.h:145:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t InstallOneshotTimer (uint64_t); | |
^~~~~~ | |
./em.h:146: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:147:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t ConnectToUnixServer (const char *); | |
^~~~~~ | |
./em.h:149:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateTcpServer (const char *, int); | |
^~~~~~ | |
./em.h:150:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenDatagramSocket (const char *, int); | |
^~~~~~ | |
./em.h:151:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t CreateUnixDomainServer (const char*); | |
^~~~~~ | |
./em.h:152:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachSD (SOCKET); | |
^~~~~~ | |
./em.h:153:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t OpenKeyboard(); | |
^~~~~~ | |
./em.h:155:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t Socketpair (char* const*); | |
^~~~~~ | |
./em.h:161:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t AttachFD (SOCKET, bool); | |
^~~~~~ | |
./em.h:178:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t WatchFile (const char*); | |
^~~~~~ | |
./em.h:187: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:172: | |
./eventmachine.h:54:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_install_oneshot_timer (uint64_t milliseconds); | |
^~~~~~ | |
./eventmachine.h:55: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:56: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:58: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:73: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:74: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:75:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_attach_sd (int sd); | |
^~~~~~ | |
./eventmachine.h:76: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:77:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_open_keyboard(); | |
^~~~~~ | |
./eventmachine.h:119:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_popen (char * const*cmd_strings); | |
^~~~~~ | |
./eventmachine.h:121:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_filename (const char *fname); | |
^~~~~~ | |
./eventmachine.h:124:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t evma_watch_pid (int); | |
^~~~~~ | |
em.cpp:303: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:706: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 | |
/Users/Goldy/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/intern.h:438: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:706: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) { | |
^~~~~~~~ | |
/Users/Goldy/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/intern.h:438: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:838:29: warning: implicit conversion loses integer precision: 'std::vector<EventableDescriptor *>::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int nSockets = Descriptors.size(); | |
~~~~~~~~ ~~~~~~~~~~~~^~~~~~ | |
em.cpp:939: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 | |
^ | |
/Users/Goldy/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/intern.h:438: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:1063: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 | |
^ | |
/Users/Goldy/.rbenv/versions/2.5.5/include/ruby-2.5.0/ruby/intern.h:438: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:1145:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::InstallOneshotTimer (uint64_t milliseconds) | |
^~~~~~ | |
em.cpp:1167: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:1233:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32] | |
if (bind (sd, (struct sockaddr *)&bind_to, bind_to_len) < 0) { | |
~~~~ ^~~~~~~~~~~ | |
em.cpp:1243:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32] | |
if (connect (sd, (struct sockaddr *)&bind_as, bind_as_len) == 0) { | |
~~~~~~~ ^~~~~~~~~~~ | |
em.cpp:1358:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::ConnectToUnixServer (const char *server) | |
^~~~~~ | |
em.cpp:1428:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::AttachFD (SOCKET fd, bool watch_mode) | |
^~~~~~ | |
em.cpp:1577: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:1614:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32] | |
if (bind (sd_accept, (struct sockaddr *)&bind_here, bind_here_len)) { | |
~~~~ ^~~~~~~~~~~~~ | |
em.cpp:1637: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:1661:47: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32] | |
if (bind (sd, (struct sockaddr *)&bind_here, bind_here_len) != 0) | |
~~~~ ^~~~~~~~~~~~~ | |
em.cpp:1912:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::CreateUnixDomainServer (const char *filename) | |
^~~~~~ | |
em.cpp:1976:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::AttachSD (SOCKET sd_accept) | |
^~~~~~ | |
em.cpp:2012: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:2075:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::OpenKeyboard() | |
^~~~~~ | |
em.cpp:2096:52: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] | |
return Descriptors.size() + NewDescriptors.size() - i; | |
~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | |
em.cpp:2105:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::WatchPid (int pid) | |
^~~~~~ | |
em.cpp:2176:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] | |
const uintptr_t EventMachine_t::WatchFile (const char *fpath) | |
^~~~~~ | |
44 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