Build issue on AIX 5.3 with python 2.4.2

K

ktelep

I'm trying to build python 2.4.2 on AIX 5.3 with the IBM xlC compiler
as per the notes in the AIX Readme file. Basically my make fails with
the errors listed below.

I'm calling configure with:

../configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64"
--disable-ipv6 AR="ar -X64"

It looks like it's not resolving symbols in readline. I originally
tried the RPMS IBM supplies for GNU readline, then tried compiling GNU
readline 5.1 myself, same errors with either version of the libraries.

Anyone run into this with AIX and resolved it?

Kurt

building 'readline' extension
xlc_r -q64 -DNDEBUG -O -I. -I/home/ktelep/Python-2.4.2/./Include
-I/usr/local/include -I/home/ktelep/Python-2.4.2/Include
-I/home/ktelep/Python-2.4.2 -c
/home/ktelep/Python-2.4.2/Modules/readline.c -o
build/temp.aix-5.3-2.4/readline.o
"/home/ktelep/Python-2.4.2/Modules/readline.c", line 675.34: 1506-068
(W) Operation between types "char**" and "int" is not allowed.
../Modules/ld_so_aix xlc_r -q64 -bI:Modules/python.exp
build/temp.aix-5.3-2.4/readline.o -L/usr/lib/termcap -L/usr/local/lib
-lreadline -lcurses -o build/lib.aix-5.3-2.4/readline.so
ld: 0711-317 ERROR: Undefined symbol: rl_instream
ld: 0711-317 ERROR: Undefined symbol: rl_outstream
ld: 0711-317 ERROR: Undefined symbol: .rl_prep_terminal
ld: 0711-317 ERROR: Undefined symbol: .history_get_history_state
ld: 0711-317 ERROR: Undefined symbol: .history_get
ld: 0711-317 ERROR: Undefined symbol: .add_history
ld: 0711-317 ERROR: Undefined symbol: rl_event_hook
ld: 0711-317 ERROR: Undefined symbol: .readline
ld: 0711-317 ERROR: Undefined symbol: .using_history
ld: 0711-317 ERROR: Undefined symbol: rl_readline_name
ld: 0711-317 ERROR: Undefined symbol: rl_insert
ld: 0711-317 ERROR: Undefined symbol: .rl_bind_key
ld: 0711-317 ERROR: Undefined symbol: rl_complete
ld: 0711-317 ERROR: Undefined symbol: emacs_meta_keymap
ld: 0711-317 ERROR: Undefined symbol: .rl_bind_key_in_map
ld: 0711-317 ERROR: Undefined symbol: rl_startup_hook
ld: 0711-317 ERROR: Undefined symbol: rl_attempted_completion_function
ld: 0711-317 ERROR: Undefined symbol:
rl_completer_word_break_characters
ld: 0711-317 ERROR: Undefined symbol: rl_completion_append_character
ld: 0711-317 ERROR: Undefined symbol: .rl_initialize
ld: 0711-317 ERROR: Undefined symbol: .completion_matches
ld: 0711-317 ERROR: Undefined symbol: rl_attempted_completion_over
ld: 0711-317 ERROR: Undefined symbol: .rl_redisplay
ld: 0711-317 ERROR: Undefined symbol: .rl_insert_text
ld: 0711-317 ERROR: Undefined symbol: .clear_history
ld: 0711-317 ERROR: Undefined symbol: rl_line_buffer
ld: 0711-317 ERROR: Undefined symbol: .replace_history_entry
ld: 0711-317 ERROR: Undefined symbol: .remove_history
ld: 0711-317 ERROR: Undefined symbol: .write_history
ld: 0711-317 ERROR: Undefined symbol: .history_truncate_file
ld: 0711-317 ERROR: Undefined symbol: .read_history
ld: 0711-317 ERROR: Undefined symbol: .rl_read_init_file
ld: 0711-317 ERROR: Undefined symbol: .rl_parse_and_bind
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
*** WARNING: renaming "readline" since importing it failed: Could not
load module build/lib.aix-5.3-2.4.
System error: No such file or directory
error: No such file or directory
make: The error code from the last command is 1.


Stop.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top