Bill Allombert on Sun, 16 Sep 2012 12:03:13 +0200

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

Re: Cannot install PARI-GP on Mac OS X 10.8

On Sun, Sep 16, 2012 at 10:13:53AM +0200, Ewan Delanoy wrote:
> Iâve just bought a new MacBook Pro with Mac OS 10.8 on it. I could not install PARI-GP on it : The "make all" phase fails with the output below (make clean and retry produces the same result .
>  Ewan Delanoy
>  MacBook-Pro-de-Ewan:pari-2.5.2 ewandelanoy$ make all
>  Making gp in Odarwin-i386
>  /usr/bin/gcc -c -I. -I../src/headers -I../src/language -I/usr/include -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -o gp_rl.o ../src/gp/gp_rl.c
>  ../src/gp/gp_rl.c:64: error: conflicting types for ârl_messageâ
>  ../src/gp/gp_rl.c:64: note: a parameter list with an ellipsis canât match an empty parameter name list declaration
>  /usr/local/include/readline/readline.h:381: error: previous declaration of ârl_messageâ was here
>  make[2]: *** [gp_rl.o] Error 1
>  make[1]: *** [gp] Error 2
>  make: *** [all] Error 2

Hello Ewan,
The problem is that Configure decide that readline.h does not include rl_message
but /usr/local/include/readline/readline.h does.

So maybe you have two different copy of readline.h, maybe one of them being
from the broken editline in /usr/include.

When you run Configure it should say something like
  ...Found libreadline in /usr/lib64
  ...Found readline header in /usr/include/readline
  Using GNU readline, version 6.1
What does it say on your system ?