From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.bugs Subject: Re: Guile 1.9.14 & GIT version linking errror Date: Sun, 16 Jan 2011 15:32:58 +0100 Message-ID: References: <13B7D376-7BFD-4236-B6EF-5BF70FE248B7@telia.com> <87lj2lgavf.fsf@ossau.uklinux.net> <7C5FCE6D-9AA7-4EEB-A8A3-BD1550FE4806@telia.com> <87k4i51790.fsf@ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295188396 9168 80.91.229.12 (16 Jan 2011 14:33:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Jan 2011 14:33:16 +0000 (UTC) Cc: bug-guile@gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jan 16 15:33:10 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PeTfJ-0001ci-QN for guile-bugs@m.gmane.org; Sun, 16 Jan 2011 15:33:09 +0100 Original-Received: from localhost ([127.0.0.1]:40251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeTfJ-0006us-0p for guile-bugs@m.gmane.org; Sun, 16 Jan 2011 09:33:09 -0500 Original-Received: from [140.186.70.92] (port=56149 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeTfD-0006sX-1y for bug-guile@gnu.org; Sun, 16 Jan 2011 09:33:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeTfB-0006J5-FR for bug-guile@gnu.org; Sun, 16 Jan 2011 09:33:02 -0500 Original-Received: from smtp-out12.han.skanova.net ([195.67.226.212]:37979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeTfB-0006Id-4S for bug-guile@gnu.org; Sun, 16 Jan 2011 09:33:01 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by smtp-out12.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D065C29008179C0; Sun, 16 Jan 2011 15:32:58 +0100 In-Reply-To: <87k4i51790.fsf@ossau.uklinux.net> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4963 Archived-At: On 16 Jan 2011, at 11:18, Neil Jerram wrote: >>> ... when I try to install guile-1.9.14, I get the error below (Mac >>> OS X 10.5.8 PPC G4). >>> >>> ld: duplicate symbol ___gmpz_abs in .libs/libguile_2.0_la-arbiters.o >>> and .libs/libguile_2.0_la-alist.o >> >> And I get the same error when using GIT. ... > - understand why it is being _defined_ twice, as opposed to just > declared You have added the flag gcc -std=gnu99, which according to the gmp.h header in GCC 4.3 later implements ISO C99 inline semantics, unless - fgnu89-inline is used. When I took away that flag from the five occurrences in the Makefile in libguile/, then it compiled and installed. I have GCC 4.0.1. So for some reason, on this compiler, the flag seems causing the GMP inline functions to be added as ordinary functions, causing the linking problem between the copies.