unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: bug-guile@gnu.org
Subject: Re: Guile 1.9.14 & GIT version linking errror
Date: Mon, 17 Jan 2011 23:31:31 +0100	[thread overview]
Message-ID: <87k4i3go1o.fsf@gnu.org> (raw)
In-Reply-To: BC007285-530A-4EE8-9C16-AF87B2C026AD@telia.com

Hi!

Hans Aberg <haberg-1@telia.com> writes:

> 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.

That’s probably the problem that’s documented in libguile/inline.h (see
below).

> I have GCC 4.0.1.

No you don’t.  This is Apple’s compiler, based on GCC, but with its own
inline semantics, and a behavior different from that of GCC.

Anyway you found a workaround, which is what matters.  :-)

Thanks,
Ludo’.




  reply	other threads:[~2011-01-17 22:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <13B7D376-7BFD-4236-B6EF-5BF70FE248B7@telia.com>
     [not found] ` <87lj2lgavf.fsf@ossau.uklinux.net>
2011-01-15 23:11   ` Macro expansion Hans Aberg
2011-01-16 10:00     ` Guile 1.9.14 & GIT version linking errror Hans Aberg
2011-01-16 10:18       ` Neil Jerram
2011-01-16 10:27         ` Neil Jerram
2011-01-16 10:38         ` Hans Aberg
2011-01-16 12:04         ` Hans Aberg
2011-01-16 14:32         ` Hans Aberg
2011-01-17 22:31           ` Ludovic Courtès [this message]
2011-01-26 19:30             ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4i3go1o.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).