LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 12-21-2011, 11:52 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
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
 
Old 12-22-2011, 06:13 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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
 
Old 12-22-2011, 06:30 AM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
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
 
Old 12-22-2011, 06:43 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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
 
Old 12-22-2011, 06:55 AM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
no. there is no such a file as dbus-shared.h
 
Old 12-22-2011, 11:48 AM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Then that would lead me to believe that the compilation/installation of dbus didn't go so well.
 
Old 12-22-2011, 12:47 PM   #7
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
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.
 
Old 12-22-2011, 04:01 PM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using dbus in C (without glib) Elv13 Programming 1 03-14-2009 04:15 PM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-08-2008 11:23 PM
dbus-glib-1 -- where to get it from? byte weaver Linux - General 3 02-09-2008 11:16 AM
dbus library with glib binding Micky_123 Programming 5 01-30-2008 05:32 AM
dbus-glib-1 version error when installing xfce4.4 epoo Slackware 2 01-28-2008 01:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration