Skip to content

Instantly share code, notes, and snippets.

@crigor
Created February 5, 2014 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crigor/3f0d4533a5aca54d5331 to your computer and use it in GitHub Desktop.
Save crigor/3f0d4533a5aca54d5331 to your computer and use it in GitHub Desktop.
ip-10-90-61-103 ~ # ruby -v
ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux]
ip-10-90-61-103 ~ # gem install kgio
Fetching: kgio-2.9.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing kgio:
ERROR: Failed to build gem native extension.
/usr/bin/ruby18 extconf.rb
checking for CLOCK_MONOTONIC in time.h... yes
checking for clockid_t in time.h... yes
checking for clock_gettime() in -lrt... yes
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... yes
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... yes
checking for getnameinfo() in sys/types.h,sys/socket.h,netdb.h... yes
checking for struct sockaddr_storage in sys/types.h,sys/socket.h... yes
checking for accept4() in sys/socket.h... yes
checking for sys/select.h... yes
checking for writev() in sys/uio.h... yes
checking for ruby/io.h... no
checking for OpenFile in ruby.h,rubyio.h... yes
checking for OpenFile.f in ruby.h,rubyio.h... yes
checking for OpenFile.f2 in ruby.h,rubyio.h... yes
checking for OpenFile.mode in ruby.h,rubyio.h... yes
checking for OpenFile.path in ruby.h,rubyio.h... yes
checking for rb_fdopen()... yes
checking for struct RFile in ruby.h,rubyio.h... yes
checking size of struct RFile in ruby.h,rubyio.h... 24
checking for struct RObject... no
checking size of int... 4
checking for rb_io_ascii8bit_binmode()... no
checking for rb_update_max_fd()... no
checking for rb_fd_fix_cloexec()... no
checking for rb_cloexec_open()... no
checking for ruby/thread.h... no
checking for rb_thread_call_without_gvl() in ruby/thread.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_io_blocking_region()... no
checking for rb_str_set_len()... yes
checking for rb_time_interval()... yes
checking for rb_wait_for_single_fd()... no
checking for rb_str_subseq()... no
checking for rb_ary_subseq()... no
creating Makefile
make
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_WRITEV -DHAVE_TYPE_OPENFILE -DHAVE_ST_F -DHAVE_ST_F2 -DHAVE_ST_MODE -DHAVE_ST_PATH -DHAVE_RB_FDOPEN -DHAVE_TYPE_STRUCT_RFILE -DSIZEOF_STRUCT_RFILE=24 -DSIZEOF_INT=4 -DHAVE_RB_STR_SET_LEN -DHAVE_RB_TIME_INTERVAL -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -march=athlon64 -O2 -pipe -fno-strict-aliasing -fPIC -c accept.c
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_WRITEV -DHAVE_TYPE_OPENFILE -DHAVE_ST_F -DHAVE_ST_F2 -DHAVE_ST_MODE -DHAVE_ST_PATH -DHAVE_RB_FDOPEN -DHAVE_TYPE_STRUCT_RFILE -DSIZEOF_STRUCT_RFILE=24 -DSIZEOF_INT=4 -DHAVE_RB_STR_SET_LEN -DHAVE_RB_TIME_INTERVAL -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -march=athlon64 -O2 -pipe -fno-strict-aliasing -fPIC -c wait.c
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_WRITEV -DHAVE_TYPE_OPENFILE -DHAVE_ST_F -DHAVE_ST_F2 -DHAVE_ST_MODE -DHAVE_ST_PATH -DHAVE_RB_FDOPEN -DHAVE_TYPE_STRUCT_RFILE -DSIZEOF_STRUCT_RFILE=24 -DSIZEOF_INT=4 -DHAVE_RB_STR_SET_LEN -DHAVE_RB_TIME_INTERVAL -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -march=athlon64 -O2 -pipe -fno-strict-aliasing -fPIC -c connect.c
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_WRITEV -DHAVE_TYPE_OPENFILE -DHAVE_ST_F -DHAVE_ST_F2 -DHAVE_ST_MODE -DHAVE_ST_PATH -DHAVE_RB_FDOPEN -DHAVE_TYPE_STRUCT_RFILE -DSIZEOF_STRUCT_RFILE=24 -DSIZEOF_INT=4 -DHAVE_RB_STR_SET_LEN -DHAVE_RB_TIME_INTERVAL -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -march=athlon64 -O2 -pipe -fno-strict-aliasing -fPIC -c read.c
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_WRITEV -DHAVE_TYPE_OPENFILE -DHAVE_ST_F -DHAVE_ST_F2 -DHAVE_ST_MODE -DHAVE_ST_PATH -DHAVE_RB_FDOPEN -DHAVE_TYPE_STRUCT_RFILE -DSIZEOF_STRUCT_RFILE=24 -DSIZEOF_INT=4 -DHAVE_RB_STR_SET_LEN -DHAVE_RB_TIME_INTERVAL -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -march=athlon64 -O2 -pipe -fno-strict-aliasing -fPIC -c kgio_ext.c
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_WRITEV -DHAVE_TYPE_OPENFILE -DHAVE_ST_F -DHAVE_ST_F2 -DHAVE_ST_MODE -DHAVE_ST_PATH -DHAVE_RB_FDOPEN -DHAVE_TYPE_STRUCT_RFILE -DSIZEOF_STRUCT_RFILE=24 -DSIZEOF_INT=4 -DHAVE_RB_STR_SET_LEN -DHAVE_RB_TIME_INTERVAL -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -march=athlon64 -O2 -pipe -fno-strict-aliasing -fPIC -c write.c
write.c: In function ‘init_kgio_write’:
write.c:265:51: error: ‘kgio_syssend’ undeclared (first use in this function)
write.c:265:51: note: each undeclared identifier is reported only once for each function it appears in
make: *** [write.o] Error 1
Gem files will remain installed in /usr/local/lib64/ruby/gems/1.8/gems/kgio-2.9.0 for inspection.
Results logged to /usr/local/lib64/ruby/gems/1.8/gems/kgio-2.9.0/ext/kgio/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment