[issue13493] Import error with embedded python on AIX 6.1

2011-12-01 Thread python_hu
python_hu nari...@163.com added the comment: - void* handle = dlopen(/usr/local/lib/python2.7/lib-dynload/time.so, 2); this code can work well,but when the code run to : PyRun_SimpleString(from time import time,ctime\nprint 'Today is',ctime(time())\n); it dumped, i think it make be because

[issue13493] Import error with embedded python on AIX 6.1

2011-11-30 Thread python_hu
python_hu nari...@163.com added the comment: Thank Amaury,you are right. So python2.7 share library compile finished,and python2.7 works,and then I write a test program,to test libpython2.7.so share library,but it dumped! code: --- #include stdio.h^M #include Python.h^M

[issue13493] Import error with embedded python on AIX 6.1

2011-11-29 Thread python_hu
python_hu nari...@163.com added the comment: Sorry,it just a common behave of xlC_r,we can ignore it. So i sucess build libpython2.7.so using --enable-shared: ./configure --enable-shared --with-gcc=xlc_r -q64 --with-cxx=xlC_r -q64 --disable-ipv6 AR=ar -X64 I make install python2.7.2,but when

[issue13493] using python embed on AIX 6.1,Modules import error!

2011-11-28 Thread python_hu
New submission from python_hu nari...@163.com: Using python api embed on AIX 6.1,Modules import error,need help! I have compile Python2.5.5 on Aix 6.1 using condigure: ./configure --with-gcc=xlc_r -q64 --with-cxx=xlC_r -q64 --disable-ipv6 AR=ar -X64 when i run Python,and import math module

[issue13493] Import error with embedded python on AIX 6.1

2011-11-28 Thread python_hu
python_hu nari...@163.com added the comment: thanks a lot. as your surggest,i try python2.7.2,but when i build it on AIX 6.1, it can not compile success,breaked by xlc_c console. Informations: checking size of double... 8 checking size of long double... 8 checking whether byte ordering

[issue13493] Import error with embedded python on AIX 6.1

2011-11-28 Thread python_hu
python_hu nari...@163.com added the comment: By the way,i have compared the configure.in with Python-2.7_shared_AIX.diff in Issue941346,and can not find any modification of building share library on AIX in Python 2.7.2' source code. -- ___ Python