Problem build python bindings to lasso with swig on mac os x

Discussion in 'Python' started by Roland Hedberg, Dec 4, 2005.

  1. Hi!

    This involves quite a lot of different system, so I'm not really sure
    who which would be the right list to query.

    So, I'm trying a couple, this list being one of them.

    I'm trying to build the lasso (http://lasso.entrouvert.org/)
    libraries and what I really want to get at is the Python bindings.
    Those binding are done with the help of swig and it fails with the
    following output:

    gcc -o .libs/_lasso.so -bundle .libs/_lasso_la-lasso_wrap.o -L/sw/
    lib -L/Users
    /rolandhedberg/src/libxml2-2.6.22 -L/usr/local/lib -L/lib ../
    lasso/.libs/liblasso
    ..dylib /usr/lib/libiconv.dylib /usr/lib/libpthread.dylib /usr/lib/
    libz.dylib /usr
    /lib/libm.dylib /usr/lib/libssl.dylib /usr/lib/libcrypto.dylib /usr/
    local/lib/lib
    dl.dylib /usr/lib/libresolv.dylib /usr/local/lib/
    libgobject-2.0.dylib /usr/lib/li
    bc.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/
    libintl.dylib /usr/local
    /lib/libxmlsec1-openssl.dylib /usr/local/lib/libxmlsec1.dylib -ldl /
    usr/local/lib
    /libxslt.dylib /usr/local/lib/libxml2.dylib -lpthread -lz /sw/lib/
    libiconv.dylib
    -lm -lssl -lcrypto /usr/local/lib/libsasl2.dylib -Wl,-F. -Wl,-F.
    /usr/bin/ld: Undefined symbols:
    _PyArg_ParseTuple
    _PyCObject_AsVoidPtr
    _PyCObject_FromVoidPtrAndDesc
    _PyCObject_GetDesc
    _PyCObject_Type
    _PyDict_SetItemString
    _PyErr_NewException
    _PyErr_Occurred
    _PyErr_SetObject
    _PyErr_SetString
    _PyExc_IOError
    _PyExc_IndexError
    _PyExc_MemoryError
    _PyExc_NameError
    _PyExc_OverflowError
    _PyExc_RuntimeError
    _PyExc_SyntaxError
    _PyExc_SystemError
    _PyExc_TypeError
    _PyExc_ValueError
    _PyExc_ZeroDivisionError
    _PyFloat_FromDouble
    _PyInt_AsLong
    _PyInt_FromLong
    _PyModule_AddObject
    _PyModule_GetDict
    _PyObject_CallObject
    _PyObject_GetAttr
    _PyObject_SetAttrString
    _PyString_FromString
    _PyType_Type
    _Py_BuildValue
    _Py_InitModule4
    __Py_NoneStruct
    collect2: ld returned 1 exit status
    make[1]: *** [_lasso.la] Error 1
    make: *** [all-recursive] Error 1

    To me it looks like there is a missing library somewhere, but then I
    might be wrong.

    I've tried with different versions of swig 1.3.21 - 1.3.27 with the
    same result.
    It's the 0.6.3 version of lasso I'm trying to build.

    Comments ?

    -- Roland
     
    Roland Hedberg, Dec 4, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kirill Simonov
    Replies:
    2
    Views:
    325
    =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?=
    Oct 9, 2006
  2. mauro
    Replies:
    0
    Views:
    439
    mauro
    Oct 10, 2007
  3. Reedick, Andrew
    Replies:
    0
    Views:
    343
    Reedick, Andrew
    Dec 5, 2007
  4. Adam Mercer
    Replies:
    5
    Views:
    1,248
    Robert Schuon
    Dec 21, 2010
  5. Adam Mercer
    Replies:
    3
    Views:
    389
    geremy condra
    Jul 15, 2010
Loading...

Share This Page