[PyKDE] OS X

Gordon Tyler gordon at doxxx.net
Tue May 20 03:52:01 BST 2003


On May 19, 2003 11:17 am, Steven Scott wrote:
> ld: multiple definitions of symbol _includeDirList
> main.o definition of _includeDirList in section (__DATA,__common)
> transform.o definition of _includeDirList in section (__DATA,__common)
> ld: multiple definitions of symbol _sipVersion
> main.o definition of _sipVersion in section (__DATA,__common)
> transform.o definition of _sipVersion in section (__DATA,__common)
> gencode.o definition of _includeDirList in section (__DATA,__common)
> gencode.o definition of _sipVersion in section (__DATA,__common)
> heap.o definition of _includeDirList in section (__DATA,__common)
> heap.o definition of _sipVersion in section (__DATA,__common)
> parser.o definition of _includeDirList in section (__DATA,__common)
> parser.o definition of _sipVersion in section (__DATA,__common)
> lexer.o definition of _includeDirList in section (__DATA,__common)
> lexer.o definition of _sipVersion in section (__DATA,__common)

The attached patch (sip-x11-gpl-3.6-extern.patch) fixes this problem.

But now I've run into another problem:

c++ -framework CoreServices  -current_version 10.0.0  -compatibility_version 
10.0  -dynamiclib -single_module -install_name /sw/lib/libsip.10.dylib -o 
libsip.10.0.0.dylib objmap.o qtlib.o threads.o siplib.o moc_sipQt.o  
-L/sw/lib -L/sw/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lXt
ld: Undefined symbols:
_PyClass_IsSubclass
_PyCFunction_Type
_PyErr_Clear
_PyErr_Fetch
_PyErr_Format
_PyErr_GivenExceptionMatches
_PyErr_Restore
_PyEval_CallObjectWithKeywords
_PyEval_RestoreThread
_PyEval_SaveThread
_PyExc_NameError
_PyExc_RuntimeError
_PyExc_TypeError
_PyMethod_New
_PyMethod_Type
_PyObject_GetAttrString
_PyTuple_GetSlice
_PyWeakref_GetObject
__Py_NoneStruct
__Py_TrueStruct
_PyErr_SetString
_PyEval_AcquireThread
_PyInstance_New
_PyThreadState_Clear
_PyThreadState_DeleteCurrent
_PyThreadState_New
_PyThread_get_thread_ident
_PyArg_ParseTuple
_PyCFunction_New
_PyCallable_Check
_PyClass_Type
_PyDictProxy_New
_PyDict_Clear
_PyDict_DelItem
_PyDict_GetItem
_PyDict_GetItemString
_PyDict_New
_PyDict_SetItem
_PyDict_SetItemString
_PyErr_ExceptionMatches
_PyErr_NoMemory
_PyErr_Occurred
_PyErr_SetObject
_PyExc_AttributeError
_PyExc_Exception
_PyExc_IndexError
_PyExc_OverflowError
_PyExc_SystemError
_PyExc_ValueError
_PyFloat_AsDouble
_PyFloat_FromDouble
_PyFloat_Type
_PyImport_GetModuleDict
_PyInstance_Type
_PyInt_AsLong
_PyInt_FromLong
_PyInt_Type
_PyLong_AsLong
_PyLong_FromLong
_PyLong_Type
_PyMem_Free
_PyMem_Malloc
_PyModule_GetDict
_PyObject_CallObject
_PyObject_Compare
_PyObject_GetAttr
_PyObject_Init
_PySlice_Type
_PyString_AsString
_PyString_FromString
_PyString_FromStringAndSize
_PyString_Type
_PyTuple_Size
_PyType_IsSubtype
_PyType_Type
_PyWeakref_NewRef
_Py_AtExit
_Py_InitModule4
__Py_ZeroStruct
/usr/bin/libtool: internal link edit command failed

The linker is trying to resolve symbols that (I think) are provided by the 
python executable when the extension is loaded at runtime. I hacked 
siplib/Makefile to change LFLAGS to:

LFLAGS = -framework CoreServices -bundle -bundle_loader /sw/bin/python2.2

This makes it compile and link with some hopefully harmless warnings, but I 
don't know if it works since I don't use sip/PyQt on Mac OS X.

I used Fink's python2.2, but it may work with Mac OS X's bundled Python.

Ciao,
Gordon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sip-x11-gpl-3.6-extern.patch
Type: text/x-diff
Size: 1003 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20030520/c32a6701/sip-x11-gpl-3.6-extern.bin


More information about the PyQt mailing list