Need help on setting D-Bus
Yedire, Sandeep
syedire at gmail.com
Mon Sep 27 22:03:46 PDT 2010
Thanks for your reply.
do you have user "messagebus" or "dbus" user created by launch script. Is
> the libdbus correctly available in the configuration file. .
[Sandeep]I do not have messagebus or dbus user created by launch
script ps -elf | grep dbus do not show any.
How do I check libdbus correctly available in the configuration file?
Please let me know.
> How does your launch script looks like. What is causing segmentation fault?
Please find the conf file attached to this email.
My configure params for dbus-1.2.24 is like this:
./configure --host=mipsel-linux --prefix=/opt/btaudio
CC=mipsel-linux-gcc --libexecdir=/opt/btaudio/lib/
--includedir=/opt/btaudio/include LDFLAGS=-L/opt/btaudio/lib/
LIBS=-lexpat --oldincludedir=/opt/btaudio/include/
CFLAGS=-I/opt/btaudio/include --without-x --enable-tests
--localstatedir=/var
I have installed glib-2.15 separately
and now on the target I tried to execute
>export DBUG_VERBOSE=1
>dbus-daemon --system
I get seg fault. I understand dbus-daemon built from script files but
having not clue where this is causing seg fault. Is it because its
dependent on any other files?
Also, during the configuring of dbus-1.2.24, I do not see few files ,
system_bus_sockets in /var/run/dbus/ and no PID file in path
/var/run/messagebus.pid being built during the configuration process.
Please find my config.txt file attached along with this file.
Regards,
Sandeep.Yedire
----------------------------------------------------------
T.Jefferson, 'Victory and defeat are each of the same price"
On 27 September 2010 22:58, Sathia Narayanan <msathia at gmail.com> wrote:
> do you have user "messagebus" or "dbus" user created by launch script. Is
> the libdbus correctly available in the configuration file. .
>
> How does your launch script looks like. What is causing segmentation fault?
> very little information is actually available from your mail to understand
> what is happening
> regards,
> Sathia
>
> On Mon, Sep 27, 2010 at 10:17 AM, Yedire, Sandeep <syedire at gmail.com> wrote:
>>
>> Hello there,
>> I am newbie to D-Bus. I am currently setting up connection for
>> Bluetooth Head-set and Target(MIPS ARC). When I tried sending the
>> pass key to headset thru passkey agent, I get error message "Cant get
>> on system bus". I googled and found its related to D-Bus.
>>
>> I have cross-compiled the dbus-1.2.24, expat, glib libraries and also
>> built bluez-4.69.
>> During the build of D-Bus I don't see system_bus_socket file being
>> created in that directory during the build process.
>>
>> After login into target as root, I tried executing below commands
>> >export DBUG_VERBOSE=1
>> >dbus-daemon --system
>>
>> But the dbus-daemon is not started. Instead I get segmentation fault.
>>
>> My doubt: How do I start dbus-daemon on target? I understand this
>> needs to be running to establish communication between two
>> applications.
>> How do I start this daemon?
>> FYI my kernel version on target 2.6.18.
>>
>> Please suggest on this.
>>
>>
>> Regards,
>> Sandeep.Yedire
>>
>> ----------------------------------------------------------
>> T.Jefferson, 'Victory and defeat are each of the same price"
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-linux-strip... mipsel-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mipsel-linux-gcc... mipsel-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-linux-gcc accepts -g... yes
checking for mipsel-linux-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mipsel-linux-gcc... gcc3
checking whether mipsel-linux-gcc and cc understand -c and -o together... yes
checking for mipsel-linux-g++... mipsel-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-linux-g++ accepts -g... yes
checking dependency style of mipsel-linux-g++... gcc3
checking for library containing strerror... none required
checking how to run the C preprocessor... mipsel-linux-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for inline... inline
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by mipsel-linux-gcc... /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld
checking if the linker (/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/bin/mipsel-linux-nm -B
checking the name lister (/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/bin/mipsel-linux-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld option to reload object files... -r
checking for mipsel-linux-objdump... mipsel-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for mipsel-linux-ar... mipsel-linux-ar
checking for mipsel-linux-strip... (cached) mipsel-linux-strip
checking for mipsel-linux-ranlib... mipsel-linux-ranlib
checking command to parse /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/bin/mipsel-linux-nm -B output from mipsel-linux-gcc object... ok
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether mipsel-linux-g++ accepts -g... (cached) yes
checking dependency style of mipsel-linux-g++... (cached) gcc3
checking how to run the C++ preprocessor... mipsel-linux-g++ -E
checking for objdir... .libs
checking if mipsel-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for mipsel-linux-gcc option to produce PIC... -fPIC -DPIC
checking if mipsel-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if mipsel-linux-gcc static flag -static works... yes
checking if mipsel-linux-gcc supports -c -o file.o... yes
checking if mipsel-linux-gcc supports -c -o file.o... (cached) yes
checking whether the mipsel-linux-gcc linker (/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by mipsel-linux-g++... /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld
checking if the linker (/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld) is GNU ld... yes
checking whether the mipsel-linux-g++ linker (/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
checking for mipsel-linux-g++ option to produce PIC... -fPIC -DPIC
checking if mipsel-linux-g++ PIC flag -fPIC -DPIC works... yes
checking if mipsel-linux-g++ static flag -static works... yes
checking if mipsel-linux-g++ supports -c -o file.o... yes
checking if mipsel-linux-g++ supports -c -o file.o... (cached) yes
checking whether the mipsel-linux-g++ linker (/opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU C Library 2.1 or newer... yes
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
checking size of __int64... 0
checking 64-bit integer type... long long
checking 32-bit integer type... int
checking 16-bit integer type... short
checking whether byte ordering is bigendian... no
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... yes
checking whether to use inline assembler routines for atomic integers... no
checking for library containing socket... none required
checking for gethostbyname... yes
checking for vsnprintf... yes
checking for vasprintf... yes
checking for nanosleep... yes
checking for usleep... yes
checking for setenv... yes
checking for clearenv... yes
checking for unsetenv... yes
checking for socketpair... yes
checking for getgrouplist... no
checking for fpathconf... yes
checking for setrlimit... yes
checking for poll... yes
checking for broken poll... no (cross compiling)
checking for dirfd... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for unistd.h... (cached) yes
checking for posix getpwnam_r... yes
checking whether socklen_t is defined... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for writev... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking for ISO C99 varargs macros in C... yes
checking for GNUC varargs macros... yes
checking for struct cmsgcred... no
checking for getpeerucred... no
checking for getpeereid... no
checking abstract socket namespace... no
configure: WARNING: Cannot check for abstract sockets when cross-compiling, please use --enable-abstract-sockets
checking for XML_ParserCreate_MM in -lexpat... yes
checking expat.h usability... yes
checking expat.h presence... no
configure: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: expat.h: proceeding with the compiler's result
checking for expat.h... yes
checking for pthread_cond_timedwait... yes
checking for pthread_cond_timedwait in -lpthread... yes
checking for pthread_condattr_setclock... yes
checking for library containing clock_getres... none required
checking for CLOCK_MONOTONIC... found
checking for is_selinux_enabled in -lselinux... no
configure: WARNING: Sufficiently new SELinux library not found
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for inotify_init1... no
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking for kqueue... no
checking for audit_log_user_avc_message in -laudit... no
checking for ADT API... no
checking for X... disabled
checking whether mipsel-linux-gcc supports "-Wfloat-equals"... no
checking whether mipsel-linux-gcc supports "-Wdeclaration-after-statement"... yes
checking whether mipsel-linux-gcc supports "-fno-common"... yes
checking whether mipsel-linux-gcc supports "-fPIC"... yes
checking whether /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld supports "-z,relro"... yes
checking whether mipsel-linux-gcc supports "-fPIE"... yes
checking whether /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld supports "-z,relro"... yes
checking whether mipsel-linux-gcc supports "-Wno-pointer-sign"... yes
checking whether /opt/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-8ts_uclibc-nptl-0.9.29-20070423_20080520/mipsel-linux-uclibc/bin/ld supports "--gc-sections"... yes
checking for doxygen... /usr/bin/doxygen
checking whether to build Doxygen documentation... yes
checking for xmlto... /usr/bin/xmlto
checking whether to build XML documentation... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
configure: creating ./config.status
config.status: creating Doxyfile
config.status: creating dbus/dbus-arch-deps.h
config.status: creating bus/system.conf
config.status: creating bus/session.conf
config.status: creating bus/messagebus
config.status: creating bus/rc.messagebus
config.status: creating bus/dbus-daemon.1
config.status: creating Makefile
config.status: creating dbus/Makefile
config.status: creating bus/Makefile
config.status: creating tools/Makefile
config.status: creating test/Makefile
config.status: creating test/name-test/Makefile
config.status: creating doc/Makefile
config.status: creating dbus-1.pc
config.status: creating test/data/valid-config-files/debug-allow-all.conf
config.status: creating test/data/valid-config-files/debug-allow-all-sha1.conf
config.status: creating test/data/valid-config-files-system/debug-allow-all-pass.conf
config.status: creating test/data/valid-config-files-system/debug-allow-all-fail.conf
config.status: creating test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service
config.status: creating test/data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service
config.status: creating test/data/valid-service-files/org.freedesktop.DBus.TestSuiteForkingEchoService.service
config.status: creating test/data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service
config.status: creating test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service
config.status: creating test/data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service
config.status: creating test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service
config.status: creating test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service
config.status: creating test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service
config.status: creating test/data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service
config.status: creating test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoExec.service
config.status: creating test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service
config.status: creating test/data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
D-Bus 1.2.24
==============
prefix: /opt/btaudio
exec_prefix: ${prefix}
libdir: /opt/btaudio/lib
libexecdir: /opt/btaudio/lib
bindir: /opt/btaudio/bin
sysconfdir: /opt/btaudio/etc
localstatedir: /var
datadir: /opt/btaudio/share
source code location: .
compiler: mipsel-linux-gcc
cflags: -ffunction-sections -fdata-sections -I/opt/btaudio/include -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -fno-common -Wno-unused -Wno-sign-compare -Wno-pointer-sign -fno-strict-aliasing
cppflags:
cxxflags: -g -O2
64-bit int: long long
32-bit int: int
16-bit int: short
Doxygen: /usr/bin/doxygen
xmlto: /usr/bin/xmlto
Maintainer mode: no
gcc coverage profiling: no
Building unit tests: yes
Building verbose mode: no
Building assertions: no
Building checks: yes
Building SELinux support: no
Building inotify support: yes
Building dnotify support: no
Building kqueue support: no
Building X11 code: no
Building Doxygen docs: yes
Building XML docs: yes
Building cache support: yes
Gettext libs (empty OK):
Using XML parser:
Init scripts style: redhat
Abstract socket names: no
System bus socket: /var/run/dbus/system_bus_socket
System bus address: unix:path=/var/run/dbus/system_bus_socket
System bus PID file: /var/run/messagebus.pid
Session bus socket dir: /tmp
Console auth dir: /var/run/console/
Console owner file: no
Console owner file path:
System bus user: messagebus
Session bus services dir: /opt/btaudio/share/dbus-1/services
'make check' socket dir: /tmp
NOTE: building with unit tests increases the size of the installed library and renders it insecure.
NOTE: building with unit tests but without assertions means tests may not properly report failures (this configuration is only useful when doing something like profiling the tests)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: session.conf
Type: application/octet-stream
Size: 2608 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100928/377d1afd/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: system.conf
Type: application/octet-stream
Size: 2999 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100928/377d1afd/attachment-0003.obj>
More information about the dbus
mailing list