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 11:38:09 +0100 Message-ID: <8586B761-198E-452F-9A5C-9664CD485EDB@telia.com> 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 1295174306 15347 80.91.229.12 (16 Jan 2011 10:38:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Jan 2011 10:38:26 +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 11:38:21 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 1PeQ05-0003rh-Fr for guile-bugs@m.gmane.org; Sun, 16 Jan 2011 11:38:21 +0100 Original-Received: from localhost ([127.0.0.1]:59222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeQ04-0007Ce-RC for guile-bugs@m.gmane.org; Sun, 16 Jan 2011 05:38:20 -0500 Original-Received: from [140.186.70.92] (port=60042 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PePzx-0007Ax-KG for bug-guile@gnu.org; Sun, 16 Jan 2011 05:38:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PePzw-0004Wl-5O for bug-guile@gnu.org; Sun, 16 Jan 2011 05:38:13 -0500 Original-Received: from smtp-out21.han.skanova.net ([195.67.226.208]:57302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PePzv-0004WW-OH for bug-guile@gnu.org; Sun, 16 Jan 2011 05:38:12 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D07517100A0D01C; Sun, 16 Jan 2011 11:38:10 +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:4961 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. > > Well, I guess the next steps are to > > - look under /usr/include to find out which header file defines > ___gmpz_abs (probably one of GMP's) There is only one match, in /usr/local/include/gmp.h: gmp.h:#define mpz_abs __gmpz_abs > - understand why it is being _defined_ twice, as opposed to just > declared There are both dynamic (.dylib) and static (.a) versions of gmplib. So perhaps the static is linked more than once. It might happen if say you expect the dynamic library ending with .so instead of .dylib, or if using the wrong dynamic linking flag. > - see if there is some incantation we can add to the Guile source to > prevent the double definition. There is no problem with the stable branch, 1.8.8. So perhaps you might check what you do differently.