From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid' Date: Fri, 20 May 2011 18:49:15 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1305910639 3173 80.91.229.12 (20 May 2011 16:57:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 16:57:19 +0000 (UTC) Cc: bug-guile@gnu.org To: Douglas Mencken Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri May 20 18:57:15 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QNT0l-00015x-7V for guile-bugs@m.gmane.org; Fri, 20 May 2011 18:57:15 +0200 Original-Received: from localhost ([::1]:54134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNT0k-0007GR-D2 for guile-bugs@m.gmane.org; Fri, 20 May 2011 12:57:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNT0i-0007GM-1Y for bug-guile@gnu.org; Fri, 20 May 2011 12:57:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNT0g-00048C-OO for bug-guile@gnu.org; Fri, 20 May 2011 12:57:12 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:63970 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNT0g-000488-LO for bug-guile@gnu.org; Fri, 20 May 2011 12:57:10 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id C7E4952D9; Fri, 20 May 2011 12:59:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=xem8HKbWJk5hLp1rKUoujXKvChk=; b=mLTF63 oKbKtWYRb2WDhgBnEkBkzl3ff7bvjTGgTZycr/BXXxh+Nn1yXpmLvyc/VC4v/chM 6D1epTOFdIVEtiOH6uNfXymNiIWiMKO5jq7PUQj3lDPtp2xxtD3ebmginrXEYNyM Iel6NWNnePDADBvPVcR6QqTv2VD2EnNNRQ/HQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=w36r18IUaOFrp0tq340a3nkGjNNJs1wA qxl1D6QSe5p6zQEP6vVF1GTbqwRxXAz3Ja8PAxcsWTy8vgIamToxzJL23bqE5mqU D9GOJjkMwi6d6SyZ0onYBBk1AJhtnGj3xqesufa12Whv9/mZjIblqR5ZQ7oWvCaE BHDoWN/oNrg= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id B503E52D8; Fri, 20 May 2011 12:59:11 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [95.21.57.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id D9E6752D4; Fri, 20 May 2011 12:59:09 -0400 (EDT) In-Reply-To: (Andy Wingo's message of "Fri, 20 May 2011 12:07:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 7C1D27BE-8302-11E0-A093-BBB7F5B2FB1A-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5593 Archived-At: --=-=-= On Fri 20 May 2011 12:07, Andy Wingo writes: > Hi Douglas, > > On Tue 10 May 2011 20:16, Douglas Mencken writes: > >> To get clock_getcpuclockid, it is needed to link with librt, where >> this symbol is present Does this patch fix it for you? --=-=-= Content-Disposition: attachment; filename=0001-check-for-clock_getcpuclockid-in-gl_CLOCK_TIME.patch >From 5ad05b93a3f02be7c66fbab9c49e23ca314b7c33 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 20 May 2011 18:48:33 +0200 Subject: [PATCH] check for clock_getcpuclockid in gl_CLOCK_TIME * acinclude.m4 (gl_CLOCK_TIME): It could be that clock_gettime is in libc but clock_getcpuclockid is not, so check for that explicitly. --- acinclude.m4 | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index ba8b090..5bd1ced 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -529,8 +529,14 @@ AC_DEFUN([gl_CLOCK_TIME], AC_SUBST([LIB_CLOCK_GETTIME]) gl_saved_libs=$LIBS AC_SEARCH_LIBS([clock_gettime], [rt posix4], - [test "$ac_cv_search_clock_gettime" = "none required" || - LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) - AC_CHECK_FUNCS([clock_gettime clock_settime]) + [if test "$ac_cv_search_clock_gettime" = "none required"; then + AC_SEARCH_LIBS([clock_getcpuclockid], [rt posix4], + [test "$ac_cv_search_clock_getcpuclockid" = "none required" \ + || LIB_CLOCK_GETTIME=$ac_cv_search_clock_getcpuclockid], + [LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) + else + LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime + fi]) + AC_CHECK_FUNCS([clock_gettime clock_settime clock_getcpuclockid]) LIBS=$gl_saved_libs ]) -- 1.7.5.1 --=-=-= -- http://wingolog.org/ --=-=-=--