Compile dbus with backtrace support
I'm trying to build a dbus package that provides backtrace support. According to this error message, I need to add the -rdynamic option to the build configuration:
"D-Bus not built with -rdynamic so unable to print a backtrace" I made the following change to the slackbuild: CFLAGS="$SLKCFLAGS -rdynamic" Per the configure script, I also tried this: CFLAGS="$SLKCFLAGS -export-dynamic" What is the correct way to build dbus with backtrace support? Thanks. :) |
Quote:
Code:
This is from --configure --help |
I'm sure you intended to help, but I'm not the brightest bulb in the pack. Would you please be more specific? Thanks. :)
|
Quote:
Code:
SLKCFLAGS="-O2 -fPIC -rdynamic" |
That is essentially the same thing I posted in my original post, but I tried anyway. Still no backtrace.
|
I think you need only this configure options
Code:
./configure --prefix=/usr \ |
Thanks, but that does not help. :(
|
Quote:
Code:
--enable-verbose-mode |
I already tried that too. :)
|
Woodsman, I traced the message from the code backwards...
In dbus/dbus-sysdeps-unix.c if ! defined (DBUS_BUILT_R_DYNAMIC) fprintf (stderr, " D-Bus not built with -rdynamic so unable to print a backtrace\n"); Running configure with no options gave me in config.h #undef DBUS_BUILT_R_DYNAMIC In configure.ac: if test x$enable_asserts = xno; then AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking]) R_DYNAMIC_LDFLAG="" else # -rdynamic is needed for glibc's backtrace_symbols to work. # No clue how much overhead this adds, but it's useful # to do this on any assertion failure, # so for now it's enabled anytime asserts are (currently not # in production builds). # To get -rdynamic you pass -export-dynamic to libtool. AC_DEFINE(DBUS_BUILT_R_DYNAMIC,1,[whether -export-dynamic was passed to libtool]) R_DYNAMIC_LDFLAG=-export-dynamic fi So run ./configure --enable-asserts Just my guess; didn't try it. So you don't need to set CFLAGS. It's actually LDFLAGS, but configure is supposed to do it for you with the right switch. Oh btw, make sure you don't strip the binaries... |
All times are GMT -5. The time now is 01:51 AM. |