2009-10-30 7 views
0

AIX 5.3에서 Python 2.6.4를 빌드하려고합니다. 이 같은 구성 실행 해요 : 나는 libncurses.a를 찾을 위치를 구성하는 지적하기 위해 여러 가지 방법으로 시도했습니다 왜 (아래 참조) ncurses의 문제를 연결있을 것 같다AIX 5.3에서 Python 2.6.4 컴파일 문제가 발생했습니다.

 
./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 

, 이는 . /usr/lib/libncurses.a는 존재하지만 사용상의 문제가없는 /utv/sad/ncurses/lib/libncurses.a에 대한 심볼릭 링크입니다./usr/local/lib에 해당 파일에 대한 링크가 있습니다.

내 문제는 내가 메이크업에서 다음과 같은 오류를 얻을 수 있습니다 :

 
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의를 찾을 수 없다는 대한 것은 문제가되지 않습니다, 나는 그 필요하지 않습니다.

그러나 다음과 같은 문제인 curses가 문제입니다. 그게 필요해. 내가 올바르게 해석하면 libncurses.a를 찾을 수 없습니다. 적어도, 나열된 모든 "정의되지 않은 기호"는 ncurses 기능처럼 보입니다. 하지만 어쩌면 내가 틀렸어, 아마도 libncurses.a 파일을 찾지 만, 그 안에 심볼을 찾을 수 없을까? 나는 모른다.

답변

1

bzip2 자체도 찾을 수없는 것처럼 보입니다. GCC에서 너무 멀리 방황하면 이상한 파이썬 빌드 오류가 나타나는 경우가 있습니다. 내 첫 번째 권장 사항은 GCC, GNU binutils 및 GNU make로 컴파일하고 문제가 지속되는지 확인하는 것입니다.

configure과 대화 할 때 구성 옵션에서 라이브러리 이름을 알아낼 수 있습니다. 따라서이 :

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

은 다음과 같아야합니다

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

하지만 그 또한 헤더가 발견 될 수 있음을 의미한다. 그들은 할수 있나?

플랫폼의 컴파일러에서 libs 디렉토리를 추가 할 수있는 옵션이있을 수도 있습니다.이 경우 Python은 확장을 컴파일하기 전에 -lncurses을 사용하려고하기 때문에 (libncurses.a에 대한 링커 검색이 라이브러리 검색 경로).

+0

당신의 respone 주셔서 감사합니다. 내가 월요일에 일하러 돌아올 때 나는 그것을 시험 할 것이다. 나는 gcc를 사용하고 있다고 믿지만 확실히 확인해 보겠습니다. 또한 제안대로 GNU 도구를 설치하고 대신 GNU 도구를 사용해 보겠습니다. 내가 이것을했을 때 나는 다시 말 할 것이다. – Enfors

+0

@Enfors : GCC는 그런 오류를 발생시키지 않습니다. –

+0

그렇지 않습니까? 그러나 위에 나온 내용에서 "gcc"라고 표시되어 있습니까? 상관 없슴. 당신의 충고 덕분에, 나는 그것을 작동 시켰습니다. 감사! 나는이 문제에 대한 답을 나 자신이 취해야 할 조치의 세부 사항과 함께 게시 할 수 있는지, 같은 문제가있는 다른 사람들의 이익을 위해 보겠습니다. – Enfors

0

제드 스미스 (Jed Smith)의 제안에 감사 드리며,이 문제를 해결할 수있었습니다. 이것은 내가이를 않은 것입니다 :

  • 1 단계 : 첫째, 나는 "Makefile.pre.in"을 편집했다. 나는 "CC = @ CC @"줄을 "CC = gcc"로 바꿨다. 내가 말할 수있는 한, 이것은 AIX가 사용하려고 시도했던 다른 이름없는 끔찍함 대신에 gcc를 사용하도록 컴파일을 강제했다.

  • 2 단계 : ncurses.h에 대한 소프트 링크를/usr/include에 넣습니다. /opt/utv/sad/include/ncurses /에서 ncurses.h를 찾을 수 없으므로기만당했습니다.

 
ln -s /utv/sad/ncurses/include/ncurses/ncurses.h /usr/include/ncurses.h 
  • 3 단계 : : 나는 루트로 다음 명령을 실행 I 컴파일 GNU의 binutils 패키지를 설치하고 GNU는 "--prefix =/가정/chenf"로를 구성합니다.그런 다음/home/chenf/bin을 맨 처음 경로에 넣고 컴파일 프로세스가 AIX에서 제공하는 기본값 대신에 찾은 것을 사용하는지 확인합니다.
  • 4 단계 : 나는 다음과 같이 구성 실행 :
 
./configure --prefix=/opt/freeware --disable-ipv6 --without-threads --with-ncurses=/opt/sad/ncurses 

IPv6 및 스레드가 나에게 제공했다 컴파일 오류, 그리고 내가 그들을 사용할 이유가 그래서 나는 그들을 필요가 없습니다./opt/sad/ncurses 디렉토리 아래에 lib/libncurses.a가 있습니다. 도서관 자체를 돌보아 준 것 같습니다.

그 후에, 내가해야 할 일은 "make"와 "make install"이었습니다. 끝난.

컴파일하는 동안 약간의 오류가 발생했으며 결국에는 모듈 및 날짜/시간과 같은 일부 모듈을 생성하지 못했다고 들었지만 다른 모든 것은 여전히 ​​괜찮습니다. 당분간 나는 그들없이 할 것이다.

1

이것은 매우 오래된 문제입니다 (2009 ??).하지만 오늘 같은 문제를 해결합니다 !! 나를 좋아하는 다른 AIX 사용자의 경우 ... 내 사례를 떠날 것입니다.

OK .. 먼저 환경 변수 OBJECT_MODE를 확인하십시오.

필자의 경우 OBJECT_MODE는 64이지만 libcurses.a 아카이브 파일에는 32 비트 오브젝트 파일 만 포함되어 있습니다 !!

환경 변수 OBJECT_MODE를 32로 변경하면 모든 것이 작동합니다 !!!

관련 문제