jean COUGNARD on Wed, 18 Jan 2006 17:07:39 +0100


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

compilation OS10.4


Dear pari developpers,

I have tryed to compile pari-2.1.7
on a mac OS 10.4 with Xcode2 (gcc 4.0.0)
at the end I got the following error messages :


../src/gp/gp.c:48: error: conflicting types for 'add_history'
/usr/include/readline/readline.h:133: error: previous declaration of
'add_history' was here
make[1]: *** [gp.o] Error 1
make: *** [install] Error 2

I  hoped to be more lucky with unstable pari-2.2.11
unfortunately the end was

-I../src/headers -I../src/language -I/usr/include -o gp_rl.o
../src/gp/gp_rl.c
../src/gp/gp_rl.c:74: error: conflicting types for 'rl_stuff_char'
/usr/include/readline/readline.h:176: error: previous declaration of 'rl_stuff_char' was here ../src/gp/gp_rl.c:75: error: conflicting types for'filename_completion_function' /usr/include/readline/readline.h:156: error: previous declaration of'filename_completion_function' was here ../src/gp/gp_rl.c:76: error: conflicting types for'username_completion_function' /usr/include/readline/readline.h:157: error: previous declaration of'username_completion_function' was here
../src/gp/gp_rl.c: In function 'pari_rl_forward_sexp':
../src/gp/gp_rl.c:268: warning: implicit declaration of function 'ding'
../src/gp/gp_rl.c: In function 'rl_print_aide':
../src/gp/gp_rl.c:525: warning: implicit declaration of function'rl_refresh_line'
../src/gp/gp_rl.c: In function 'init_readline':
../src/gp/gp_rl.c:755: error: 'vi_movement_keymap' undeclared (first use in this function) ../src/gp/gp_rl.c:755: error: (Each undeclared identifier is reported only once
../src/gp/gp_rl.c:755: error: for each function it appears in.)
../src/gp/gp_rl.c: In function 'get_line_from_readline':
../src/gp/gp_rl.c:951: warning: implicit declaration of function 'remove_history' ../src/gp/gp_rl.c:951: warning: initialization makes pointer from integer without a cast ../src/gp/gp_rl.c:952: warning: passing argument 1 of 'free' discards qualifiers from pointer target type
make[1]: *** [gp_rl.o] Error 1
make: *** [install] Error 2

Notice that on other  Mac G5 with OS 10.3.9 and corresponding Xcode
the compilation was right.

best wishes

Jean Cougnard