unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Douglas Mencken <dougmencken@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile@gnu.org
Subject: Re: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid'
Date: Sat, 21 May 2011 12:38:22 +0200	[thread overview]
Message-ID: <BANLkTinTX-mZNU7yPp+XXB-4aOCsM8yZAg@mail.gmail.com> (raw)
In-Reply-To: <m3vcx5wuq5.fsf@unquote.localdomain>

> Can you grep your libguile/Makefile for LIB_CLOCK_GETTIME ?

There's empty definition.
LIB_CLOCK_GETTIME =

> Is it perhaps that clock_getcpuclockid is in -lrt but clock_gettime is
> in your libc?

clock_gettime is in both of them:

/lib # readelf -s librt.so.0 | grep clock
    42: 00001cb4    68 FUNC    GLOBAL DEFAULT    6 clock_gettime
    44: 00001a78   172 FUNC    GLOBAL DEFAULT    6 clock_nanosleep
    64: 00001b74    88 FUNC    GLOBAL DEFAULT    6 clock_getcpuclockid
/lib # readelf -s libc.so.0 | grep clock
   166: 0000fcf4    72 FUNC    GLOBAL DEFAULT    6 clock_gettime
   514: 00011868    72 FUNC    GLOBAL DEFAULT    6 clock_settime
   537: 0000fa84    72 FUNC    GLOBAL DEFAULT    6 clock_getres
   762: 0002a588    56 FUNC    GLOBAL DEFAULT    6 clock

but getcpuclockid is only in librt.



      parent reply	other threads:[~2011-05-21 10:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 18:16 [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid' Douglas Mencken
2011-05-20 10:07 ` Andy Wingo
2011-05-20 16:49   ` Andy Wingo
2011-05-21 12:50     ` Douglas Mencken
2011-06-17  9:18       ` Andy Wingo
2011-05-21 10:38   ` Douglas Mencken [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTinTX-mZNU7yPp+XXB-4aOCsM8yZAg@mail.gmail.com \
    --to=dougmencken@gmail.com \
    --cc=bug-guile@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).