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=-2.2 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: kgio 2.5.0 failed build/install Date: Fri, 24 Jun 2011 20:50:46 +0000 Message-ID: <20110624205046.GA3577@dcvr.yhbt.net> References: 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 1308948674 14748 80.91.229.12 (24 Jun 2011 20:51:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2011 20:51:14 +0000 (UTC) To: kgio@librelist.com Original-X-From: kgio@librelist.com Fri Jun 24 22:51:09 2011 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.com Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:36 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QaDLJ-0007nN-Ea for gclrkg-kgio@m.gmane.org; Fri, 24 Jun 2011 22:51:09 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 9173921CA3A for ; Fri, 24 Jun 2011 20:51:10 +0000 (UTC) Mohit Chawla wrote: > Hi, > > Seeing this on CentOS 5.6: > > ### build error > > Building native extensions. This could take a while... > ERROR: Error installing kgio: > ERROR: Failed to build gem native extension. > > /usr/bin/ruby extconf.rb > checking for CLOCK_MONOTONIC in "time.h"... yes > checking for clockid_t... yes > checking for clock_gettime() in -lrt... no > checking for t_open() in -lnsl... no > checking for socket() in -lsocket... no > checking for poll()... no > checking for getaddrinfo()... no > getaddrinfo required Weird, clock_gettime() and poll() aren't detected, either. Those should always be present in a Linux system. > "gcc -o conftest -I. -I/usr/lib64/ruby/1.8 -I. -D_GNU_SOURCE > -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing > -fPIC conftest.c -L/usr/lib64 -lruby-static -lpthread -lrt > -ldl -lcrypt -lm -lc" It could be a mixed 32/64-bit environment problem. Can you verify your gcc/Ruby are 64-bit? > No such issues on my Ubuntu/Scientific Linux 6/CentOS 5.5 boxes. Any > clues what could be the reason ? The mixed 64-bit/32-bit toolchain is the only thing that comes to mind. I've always built my own Ruby packages (since long before RVM) on CentOS/Debian machines. Those distros enable pthreads by default on 1.8 (for tcl/tk compatibility) and that kills performance. If RVM works for you, then go for it, otherwise "./configure --prefix=$HOME/foo && make && make install" works great, too. -- Eric Wong