I am having one "hades" of a heckuva time getting readline support for Python-2.5 on a Mac OS 10.4.8.8.0
with Xcode 2.3( Darwin Kernel Version 8.8.0; RELEASE_PPC Power Macintosh powerpc) I can get readline-5.2 (finally) to compile and build... Then I try build Python-2.5, with readline....by changing the /Modules/Setup file...to include readline... and I always get the below-mentioned error. I can NOT use the std' packages/path...as we use an absolute path for our server farm called, "/usr/lanl" EG /usr/lanl/packages <- where python/scipy/numpy/readline src has gone. /usr/lanl/bin /usr/lanl/include /usr/lanl/lib /usr/lanl/man This has been an EXTREME challenge on Mac 10.4 t. NOTE: I attempted to copy all files (esp *.o) over to my Python build dir, and it still fails...the following error, was the error before doing that... Here is the error: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -c ./Modules/readline.c -o Modules/readline.o Modules/readline.c: In function `write_history_file': Modules/readline.c:118: warning: implicit declaration of function `history_truncate_file' Modules/readline.c: In function `py_remove_history': Modules/readline.c:307: warning: implicit declaration of function `remove_history' Modules/readline.c:307: warning: assignment makes pointer from integer without a cast Modules/readline.c:316: warning: passing arg 1 of `free' discards qualifiers from pointer target type Modules/readline.c:318: warning: passing arg 1 of `free' discards qualifiers from pointer target type Modules/readline.c: In function `py_replace_history': Modules/readline.c:344: warning: implicit declaration of function `replace_history_entry' Modules/readline.c:344: warning: assignment makes pointer from integer without a cast Modules/readline.c:353: warning: passing arg 1 of `free' discards qualifiers from pointer target type Modules/readline.c:355: warning: passing arg 1 of `free' discards qualifiers from pointer target type Modules/readline.c: In function `get_current_history_length': Modules/readline.c:459: error: `HISTORY_STATE' undeclared (first use in this function) Modules/readline.c:459: error: (Each undeclared identifier is reported only once Modules/readline.c:459: error: for each function it appears in.) Modules/readline.c:459: error: `hist_st' undeclared (first use in this function) Modules/readline.c:461: warning: implicit declaration of function `history_get_history_state' Modules/readline.c: In function `insert_text': Modules/readline.c:509: warning: implicit declaration of function `rl_insert_text' Modules/readline.c: In function `on_completion': Modules/readline.c:643: error: `rl_attempted_completion_over' undeclared (first use in this function) Modules/readline.c: In function `flex_complete': Modules/readline.c:681: warning: passing arg 2 of `completion_matches' from incompatible pointer type Modules/readline.c: In function `setup_readline': Modules/readline.c:706: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type Modules/readline.c:707: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type Modules/readline.c: In function `readline_until_enter_or_signal': Modules/readline.c:761: warning: passing arg 2 of `rl_callback_handler_install' from incompatible pointer type Modules/readline.c:791: warning: implicit declaration of function `rl_free_line_state' Modules/readline.c:792: warning: implicit declaration of function `rl_cleanup_after_signal' Modules/readline.c: In function `call_readline': Modules/readline.c:888: error: `HISTORY_STATE' undeclared (first use in this function) Modules/readline.c:888: error: `state' undeclared (first use in this function) Modules/readline.c:890: warning: assignment discards qualifiers from pointer target type make: *** [Modules/readline.o] Error 1 <mailto:pythonmac-sig%40python.org?Subject=%5BPythonmac-SIG%5D%20%5BPython-Dev%5D%20Problems%20building%20Python%20on%20OSX%0A%0910.4.6%3F&In-Reply-To=20060627143827.45945.qmail%40web52303.mail.yahoo.com> _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig