Hi,
I have tried to follow the instructions, but running into a few
different issues.
Details
OS: Mac OSX 10.4.5
Python: 2.4.2 build with ./configure --enable-framework, make and
make frameworkinstall
Postgresql 8.1.0 build from source not sure all the configure options.
At first, I received the error message "-shared option not
supported" (or something like that).
I am trying to compile with this command:
cc -o _pg.so -I/Library/Frameworks/Python.framework/Versions/2.4/
include/python2.4 -I/usr/local/postgresql-8.1.0/src/include -I/usr/
local/pgsql/include -L/usr/local/pgsql/lib -lpq pgmodule.c
I know all the needed library and include directories. Here's the
message I get:
/usr/bin/ld: Undefined symbols:
_main
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyDict_New
_PyDict_SetItemString
_PyErr_NewException
_PyErr_Occurred
_PyErr_SetString
_PyEval_RestoreThread
_PyEval_SaveThread
_PyExc_IOError
_PyExc_MemoryError
_PyExc_StandardError
_PyExc_TypeError
_PyExc_ValueError
_PyFloat_FromDouble
_PyFloat_FromString
_PyInt_AsLong
_PyInt_FromLong
_PyInt_FromString
_PyInt_Type
_PyList_Append
_PyList_GetItem
_PyList_New
_PyList_Size
_PyList_Type
_PyLong_FromLong
_PyLong_FromLongLong
_PyLong_FromString
_PyLong_Type
_PyModule_GetDict
_PyOS_snprintf
_PyObject_Free
_PyObject_Init
_PyObject_Malloc
_PyObject_Repr
_PyObject_Str
_PyString_AsString
_PyString_FromString
_PyString_FromStringAndSize
_PyString_Type
_PyTuple_GetItem
_PyTuple_New
_PyTuple_Size
_PyTuple_Type
_PyType_IsSubtype
_PyType_Type
_Py_FatalError
_Py_FindMethod
_Py_InitModule4
__PyString_Resize
__Py_NoneStruct
Any insight would be greatly appreciated. I am a bit of a novice for
source installs.
Paul Marcotte
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql