[PyKDE] sip on AIX

John Marshall John.Marshall at ec.gc.ca
Thu Feb 6 16:54:00 GMT 2003


Hi,

I have been trying to build sip-3.5 on AIX 5.1 and have the following
problem:
----------------
test -d
../../../../../pkgs/aix_5.1_ppc/python-2.2.1/lib/python2.2/site-packages/ || mkdir -p ../../../../../pkgs/aix_5.1_ppc/python-2.2.1/lib/python2.2/site-packages/
        rm -f libsip.so.9.3.0 libsip.a libsip.so.9 libsip.so.9.3
        makeC++SharedLib -p 0 -o libsip.so.9.3.0  objmap.o  qtlib.o 
threads.o  siplib.o moc_sipQt.o 
-L/home/atlas/sge/pkgs/aix_5.1_ppc/qt-3.1.1/lib -lqt -lXext -lX11 -lm
-lbind; ar cq libsip.a libsip.so.9.3.0; ranlib libsip.a; mv libsip.a
../../../../../pkgs/aix_5.1_ppc/python-2.2.1/lib/python2.2/site-packages/
ld: 0711-224 WARNING: Duplicate symbol: __priority0x80000000
ld: 0711-224 WARNING: Duplicate symbol: .__priority0x80000000
ld: 0711-224 WARNING: Duplicate symbol: __cdtors
ld: 0711-224 WARNING: Duplicate symbol:
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::npos
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol: .PyInt_FromLong
ld: 0711-317 ERROR: Undefined symbol: PyClass_Type
ld: 0711-317 ERROR: Undefined symbol: PyInstance_Type
ld: 0711-317 ERROR: Undefined symbol: PyExc_TypeError
ld: 0711-317 ERROR: Undefined symbol: .PyErr_Format
ld: 0711-317 ERROR: Undefined symbol: PyExc_SystemError
ld: 0711-317 ERROR: Undefined symbol: PyExc_RuntimeError
ld: 0711-317 ERROR: Undefined symbol: .PyDict_GetItemString
ld: 0711-317 ERROR: Undefined symbol: .PyTuple_Size
ld: 0711-317 ERROR: Undefined symbol: .PyCFunction_New
ld: 0711-317 ERROR: Undefined symbol: .PyDict_GetItem
ld: 0711-317 ERROR: Undefined symbol: PyExc_AttributeError
ld: 0711-317 ERROR: Undefined symbol: .PyErr_SetObject
:
:
:
-----

makeC++SharedLib is looking for info on the functions provided in
libpython2.2.1.a (and pthread) but it cannot find it. I see,
however, that under Linux these libraries are NOT needed to
create the shared libraries.

Has anyone ever encountered this problem? I think I have solved
it by adding '-L<path> -lpython2.2.1 -lpthread' to the
makeC++SharedLib call.

John




More information about the PyQt mailing list