Patch file for OS X

Marc Glisse marc.glisse at
Thu May 16 22:07:33 CEST 2013

On Thu, 16 May 2013, Simon Lazenby wrote:

> Hi gmp-bugs,
> Could you take a look at the patch file I have attached to this note.
> I have been having trouble with shared lib support on Apple OS X 10.5.8 (ppc),
> Specifically duplicate symbols then later on (when building nettle 2.6)
> I encountered Undefined symbols (not of required architecture).

What compiler were you using? Apple used to provide a compiler called gcc 
that advertised itself as version 4.0 but was really some weird chimera. 
On those systems, the compiler called gcc-4.2 usually worked better.

> The patch fixes the duplicate symbols and also adds a pkg-config file into
> the mix (you will need to run autoreconf to get it into the Makefile).

Please don't mix everything. If you want to provide several unrelated 
patches, do so in different emails with explanations for each.

> Could you also alter your manual web page:
> from ...
> "MacOS X (‘*-*-darwin*’)
>     Libtool currently only knows how to create shared libraries on MacOS X using the
>     native cc (which is a modified GCC), not a plain GCC. A static-only build should work though (‘--disable-shared’)."
> to ...
> "MacOS X (‘*-*-darwin*’)
>     If you are using a 32 bit version of MacOS X (10.5.8 or lower) then you should ensure that you configure with:
>     ./configure ABI=mode32
> "

You are probably one of the last dinosaurs with a ppc mac ;-)

Marc Glisse

More information about the gmp-bugs mailing list