Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80314 - some DBUS development libraries are missing
Summary: some DBUS development libraries are missing
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
: 86144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-01 03:24 UTC by Steve B.
Modified: 2005-03-21 11:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve B. 2005-02-01 03:24:54 UTC
emerging dubs does not pull in all required header files for development. Specefily the file "dbus-arch-deps.h" is not installed to the system.  I would like to start to include dbus support in some of my applications but currently dbus development under Gentoo is broken.  

Also the include files are being installed to /usr/include/dbus-1.0/dbus  A symlink should be added for /usr/include/dbus for normal development habits

i.e. #include <dbus/dbus.h>
Comment 1 foser (RETIRED) gentoo-dev 2005-02-01 06:51:50 UTC
you should use pkgconfig to tell you where the includes are & what do you need the arch specific include for (it cannot be used directly) ?

There are dbus using apps out there that build & work just fine with the install as it is.
Comment 2 foser (RETIRED) gentoo-dev 2005-02-01 07:07:00 UTC
and dbus-arch-deps.h file is correctly installed. Makes this no bug.
Comment 3 Steve B. 2005-02-01 16:44:42 UTC
Not according to the DBUS documentation.  Including <dbus/dbus.h> also includes <dbus/dbus-arch-deps.h>.  Try it yourself.  

#include <iostream>
#include <dbus/dbus.h>

int main(int argc, char* argv[])
{
   std::cout <<"This dbus example will not compile!\n";
   return 0;
}

g++ test.cpp -o test -ldbus-1 will fail because of this missing header file (it will also fail if you don't symlink the /usr/include/dbus-1.0/dbus to /usr/include/dbus

Anyways the "missing header" is installed to /usr/lib/include/dbus/... I just symlinked the file to /usr/include/dbus 

So either the gentoo installation is wrong, or the DBUS documentation is wrong. Either way symlinking the files to the correct locations fixes the problem.
Comment 4 Steve B. 2005-02-01 17:20:40 UTC
errr.. I'm both wright and wrong.  Everything is installed fine so long as you use pkg-config as said by foser.  Don't spank me, I'm an ex WIN32 developer.. I was not aware that pkg-config existed. Anyways g++ test.cpp -o test `pkg-config dbus-1 --libs --cflags` works correctly.
Comment 5 foser (RETIRED) gentoo-dev 2005-03-21 11:11:32 UTC
*** Bug 86144 has been marked as a duplicate of this bug. ***