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.9 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: Eric Wong Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: Re: Proplems building on Ubuntu 12.10 server 64bit Date: Wed, 21 Nov 2012 23:19:15 +0000 Message-ID: <20121121231915.GA8670@dcvr.yhbt.net> References: <1062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236> <1062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236> <20121121231403.GA7700@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353539968 5075 80.91.229.3 (21 Nov 2012 23:19:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 23:19:28 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Thu Nov 22 00:19:40 2012 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:185 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbJZv-0002iz-JL for gclrkg-kgio@m.gmane.org; Thu, 22 Nov 2012 00:19:35 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 245B721EF2F for ; Wed, 21 Nov 2012 23:31:20 +0000 (UTC) Eric Wong wrote: > stuart wrote: > > 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 otherwise I get the error build log below. > > Yes, patch coming. Pushed to master on git://bogomips.org/kgio >>From 8b4df8ece93ddc4e2fb685905461c1ed27b22295 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 21 Nov 2012 23:16:00 +0000 Subject: [PATCH] tryopen: include errno.h header just in case errno.h is not guaranteed to be included in existing headers, so we need to #include it to ensure errno and friends are usable. Thanks to stuart on the kgio mailing list for noticing ref: <062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236> --- ext/kgio/tryopen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/kgio/tryopen.c b/ext/kgio/tryopen.c index f8044a5..0ee6a54 100644 --- a/ext/kgio/tryopen.c +++ b/ext/kgio/tryopen.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "set_file_path.h" #include "ancient_ruby.h" -- Eric Wong