During bootstrap on OS X 10.5, when the system's gcc-4.0.1 is still in use, gmp-6.0.0a fails to link: ld: duplicate symbol ___gmpz_abs in .libs/compat.o and .libs/assert.o This is due to the fact that gmp.h tries to use __attribute__(__gnu_inline__) to force GNU inlining behaviour if the compiler might also use C99 inlining rules. gcc-4.0.1 doesn't understand that attribute and ends up ignoring all inlining directives altogether: In file included from add.c:33: ../gmp.h:1703: warning: '__gnu_inline__' attribute directive ignored [repeated 17 times] This makes all inline function declarations end up being global and repeated in every file that includes gmp.h. Reproducible: Always
Created attachment 394212 [details, diff] fix inlining with (apple) gcc 4.0.1 This patch, derived from the linked MacPorts fix, placed in "${FILESDIR}"/6.0.0a of the ebuild fixes the problem for me.
need to check if this is still necessary for 6.0.1
I can confirm that this is still a bug on PPC Mac OS X (10.5.8). The patch supplied by Michael Weiser fixed the compile problem, but I haven't tested the library for proper function yet.
I pushed the fix.