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