سؤال

أحاول إنشاء Python 2.6.4 على AIX 5.3.أقوم بتشغيل التكوين مثل هذا:

./configure --prefix=/home/chenf/python --disable-ipv6 --disable-shared --with-libs='/usr/lib/libncurses.a' --without-threads --disable-threads --with-ncurses=/utv/sad/ncurses/lib/libncurses.a

يبدو أنني أواجه مشكلات في الارتباط مع ncurses (انظر أدناه)، ولهذا السبب حاولت بعدة طرق الإشارة إلى تكوين مكان العثور على libncurses.a./usr/lib/libncurses.a هو رابط رمزي إلى /utv/sad/ncurses/lib/libncurses.a، الموجود وليس به أي مشاكل في الأذونات.يوجد أيضًا رابط لهذا الملف في /usr/local/lib.

مشكلتي هي أنني أتلقى الأخطاء التالية من make:

running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_curses' extension
./Modules/ld_so_aix gcc -bI:Modules/python.exp build/temp.aix-5.3-2.6/home/chenf/python-src/Python-2.6.4/Modules/_cursesmodule.o -L/usr/local/lib -lncurses -o build/lib.aix-5.3-2.6/_curses.so
ld: 0711-317 ERROR: Undefined symbol: _unctrl
ld: 0711-317 ERROR: Undefined symbol: .setsyx
ld: 0711-317 ERROR: Undefined symbol: ._setqiflush
ld: 0711-317 ERROR: Undefined symbol: .initscr32
ld: 0711-317 ERROR: Undefined symbol: wacs_map
ld: 0711-317 ERROR: Undefined symbol: ._getsyx
ld: 0711-317 ERROR: Undefined symbol: .getattrs
ld: 0711-317 ERROR: Undefined symbol: .w32attrset
ld: 0711-317 ERROR: Undefined symbol: .w32insch
ld: 0711-317 ERROR: Undefined symbol: .p32echochar
ld: 0711-317 ERROR: Undefined symbol: .w32echochar
ld: 0711-317 ERROR: Undefined symbol: .getcury
ld: 0711-317 ERROR: Undefined symbol: .getcurx
ld: 0711-317 ERROR: Undefined symbol: .box32
ld: 0711-317 ERROR: Undefined symbol: .w32attron
ld: 0711-317 ERROR: Undefined symbol: .w32attroff
ld: 0711-317 ERROR: Undefined symbol: .w32addch
ld: 0711-317 ERROR: Undefined symbol: .getpary
ld: 0711-317 ERROR: Undefined symbol: .getparx
ld: 0711-317 ERROR: Undefined symbol: .getmaxy
ld: 0711-317 ERROR: Undefined symbol: .getmaxx
ld: 0711-317 ERROR: Undefined symbol: .getbegy
ld: 0711-317 ERROR: Undefined symbol: .getbegx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
building 'zlib' extension
./Modules/ld_so_aix gcc -bI:Modules/python.exp build/temp.aix-5.3-2.6/home/chenf/python-src/Python-2.6.4/Modules/zlibmodule.o -L/usr/local/lib -lz -o build/lib.aix-5.3-2.6/zlib.so
ld: 0711-317 ERROR: Undefined symbol: .inflateCopy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
building 'bz2' extension
gcc -DNDEBUG -O -I. -I/home/chenf/python-src/Python-2.6.4/./Include -I. -IInclude -I./Include -I/usr/local/include -I/home/chenf/python-src/Python-2.6.4/Include -I/home/chenf/python-src/Python-2.6.4 -c /home/chenf/python-src/Python-2.6.4/Modules/bz2module.c -o build/temp.aix-5.3-2.6/home/chenf/python-src/Python-2.6.4/Modules/bz2module.o
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:12:19: bzlib.h: No such file or directory
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:111: error: parse error before "BZFILE"
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:111: warning: no semicolon at end of struct or union
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:118: error: parse error before '}' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:118: warning: data definition has no type or storage class
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:122: error: parse error before "bz_stream"
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:122: warning: no semicolon at end of struct or union
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:127: error: parse error before '}' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:127: warning: data definition has no type or storage class
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:131: error: parse error before "bz_stream"
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:131: warning: no semicolon at end of struct or union
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:137: error: parse error before '}' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:137: warning: data definition has no type or storage class
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `Util_CatchBZ2Error':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:147: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:147: error: (Each undeclared identifier is reported only once
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:147: error: for each function it appears in.)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:148: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:160: error: `BZ_PARAM_ERROR' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:167: error: `BZ_MEM_ERROR' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:172: error: `BZ_DATA_ERROR' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:173: error: `BZ_DATA_ERROR_MAGIC' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:178: error: `BZ_IO_ERROR' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:183: error: `BZ_UNEXPECTED_EOF' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:190: error: `BZ_SEQUENCE_ERROR' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:229: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `Util_GetLine':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:239: error: `f' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:243: error: `n' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:265: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:282: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:325: error: parse error before "BZFILE"
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `Util_UnivNewlineRead':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:328: error: `buf' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:334: error: `f' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:335: error: `bzerror' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:335: error: `stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:335: error: `n' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:380: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:392: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `Util_DropReadAhead':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:394: error: `f' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:402: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `Util_ReadAhead':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:407: error: `f' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:418: error: `bufsize' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:427: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:430: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:443: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `Util_ReadAheadGetLineSkip':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:450: error: `f' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:451: error: `bufsize' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:457: error: `skip' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:498: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_read':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:505: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:509: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:549: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:553: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:585: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_readline':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:590: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:594: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:630: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_readlines':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:647: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:651: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:677: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:685: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:792: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_write':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:800: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:806: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:828: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:852: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_writelines':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:863: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:878: error: `seq' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:953: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:990: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_seek':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1004: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1016: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1046: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1048: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1143: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_tell':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1147: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1172: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_close':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1175: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1178: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1204: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1225: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_get_newlines':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1227: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1254: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_get_closed':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1256: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1260: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_get_mode':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1262: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1266: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_get_name':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1268: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1291: error: parse error before ')' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1291: error: initializer element is not constant
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1291: error: (near initialization for `BZ2File_members[0].offset')
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1292: error: initializer element is not constant
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1292: error: (near initialization for `BZ2File_members[0]')
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1293: error: initializer element is not constant
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1293: error: (near initialization for `BZ2File_members[1]')
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1300: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_init':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1311: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1313: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1313: error: `kwargs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1390: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1412: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_dealloc':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1419: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1440: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_getiter':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1442: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1454: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2File_iternext':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1458: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1554: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Comp_compress':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1562: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1562: error: `bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1562: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1565: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1595: error: `BZ_RUN' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1597: error: `BZ_RUN_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1636: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Comp_flush':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1640: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1640: error: `bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1640: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1663: error: `BZ_FINISH' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1665: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1667: error: `BZ_FINISH_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1707: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Comp_init':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1713: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1713: error: `kwargs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1731: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1731: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1733: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1752: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Comp_dealloc':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1758: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1826: error: parse error before ')' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1826: error: initializer element is not constant
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1826: error: (near initialization for `BZ2Decomp_members[0].offset')
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1826: error: initializer element is not constant
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1826: error: (near initialization for `BZ2Decomp_members[0]')
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1827: error: initializer element is not constant
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1827: error: (near initialization for `BZ2Decomp_members[1]')
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1845: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Decomp_decompress':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1853: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1853: error: `bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1853: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1856: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1883: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1893: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1936: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Decomp_init':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1940: error: `args' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1951: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1955: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1957: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: At top level:
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1978: error: parse error before '*' token
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `BZ2Decomp_dealloc':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:1984: error: `self' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `bz2_compress':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2065: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2065: error: parse error before "_bzs"
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2066: error: `bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2066: error: `_bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2102: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2111: error: `BZ_FINISH' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2113: error: `BZ_STREAM_END' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2115: error: `BZ_FINISH_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c: In function `bz2_decompress':
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2158: error: `bz_stream' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2158: error: parse error before "_bzs"
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2159: error: `bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2159: error: `_bzs' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2186: error: `BZ_OK' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/bz2module.c:2197: error: `BZ_STREAM_END' undeclared (first use in this function)
building '_multiprocessing' extension
gcc -DNDEBUG -O -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_multiprocessing -I. -I/home/chenf/python-src/Python-2.6.4/./Include -I. -IInclude -I./Include -I/usr/local/include -I/home/chenf/python-src/Python-2.6.4/Include -I/home/chenf/python-src/Python-2.6.4 -c /home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/socket_connection.c -o build/temp.aix-5.3-2.6/home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/socket_connection.o
In file included from /home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/socket_connection.c:202:
/home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/connection.h: In function `connection_poll':
/home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/connection.h:357: error: `_save' undeclared (first use in this function)
/home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/connection.h:357: error: (Each undeclared identifier is reported only once
/home/chenf/python-src/Python-2.6.4/Modules/_multiprocessing/connection.h:357: error: for each function it appears in.)
Traceback (most recent call last):
  File "./setup.py", line 1910, in 
    main()
  File "./setup.py", line 1905, in main
    'Lib/smtpd.py']
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "./setup.py", line 201, in build_extensions
    build_ext.build_extensions(self)
  File "/home/chenf/python-src/Python-2.6.4/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "./setup.py", line 234, in build_extension
    if not self.configure_ctypes(ext):
  File "./setup.py", line 1715, in configure_ctypes
    ffi_srcdir = os.path.join(fficonfig['ffi_srcdir'], 'src')
KeyError: 'ffi_srcdir'
make: 1254-004 The error code from the last command is 1.


Stop.

إن عدم القدرة على تحديد موقع Tcl/Tk ليس مشكلة، فأنا لست بحاجة إلى ذلك.

ومع ذلك، اللعنات، وهي المشكلة التالية، هي مشكلة.أحتاج ذلك.إذا قمت بتفسير الأشياء بشكل صحيح، فلن يتمكن من العثور على libncurses.a.على الأقل، تبدو جميع "الرموز غير المحددة" المدرجة وكأنها وظائف ncurses بالنسبة لي.ولكن ربما أكون مخطئًا، ربما يعثر على ملف libncurses.a، لكن لا يمكنه العثور على الرموز الموجودة فيه؟لا أعرف.

هل كانت مفيدة؟

المحلول

ويبدو BZIP2 ليست قادرة على العثور على نفسها، إما - في بعض الأحيان ترى بيثون غريب بناء أخطاء عند يهيمون على وجوههم بعيدا جدا من دول مجلس التعاون الخليجي. وسيكون لي أول الأمعاء توصية يكون ترجمة مع دول مجلس التعاون الخليجي، بينوتيلس GNU، وGNU جعل، ومعرفة ما إذا استمرت المشكلة.

وأيضا، عندما كنت تتحدث إلى configure، وأنها سوف معرفة اسم المكتبة من تكوين الخيار الخاص بك. لذلك، هذا:

--with-ncurses=/utv/sad/ncurses/lib/libncurses.a

ويجب أن تكون:

--with-ncurses=/utv/sad/ncurses/lib

ولكن هذا يعني أيضا أن رؤوس يمكن العثور هناك. يمكن؟

قد يكون هناك أيضا خيار لمترجم النظام الأساسي الخاص بك لإضافة دليل ليبس - منذ ذلك الحين، في هذه الحالة، بيثون تحاول استخدام -lncurses قبل أن يجمع التمديد (ما يجعل البحث عن رابط libncurses.a في المكتبة البحث المسار).

نصائح أخرى

وهذا هو الحال مشكلة قديمة (2009 ؟؟) .. ولكن انا لقاء نفس المشكلة اليوم !! للمستخدمين AIX آخرين مثلي ... سأترك حالتي

وOK..first، تحقق OBJECT_MODE متغير البيئة الخاصة بك.

في حالتي، كان OBJECT_MODE 64، ولكن يحتوي على libcurses.a ملف أرشيف فقط 32BIT يعترض الملفات !!

وبعد تغيير OBJECT_MODE متغير البيئة إلى 32، عملت كل شيء!

بفضل اقتراحات جيد سميث، تمكنت من تنفيذ هذا الأمر.هذا ما فعلته لإنجاز هذا:

  • الخطوةالاولى: أولاً، قمت بتحرير "Makefile.pre.in".لقد استبدلت السطر "CC= @CC@" بـ "CC= gcc".بقدر ما أستطيع أن أقول، أجبر هذا التجميع على استخدام gcc بدلاً من أي شيء آخر غير قابل للتسمية حاول AIX استخدامه.

  • الخطوة الثانية: ضع رابطًا ناعمًا لـ ncurses.h ضمن /usr/include.لم أتمكن من التهيئة للعثور على ncurses.h ضمن /opt/utv/sad/include/ncurses/، لذلك قمت بالغش؛قمت بتشغيل الأمر التالي كجذر:

ln -s /utv/sad/ncurses/include/ncurses/ncurses.h /usr/include/ncurses.h
  • الخطوة الثالثة:لقد قمت بتجميع وتثبيت GNU binutils وGNU make، وقمت بتكوينهما باستخدام "--prefix=/home/chenf".ثم أضع /home/chenf/bin أولاً في طريقي، للتأكد من أن عملية التجميع ستستخدم كل ما تجده هناك بدلاً من الإعدادات الافتراضية التي يوفرها AIX.
  • الخطوة الرابعة: قمت بتشغيل التكوين مثل هذا:
./configure --prefix=/opt/freeware --disable-ipv6 --without-threads --with-ncurses=/opt/sad/ncurses

كان IPv6 والخيوط تعطيني أخطاء في الترجمة، ولست بحاجة إليها، ولهذا السبب قمت بتعطيلها.ضمن الدليل /opt/sad/ncurses، تم العثور على lib/libncurses.a.يبدو أن هذا قد اهتم بالمكتبة نفسها.

بعد ذلك، كل ما كان علي فعله هو "إجراء" و"إجراء تثبيت".منتهي.

لقد حصلت على بعض الأخطاء أثناء التجميع، وفي النهاية قيل لي أنه فشل في إنتاج بعض الوحدات (مثل الرياضيات والتاريخ والوقت) ولكن كل شيء آخر لا يزال على ما يرام.في الوقت الحاضر سأتدبر أمري بدونهم.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top