From owner-freebsd-questions@freebsd.org Sat Jul 11 15:34:38 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7ED09989F9 for ; Sat, 11 Jul 2015 15:34:38 +0000 (UTC) (envelope-from opendaddy@hushmail.com) Received: from smtp1.hushmail.com (smtp1.hushmail.com [65.39.178.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A8EC92785 for ; Sat, 11 Jul 2015 15:34:38 +0000 (UTC) (envelope-from opendaddy@hushmail.com) Received: from smtp1.hushmail.com (localhost [127.0.0.1]) by smtp1.hushmail.com (Postfix) with SMTP id 409BC40183 for ; Sat, 11 Jul 2015 14:57:13 +0000 (UTC) Received: from smtp.hushmail.com (w9.hushmail.com [65.39.178.29]) by smtp1.hushmail.com (Postfix) with ESMTP for ; Sat, 11 Jul 2015 14:57:13 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id B2DDE4013B; Sat, 11 Jul 2015 14:57:11 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 11 Jul 2015 14:57:11 +0000 To: freebsd-questions@freebsd.org Subject: Re: Compiling Ruby EventMachine on FreeBSD From: opendaddy@hushmail.com In-Reply-To: <20150703184700.80FCB41A40@smtp.hushmail.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150711145711.B2DDE4013B@smtp.hushmail.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2015 15:34:39 -0000 bump On Friday, July 03, 2015 at 7:21 PM, opendaddy@hushmail.com wrote: > >Hi! > >Trying to `gem install eventmachine` >(https://github.com/eventmachine/eventmachine) on FreeBSD 10.1- >RELEASE but getting: > >Gem::Ext::BuildError: ERROR: Failed to build gem native extension. > > /usr/local/bin/ruby -r ./siteconf20150703-61665-1w426ue.rb >extconf.rb >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 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_wait_for_single_fd()... yes >checking for rb_enable_interrupt()... no >checking for rb_time_new()... yes >checking for sys/event.h... yes >checking for sys/queue.h... yes >creating Makefile > >make "DESTDIR=" clean > >make "DESTDIR=" >compiling binder.cpp >compiling cmain.cpp >compiling ed.cpp >compiling em.cpp >em.cpp:827: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:25:20: note: expanded from macro 'EmSelect' > #define EmSelect rb_thread_select > ^ >/usr/local/include/ruby-2.2.0/ruby/intern.h:454: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:827:32: error: cannot initialize a parameter of type >'rb_fdset_t *' with an rvalue of type 'fd_set *' > return EmSelect (maxsocket+1, &fdreads, &fdwrites, >&fderrors, &tv); > ^~~~~~~~ >/usr/local/include/ruby-2.2.0/ruby/intern.h:454: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:946: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:25:20: note: expanded from macro 'EmSelect' > #define EmSelect rb_thread_select > ^ >/usr/local/include/ruby-2.2.0/ruby/intern.h:454: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 *); > ^ >3 errors generated. >*** Error code 1 > >Stop. >make: stopped in >/usr/home/opendaddy/test/vendor/bundle/ruby/2.2.0/gems/eventmachine >-1.0.3/ext > >make failed, exit code 1 > >Gem files will remain installed in >/usr/home/opendaddy/test/vendor/bundle/ruby/2.2.0/gems/eventmachine >-1.0.3 for inspection. >Results logged to >/usr/home/opendaddy/test/vendor/bundle/ruby/2.2.0/extensions/x86_64 >-freebsd-10/2.2.0-static/eventmachine-1.0.3/gem_make.out >An error occurred while installing eventmachine (1.0.3), and >Bundler cannot >continue. >Make sure that `gem install eventmachine -v '1.0.3'` succeeds >before >bundling. > ># ruby -v >ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-freebsd10.1] > >Thanks! > >O.D. > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions- >unsubscribe@freebsd.org"