Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
12-21-2011, 11:52 AM
#1
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 346
Rep:
dbus-glib-0.98 failed
the installation of this package failed and i'm getting this error:
Code:
dbus-glib.h:28:30: fatal error: dbus/dbus-shared.h : No such a file of directory
compilation terminated.
also i installed D-BUS-1.4.16 without any error
12-22-2011, 06:13 AM
#2
Senior Member
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,441
What is the output of
Code:
pkg-config --cflags --libs dbus-1
Or even better what does your dbus-1.pc file contain?
For example, here is my output:
Code:
lxde@asus-gentoo ~ $ pkg-config --cflags --libs dbus-1
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -ldbus-1 -lpthread -lrt
Code:
lxde@asus-gentoo ~ $ cat /usr/lib64/pkgconfig/dbus-1.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include
system_bus_default_address=unix:path=/var/run/dbus/system_bus_socket
sysconfdir=/etc
session_bus_services_dir=/usr/share/dbus-1/services
system_bus_services_dir=/usr/share/dbus-1/system-services
interfaces_dir=/usr/share/dbus-1/interfaces
daemondir=/usr/bin
Name: dbus
Description: Free desktop message bus
Version: 1.4.16
Libs: -L${libdir} -ldbus-1 -lpthread -lrt
Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include
12-22-2011, 06:30 AM
#3
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 346
Original Poster
Rep:
here's the output of those two commands that you said :
pkg-config --cflags --libs dbus-1:
Code:
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -ldbus-1 -lpthread -lrt
cat /usr/lib64/pkgconfig/dbus-1.pc :
Code:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
system_bus_default_address=unix:path=/var/run/dbus/system_bus_socket
sysconfdir=/etc
session_bus_services_dir=/usr/share/dbus-1/services
system_bus_services_dir=/usr/share/dbus-1/system-services
interfaces_dir=/usr/share/dbus-1/interfaces
daemondir=/usr/bin
Name: dbus
Description: Free desktop message bus
Version: 1.4.16
Libs: -L${libdir} -ldbus-1 -lpthread -lrt
Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include
12-22-2011, 06:43 AM
#4
Senior Member
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,441
and the file is there?
Code:
lxde@asus-gentoo ~ $ ls -al /usr/include/dbus-1.0/dbus/dbus-shared.h
-rw-r--r-- 1 root root 5135 Nov 8 01:21 /usr/include/dbus-1.0/dbus/dbus-shared.h
12-22-2011, 06:55 AM
#5
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 346
Original Poster
Rep:
no. there is no such a file as dbus-shared.h
12-22-2011, 11:48 AM
#6
Senior Member
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,441
Then that would lead me to believe that the compilation/installation of dbus didn't go so well.
12-22-2011, 12:47 PM
#7
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 346
Original Poster
Rep:
the installation went well. but there's somthing i forgot to mention.i installed dbus-1.14.0 first and i encountered an error. after a few days the lfs site correct the page of installation of dbus and they said that i should install the new version, 1.14.16.
12-22-2011, 04:01 PM
#8
Senior Member
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,441
If the file is not in /usr/include/dbus-1.0/dbus, then dbus is the problem, not dbus-glib
Post your output of
Code:
ls -al /usr/include/dbus-1.0/dbus
Here is what it should look like.
Code:
ls -al /usr/include/dbus-1.0/dbus
total 208
drwxr-xr-x 2 root root 4096 Dec 19 17:40 .
drwxr-xr-x 3 root root 4096 Dec 19 17:38 ..
-rw-r--r-- 1 root root 2135 Dec 19 17:38 dbus-address.h
-rw-r--r-- 1 root root 3472 Dec 19 17:38 dbus-bus.h
-rw-r--r-- 1 root root 25953 Dec 19 17:38 dbus-connection.h
-rw-r--r-- 1 root root 2886 Dec 19 17:38 dbus-errors.h
-rw-r--r-- 1 root root 23000 Dec 19 17:40 dbus-glib-bindings.h
-rw-r--r-- 1 root root 2516 Dec 19 17:40 dbus-glib-lowlevel.h
-rw-r--r-- 1 root root 14397 Dec 19 17:40 dbus-glib.h
-rw-r--r-- 1 root root 8910 Dec 19 17:40 dbus-gtype-specialized.h
-rw-r--r-- 1 root root 1384 Dec 19 17:40 dbus-gvalue-parse-variant.h
-rw-r--r-- 1 root root 4881 Dec 19 17:38 dbus-macros.h
-rw-r--r-- 1 root root 1975 Dec 19 17:38 dbus-memory.h
-rw-r--r-- 1 root root 13049 Dec 19 17:38 dbus-message.h
-rw-r--r-- 1 root root 1609 Dec 19 17:38 dbus-misc.h
-rw-r--r-- 1 root root 3124 Dec 19 17:38 dbus-pending-call.h
-rw-r--r-- 1 root root 23178 Dec 19 17:38 dbus-protocol.h
-rw-r--r-- 1 root root 4794 Dec 19 17:38 dbus-server.h
-rw-r--r-- 1 root root 5135 Dec 19 17:38 dbus-shared.h
-rw-r--r-- 1 root root 2956 Dec 19 17:38 dbus-signature.h
-rw-r--r-- 1 root root 9004 Dec 19 17:38 dbus-threads.h
-rw-r--r-- 1 root root 3635 Dec 19 17:38 dbus-types.h
-rw-r--r-- 1 root root 3925 Dec 19 17:38 dbus.h
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 06:10 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News