On 9/21/14, 12:20 PM, Gordon E. Sarty wrote:
> Thanks for getting back to me so quickly!
>
> Please see below:
>
>> In short, I've exhausted all the
>>> possible combinations to make the install work but I cannot get past the
>>> following error - can you help?
>>>
>>
>> <snip>
>>
>>> checking for MPFR... no
>>> configure: error: libmpfr not found or uses a different ABI (including
>>> static vs shared).
>>
>> <snip>
>>
>> The error message suggests that you might have a third-party,
>> incompatible, MPFR library somewhere, such as in /usr/local.  We
>> generally encourage people to rename that directory temporarily while
>> they build with Fink, because the compilers are hardcoded to look for
>> stuff there.  I'd check on that possibility first.
>>
>> Otherwise, check in
>> /sw/src/fink.build/libmpc3-1.0.2-1/mpc-1.0.2/build/config.log at about
>> line 554 to see what the test failure actually is.
>
> Moving both /usr/local and /opt/local has no effect. The relevant output
> from config.log is below - the trouble seems to start with
> /sw/include/mpfr.h
>
> What should I try next? (BTW, I had to update XCode to version 4.6.2 to
> deal with earlier errors from fink install octave - maybe that's messed
> up my system somehow?
>

Probably not.

> configure:13275: checking for MPFR
> configure:13290: gcc -o conftest -O2 -pedantic -fomit-frame-pointer -m64
> -mtune=corei7 -march=corei7 -I/sw/include -I/sw/include -I/sw/include
> -L/sw/lib -L/sw/lib -L/sw/lib conftest.c -lmpfr -lgmp >&5
> In file included from conftest.c:37:
> /sw/include/mpfr.h:193:9: error: unknown type name '__gmp_const'
> typedef __gmp_const __mpfr_struct *mpfr_srcptr;
>          ^
> /sw/include/mpfr.h:193:34: error: expected ';' after top level declarator
> typedef __gmp_const __mpfr_struct *mpfr_srcptr;
>                                   ^
>                                   ;

Hmm...in my /sw/include/mpfr.h I have a note which says:

/* GMP's internal __gmp_const macro has been removed on 2012-03-04:
      http://gmplib.org:8000/gmp/rev/d287cfaf6732
    const is standard and now assumed to be available. If the __gmp_const
    definition is no longer present in GMP, this probably means that GMP
    assumes that const is available; thus let's define it to const.
    Note: this is a temporary fix that can be backported to previous MPFR
    versions. In the future, __gmp_const should be replaced by const like
    in GMP. */
#ifndef __gmp_const
# define __gmp_const const
#endif

Is that present in yours?
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to