DSO and wrapper of a library

Vincent Torri vincent.torri at gmail.com
Tue Aug 17 23:19:48 PDT 2010


On Wed, Aug 18, 2010 at 7:23 AM, Vincent Torri <vincent.torri at gmail.com>wrote:

> Hey,
>
> We have written a wrapper around dbus (a library that is called edbus). In
> the edbus.pc file, I just added to Requires.private dbus-1 (the name of dbus
> pc file), so our .pc file contains:
>
> Requires.private:  dbus-1
> Libs: -L${libdir} -ledbus
>
> That wrapper has an exported header file which contains dbus calls. For
> example:
>
> DBusPendingCall *edbus_message_send(EDBus_Connection *conn, DBusMessage
> *msg, EDBus_Method_Return_Cb cb_return, int timeout, void *data);
>
> A guy from mandriva told us about a DSO problem in that case (I don't know
> much about DSO), and gave a fix by adding also (that is Requires.private
> still contains dbus-1) in Libs the result of pkg-config --libs dbus-1, that
> is:
>
> Requires.private:  dbus-1
> Libs: -L${libdir} -ledbus -L/lib -ldbus-1 -lpthread -lrt
>
> Is it correct ?
>
> Thank you
>

Another thing I forget to mention: edbus is used in a program, and that
program  uses directyly some dbus calls. Which is certainly the problem.

Vincent Torri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20100818/5786d1d8/attachment.html>


More information about the pkg-config mailing list