From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-1.8 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Troex Nevelin Newsgroups: gmane.comp.lang.ruby.raindrops.general Subject: Build failed on FreeBSD Date: Thu, 14 Apr 2011 02:56:33 +0400 Message-ID: <4DA62A21.6020004@mrtech.ru> References: <4DA62A21.6020004@mrtech.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302735430 19561 80.91.229.12 (13 Apr 2011 22:57:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2011 22:57:10 +0000 (UTC) To: raindrops@librelist.com Original-X-From: raindrops@librelist.com Thu Apr 14 00:57:05 2011 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org In-Reply-To: <4DA62A21.6020004@mrtech.ru> List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: raindrops@librelist.com Xref: news.gmane.org gmane.comp.lang.ruby.raindrops.general:32 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QA8zf-0000zd-2N for gclrrg-raindrops@m.gmane.org; Thu, 14 Apr 2011 00:57:03 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 0D04F21C8F6 for ; Wed, 13 Apr 2011 22:57:37 +0000 (UTC) Hello, I know raindrops uses some linux-specific features, but as I understand it can work on any unix. I have some project that have couple backend server and these servers are running different OSes. So I'm using one copy of my software (via NFS) to run on both and I want it to run platform indeptended, but raindrops fails to build on FreeBSD: [root@billing-local ~]# gem install raindrops Building native extensions. This could take a while... ERROR: Error installing raindrops: ERROR: Failed to build gem native extension. /usr/local/bin/ruby18 extconf.rb checking for mmap() in sys/mman.h... yes checking for munmap() in sys/mman.h... yes checking for mremap() in sys/mman.h... no checking for getpagesize() in unistd.h... yes checking for rb_thread_blocking_region()... no checking for rb_thread_io_blocking_region()... no checking for GCC 4+ atomic builtins... yes creating Makefile make cc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd8 -I. -DHAVE_MMAP -DHAVE_MUNMAP -DHAVE_GETPAGESIZE -DHAVE_GCC_ATOMIC_BUILTINS -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -march=i486 -c linux_inet_diag.c cc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd8 -I. -DHAVE_MMAP -DHAVE_MUNMAP -DHAVE_GETPAGESIZE -DHAVE_GCC_ATOMIC_BUILTINS -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -march=i486 -c linux_tcp_info.c cc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd8 -I. -DHAVE_MMAP -DHAVE_MUNMAP -DHAVE_GETPAGESIZE -DHAVE_GCC_ATOMIC_BUILTINS -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -march=i486 -c raindrops.c raindrops.c: In function 'init': raindrops.c:105: error: 'MAP_ANON' undeclared (first use in this function) raindrops.c:105: error: (Each undeclared identifier is reported only once raindrops.c:105: error: for each function it appears in.) *** Error code 1 Stop in /usr/local/lib/ruby/gems/1.8/gems/raindrops-0.6.1/ext/raindrops. Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/raindrops-0.6.1 for inspection. Results logged to /usr/local/lib/ruby/gems/1.8/gems/raindrops-0.6.1/ext/raindrops/gem_make.out [root@billing-local ~]# ruby --version ruby 1.8.7 (2009-04-08 patchlevel 160) [i386-freebsd8] [root@billing-local ~]# gem --version 1.6.2 [root@billing-local ~]# uname -a FreeBSD billing-local 8.0-RELEASE-p4 FreeBSD 8.0-RELEASE-p4 #0: Mon Jul 12 20:22:27 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386