From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Douglas Mencken Newsgroups: gmane.lisp.guile.bugs Subject: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid' Date: Tue, 10 May 2011 20:16:42 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1305051416 17259 80.91.229.12 (10 May 2011 18:16:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 18:16:56 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue May 10 20:16:51 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 1QJrUH-0003FL-Am for guile-bugs@m.gmane.org; Tue, 10 May 2011 20:16:49 +0200 Original-Received: from localhost ([::1]:50076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJrUG-00066F-QN for guile-bugs@m.gmane.org; Tue, 10 May 2011 14:16:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJrUD-00065z-Eu for bug-guile@gnu.org; Tue, 10 May 2011 14:16:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJrUB-0002vj-MF for bug-guile@gnu.org; Tue, 10 May 2011 14:16:45 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:57485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJrUB-0002vf-Gk for bug-guile@gnu.org; Tue, 10 May 2011 14:16:43 -0400 Original-Received: by vxk20 with SMTP id 20so9180982vxk.0 for ; Tue, 10 May 2011 11:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=02grvHhTZySVOrS+SWuGZKFtU/D0QsJtw1LFnnLmC9Q=; b=N40kR0WmLMDBmFaEtRkGSafL2FEBt0x9k1yIe10QC7u/phpLeeSvIPQvSo0nxw++A4 e9tM3zhnz3kC5CLtYkQNzjLy/XQmNA5d/jbTkVouArzp9/OKbZIv5IZecVWBkIIOlv+D qGWOPEkkkohiNTaPpGdUfsNZEWZpPOPycR+sg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mQ0jWDEHi00Law6yPHKAh12LI3cZqCjJwyZedrF8fNf7KPxlaCDGeykqcF2e2MKmKM h6rn0iuIHxOU6kYkdmzKUG6kS7AFKn5sL+vokrAjeRXw7o0kjQi94Sqls6sk/otjwnJI ngNm4bnnh72IWuN6derG4uNRg+Y3JP4GaYhwo= Original-Received: by 10.52.180.201 with SMTP id dq9mr4293908vdc.245.1305051402902; Tue, 10 May 2011 11:16:42 -0700 (PDT) Original-Received: by 10.220.181.11 with HTTP; Tue, 10 May 2011 11:16:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 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:5569 Archived-At: 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 with make V=1: Making all in libguile make[2]: Entering directory `/root/build-farm/guile-v2.0.1-53-g8f6a4b2.builddir/libguile' make all-am make[3]: Entering directory `/root/build-farm/guile-v2.0.1-53-g8f6a4b2.builddir/libguile' /bin/bash ../libtool --tag=CC --mode=link powerpc-gnu-linux-uclibc-gcc -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wswitch-enum -fvisibility=hidden -g -O2 -pthread -o guile guile-guile.o libguile-2.0.la -lcrypt -lm libtool: link: powerpc-gnu-linux-uclibc-gcc -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wswitch-enum -fvisibility=hidden -g -O2 -pthread -o .libs/guile guile-guile.o ./.libs/libguile-2.0.so -L/usr/lib /usr/lib/libgc.so -lpthread /usr/lib/libffi.so /usr/lib/libunistring.so /usr/lib/libiconv.so /usr/lib/libgmp.so /usr/lib/libltdl.so -ldl -lcrypt -lm -pthread ./.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 To get clock_getcpuclockid, it is needed to link with librt, where this symbol is present (see also http://joysofprogramming.com/undefined-reference-to-clock_getcpuclockid/). Current workaround: # cd libguile/ # /bin/bash ../libtool --tag=CC --mode=link powerpc-gnu-linux-uclibc-gcc -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wswitch-enum -fvisibility=hidden -g -O2 -pthread -o guile guile-guile.o libguile-2.0.la -lcrypt -lm -lrt libtool: link: powerpc-gnu-linux-uclibc-gcc -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wswitch-enum -fvisibility=hidden -g -O2 -pthread -o .libs/guile guile-guile.o ./.libs/libguile-2.0.so -L/usr/lib /usr/lib/libgc.so -lpthread /usr/lib/libffi.so /usr/lib/libunistring.so /usr/lib/libiconv.so /usr/lib/libgmp.so /usr/lib/libltdl.so -ldl -lcrypt -lm -lrt -pthread ./.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. (i.e. it builds and links; after that, guile build process can be resumed with make in source tree)