bug-guile
[Top][All Lists]
Advanced

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

Re: Guile 1.9.14 & GIT version linking errror


From: Hans Aberg
Subject: Re: Guile 1.9.14 & GIT version linking errror
Date: Sun, 16 Jan 2011 11:38:09 +0100

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.




reply via email to

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