hi.  the build fails compiling PARI/GP.  it looks (see log bits below)
as if gcc isn't obeying its -I flags, since readline/readline.h appears
to be coming from /usr/include rather than from sage's local/include.

this is gcc 4.2 (llvm-based):
----
bash greg-minshalls-mbp: {500} gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
...
bash greg-minshalls-mbp: {1123} xcodebuild -version
Xcode 4.5.2
Build version 4G2008a
----

i'm fink-based, but moved /sw, /usr/local, (and my own ~/usr) out of the
way prior to building.

any suggestions?

cheers, Greg Minshall
----
gcc  -c -I. -I../src/headers -I../src/language 
-I/Users/minshall/src/import/sage/sage-5.4.1/local/include -O3 -Wall 
-fno-strict-aliasing -fomit-frame-pointer  -g   -o gp_rl.o ../src/gp/gp_rl.c
../src/gp/gp_rl.c: In function 'change_state':
../src/gp/gp_rl.c:115:3: warning: implicit declaration of function 
'rl_save_prompt' [-Wimplicit-function-declaration]
../src/gp/gp_rl.c:116:3: warning: implicit declaration of function 'rl_message' 
[-Wimplicit-function-declaration]
../src/gp/gp_rl.c:118:3: warning: implicit declaration of function 
'rl_restore_prompt' [-Wimplicit-function-declaration]
../src/gp/gp_rl.c:119:3: warning: implicit declaration of function 
'rl_clear_message' [-Wimplicit-function-declaration]
../src/gp/gp_rl.c: In function 'pari_rl_complete':
../src/gp/gp_rl.c:133:3: warning: implicit declaration of function 
'rl_begin_undo_group' [-Wimplicit-function-declaration]
../src/gp/gp_rl.c:139:3: warning: implicit declaration of function 
'rl_end_undo_group' [-Wimplicit-function-declaration]
../src/gp/gp_rl.c: In function 'pari_rl_forward_sexp':
../src/gp/gp_rl.c:260:7: warning: implicit declaration of function 'rl_ding' 
[-Wimplicit-function-declaration]
../src/gp/gp_rl.c: In function 'rl_print_aide':
../src/gp/gp_rl.c:537:3: warning: implicit declaration of function 
'rl_refresh_line' [-Wimplicit-function-declaration]
../src/gp/gp_rl.c: In function 'pari_completion':
../src/gp/gp_rl.c:584:16: error: 'rl_username_completion_function' undeclared 
(first use in this function)
../src/gp/gp_rl.c:584:16: note: each undeclared identifier is reported only 
once for each function it appears in
../src/gp/gp_rl.c: In function 'init_readline':
../src/gp/gp_rl.c:724:39: error: 'rl_completion_func_t' undeclared (first use 
in this function)
../src/gp/gp_rl.c:724:60: error: expected expression before ')' token
../src/gp/gp_rl.c:755:3: warning: passing argument 2 of 'rl_bind_key_in_map' 
from incompatible pointer type [enabled by default]
/usr/include/readline/readline.h:214:7: note: expected 'int (*)(int,  int)' but 
argument is of type 'int (*)(const char *, int)'
../src/gp/gp_rl.c:756:3: warning: passing argument 2 of 'rl_bind_key_in_map' 
from incompatible pointer type [enabled by default]
/usr/include/readline/readline.h:214:7: note: expected 'int (*)(int,  int)' but 
argument is of type 'int (*)(const char *, int)'
../src/gp/gp_rl.c:762:3: error: 'vi_movement_keymap' undeclared (first use in 
this function)
../src/gp/gp_rl.c:773:3: warning: passing argument 2 of 'rl_bind_key_in_map' 
from incompatible pointer type [enabled by default]
/usr/include/readline/readline.h:214:7: note: expected 'int (*)(int,  int)' but 
argument is of type 'int (*)(const char *, int)'
../src/gp/gp_rl.c:774:3: warning: passing argument 2 of 'rl_bind_key_in_map' 
from incompatible pointer type [enabled by default]
/usr/include/readline/readline.h:214:7: note: expected 'int (*)(int,  int)' but 
argument is of type 'int (*)(const char *, int)'
../src/gp/gp_rl.c:775:3: warning: passing argument 2 of 'rl_bind_key_in_map' 
from incompatible pointer type [enabled by default]
/usr/include/readline/readline.h:214:7: note: expected 'int (*)(int,  int)' but 
argument is of type 'int (*)(const char *, int)'
../src/gp/gp_rl.c:776:3: warning: passing argument 2 of 'rl_bind_key_in_map' 
from incompatible pointer type [enabled by default]
/usr/include/readline/readline.h:214:7: note: expected 'int (*)(int,  int)' but 
argument is of type 'int (*)(const char *, int)'
../src/gp/gp_rl.c: In function 'gp_add_history':
../src/gp/gp_rl.c:913:3: warning: implicit declaration of function 
'append_history' [-Wimplicit-function-declaration]

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to