kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: stuart <stuart@stuartk.com>
To: kgio@librelist.org
Subject: Proplems building on Ubuntu 12.10 server 64bit
Date: Wed, 21 Nov 2012 14:28:10 -0800	[thread overview]
Message-ID: <1062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236> (raw)
In-Reply-To: <1062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236>

Hi, 

I'm having trouble building kgio 2.7.4 on Ubuntu 12.10 x86_64 with JRuby installed by RVM 

It appears that tryopen.c needs #include <errno.h> otherwise I get the error build log below.

Is this a problem for anyone else, or just on my system?

Thanks, 
Stuart 

This is the build log: 

/home/stuart/.rvm/rubies/jruby-1.7.0/bin/jruby extconf.rb 
/home/stuart/.rvm/rubies/jruby-1.7.0/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config. 
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... 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 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... no 
checking for OpenFile.mode in ruby.h,rubyio.h... yes 
checking for OpenFile.path in ruby.h,rubyio.h... no 
checking for rb_fdopen()... no 
checking for struct RFile in ruby.h,rubyio.h... no 
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 rb_thread_blocking_region()... checking for rb_thread_io_blocking_region()... no 
checking for rb_str_set_len()... checking for rb_time_interval()... no 
checking for rb_wait_for_single_fd()... no 
checking for struct RFile in ruby.h,rubyio.h... no 
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 rb_thread_blocking_region()... checking for rb_thread_io_blocking_region()... no 
checking for rb_str_set_len()... checking for rb_time_interval()... no 
checking for rb_wait_for_single_fd()... no 
creating Makefile 


make 
cc -I. -I. -I/home/stuart/.rvm/rubies/jruby-1.7.0/lib/native/include/ruby -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_TYPE_OPENFILE -DHAVE_ST__ -DHAVE_ST_MODE -DSIZEOF_INT=4 -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_RB_STR_SET_LEN -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -m64 -c poll.c 
cc -I. -I. -I/home/stuart/.rvm/rubies/jruby-1.7.0/lib/native/include/ruby -I. -DHAVE_TYPE_CLOCKID_T -DHAVE_POLL -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO -DHAVE_TYPE_STRUCT_SOCKADDR_STORAGE -DHAVE_ACCEPT4 -DHAVE_SYS_SELECT_H -DHAVE_TYPE_OPENFILE -DHAVE_ST__ -DHAVE_ST_MODE -DSIZEOF_INT=4 -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_RB_STR_SET_LEN -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -m64 -c tryopen.c 
tryopen.c: In function ‘s_tryopen’: 
tryopen.c:107:7: error: ‘errno’ undeclared (first use in this function) 
tryopen.c:107:7: note: each undeclared identifier is reported only once for each function it appears in 
tryopen.c:107:16: error: ‘EMFILE’ undeclared (first use in this function) 
tryopen.c:107:35: error: ‘ENFILE’ undeclared (first use in this function) 
tryopen.c:107:54: error: ‘ENOMEM’ undeclared (first use in this function) 
make: *** [tryopen.o] Error 1


       reply	other threads:[~2012-11-21 22:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 22:28 stuart [this message]
2012-11-21 23:14 ` Proplems building on Ubuntu 12.10 server 64bit Eric Wong
2012-11-21 23:19   ` Eric Wong
2012-11-22  0:02   ` stuart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kgio/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236 \
    --to=stuart@stuartk.com \
    --cc=kgio@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kgio.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).