bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock


From: Andy Wingo
Subject: Re: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid'
Date: Fri, 20 May 2011 12:07:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Douglas,

On Tue 10 May 2011 20:16, Douglas Mencken <address@hidden> writes:

> To get clock_getcpuclockid, it is needed to link with librt, where
> this symbol is present

Can you check your config.log for mentions of clock_gettime ?

For example in mine I have:

  configure:25329: checking for library containing clock_gettime
  configure:25377: result: -lrt
  configure:25389: checking for clock_gettime
  configure:25389: result: yes
  configure:25389: checking for clock_settime
  configure:25389: result: yes

> I'm trying to build guile-v2.0.1-53-g8f6a4b2, and got the following errors:
>
>   CC       guile-guile.o
>   CCLD     guile
> ./.libs/libguile-2.0.so: warning: the use of `tmpnam' is dangerous,
> better use `mkstemp'
> ./.libs/libguile-2.0.so: warning: gethostbyaddr is obsolescent, use
> getaddrinfo() instead.
> ./.libs/libguile-2.0.so: warning: gethostbyname is obsolescent, use
> getnameinfo() instead.
> ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid'
> collect2: ld returned 1 exit status
> make[3]: *** [guile] Error 1

Odd.  To have gotten here you had to have built libguile already, which
indeed should have linked to -lrt.  Can you grep your libguile/Makefile
for LIB_CLOCK_GETTIME ?

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

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]