Python 2.2 build problems on AIX

edadk e.d.andersen at mosek.com
Wed Jul 9 05:19:30 EDT 2003


Hi

I building Python on AIX using

make

However, I get some errors when building

readline
gdbm

and

-ltermcap

is missing. See below. Can those problems be fixed?

Erling

building 'readline' extension
cc_r -DNDEBUG -O -I.
-I/mnt/mds/metawrk/edanders/Python-2.2.3/./Include
-I/usr/local/include -I/mnt/mds/metawrk/edanders/Pytho
2.2.3/Include -I/mnt/mds/metawrk/edanders/Python-2.2.3 -c
/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c -o build/t
p.aix-5.1-2.2/readline.o
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
17.10: 1506-296 (S) #include file <readline/readline.h> not
und.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
18.10: 1506-296 (S) #include file <readline/history.h> not f
nd.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
278.21: 1506-045 (S) Undeclared identifier rl_completer_word
reak_characters.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
314.36: 1506-045 (S) Undeclared identifier rl_completer_word
reak_characters.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
359.36: 1506-045 (S) Undeclared identifier rl_line_buffer.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
510.34: 1506-068 (W) Operation between types "unsigned char*
 and "int" is not allowed.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
518.9: 1506-045 (S) Undeclared identifier rl_readline_name.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
520.27: 1506-045 (S) Undeclared identifier rl_insert.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
522.35: 1506-045 (S) Undeclared identifier rl_complete.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
522.48: 1506-045 (S) Undeclared identifier emacs_meta_keymap
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
525.38: 1506-275 (S) Unexpected text ')' encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
525.28: 1506-045 (S) Undeclared identifier Function.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
525.54: 1506-277 (S) Syntax error: possible missing ')' or '
?
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
525.9: 1506-045 (S) Undeclared identifier rl_startup_hook.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
532.9: 1506-045 (S) Undeclared identifier rl_completer_word_
eak_characters.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
580.9: 1506-045 (S) Undeclared identifier rl_event_hook.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/readline.c", line
581.11: 1506-068 (W) Operation between types "unsigned char*
and "int" is not allowed.
WARNING: building of extension "readline" failed: command 'cc_r'
failed with exit status 1
skipping 'crypt' extension (up-to-date)
skipping '_socket' extension (up-to-date)
skipping 'dbm' extension (up-to-date)
building 'gdbm' extension
cc_r -DNDEBUG -O -I.
-I/mnt/mds/metawrk/edanders/Python-2.2.3/./Include
-I/usr/local/include -I/mnt/mds/metawrk/edanders/Pytho
2.2.3/Include -I/mnt/mds/metawrk/edanders/Python-2.2.3 -c
/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c -o build
emp.aix-5.1-2.2/gdbmmodule.o
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
12.10: 1506-296 (S) #include file "gdbm.h" not found.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
34.5: 1506-046 (S) Syntax error.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
68.14: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
72.53: 1506-045 (S) Undeclared identifier gdbm_errno.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
84.13: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
85.24: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
92.13: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
97.15: 1506-275 (S) Unexpected text key encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
97.9: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
99.9: 1506-045 (S) Undeclared identifier okey.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
102.36: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
102.14: 1506-045 (S) Undeclared identifier key.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
103.37: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
117.11: 1506-275 (S) Unexpected text drec encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
117.5: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
119.34: 1506-045 (S) Undeclared identifier krec.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
122.13: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
127.27: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
127.5: 1506-045 (S) Undeclared identifier drec.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
141.11: 1506-275 (S) Unexpected text krec encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
141.5: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
143.32: 1506-045 (S) Undeclared identifier krec.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
148.13: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
155.29: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
162.36: 1506-045 (S) Undeclared identifier drec.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
168.28: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
168.48: 1506-045 (S) Undeclared identifier GDBM_REPLACE.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
173.47: 1506-045 (S) Undeclared identifier gdbm_errno.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
195.13: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
196.24: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
197.9: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
210.11: 1506-275 (S) Unexpected text key encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
210.5: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
220.5: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
226.29: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
226.5: 1506-045 (S) Undeclared identifier key.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
241.36: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
241.9: 1506-045 (S) Undeclared identifier nextkey.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
255.11: 1506-275 (S) Unexpected text key encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
255.5: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
257.48: 1506-045 (S) Undeclared identifier key.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
259.5: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
260.50: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
274.11: 1506-275 (S) Unexpected text key encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
274.5: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
278.5: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
279.29: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
279.5: 1506-045 (S) Undeclared identifier key.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
306.11: 1506-275 (S) Unexpected text key encountered.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
306.5: 1506-045 (S) Undeclared identifier datum.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
308.48: 1506-045 (S) Undeclared identifier key.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
310.5: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
311.32: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
311.5: 1506-045 (S) Undeclared identifier nextkey.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
336.5: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
338.29: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
342.53: 1506-045 (S) Undeclared identifier gdbm_errno.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
359.5: 1506-022 (S) "di_dbm" is not a member of "struct {.
}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
360.19: 1506-022 (S) "di_dbm" is not a member of "struct {
.}".
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
445.18: 1506-045 (S) Undeclared identifier GDBM_READER.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
448.18: 1506-045 (S) Undeclared identifier GDBM_WRITER.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
451.18: 1506-045 (S) Undeclared identifier GDBM_WRCREAT.
"/mnt/mds/metawrk/edanders/Python-2.2.3/Modules/gdbmmodule.c", line
454.18: 1506-045 (S) Undeclared identifier GDBM_NEWDB.
WARNING: building of extension "gdbm" failed: command 'cc_r' failed
with exit status 1
skipping 'termios' extension (up-to-date)
skipping 'resource' extension (up-to-date)
skipping 'nis' extension (up-to-date)
building '_curses' extension
skipping /mnt/mds/metawrk/edanders/Python-2.2.3/Modules/_cursesmodule.c
(build/temp.aix-5.1-2.2/_cursesmodule.o up-to-date)
./Modules/ld_so_aix cc_r -bI:Modules/python.exp
build/temp.aix-5.1-2.2/_cursesmodule.o -L/usr/local/lib -lcurses
-ltermcap -o
ild/lib.aix-5.1-2.2/_curses.so
ld: 0706-006 Cannot find or open library file: -l termcap
        ld:open(): No such file or directory
*** WARNING: renaming "_curses" since importing it failed: from module
build/lib.aix-5.1-2.2/_curses.so No such file or direct
y
error: No such file or directory
make: The error code from the last command is 1.




More information about the Python-list mailing list