Dnia 10-08-2007, pią o godzinie 17:17 -0400, Olivier Crête napisał(a): > On Fri, 2007-10-08 at 04:37 +0200, Tomasz Melcer wrote: > > I am trying to implement jingle-audio in Gajim, a jabber client written > > in Python. I tried to create simple python bindings for Farsight, that > > would cover at least functions which I will need in Gajim. Compilation > > gives me a 'farsight.so' file, which contains proper API for python. > > Have python binding for Farsight is really nice. If you want, we could > find a way to make them part of the official package. Thanks. They're not finished yet, and I don't really need all of farsight right now... but when I'll have more time, why not?
> > farsight-Message: looking for plugins in /usr/local/lib/farsight-0.1-2 > > opening module /usr/local/lib/farsight-0.1-2/librtp-session.so: > > /usr/local/lib/farsight-0.1-2/librtp-session.so: undefined symbol: > > farsight_stream_get_media_type > > Session not supported > > As you've found out, this is a linking problem, I've fixed it, the fix > is available on my darcs branch at: > http://projects.collabora.co.uk/~monkey/farsight-misc-fixes-tester/ I managed to fix this differently. It seems that python interpreter uses dlopen(..., RTLD_LOCAL) by default, so that different modules don't mix up. I didn't know that this flag propagates to such kind of recursive library loading (like: python->farsight.so (bindings)->libfarsight->plugins). Python allows to change this flag dynamically, but that's an ugly hack here. Your solution is better. Thank you. Tomasz Melcer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Farsight-devel mailing list Farsight-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/farsight-devel