DSO and wrapper of a library

Vincent Torri vincent.torri at gmail.com
Tue Aug 17 22:23:27 PDT 2010


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

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

Requires.private:  dbus-1
Libs: -L${libdir} -ledbus -L/lib -ldbus-1 -lpthread -lrt

Is it correct ?

Thank you

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

More information about the pkg-config mailing list