dbus-daemon segfault under Solaris

Ralf Habacker ralf.habacker at freenet.de
Fri Dec 17 07:59:06 PST 2010


Am 17.12.2010 11:37, schrieb Pavel Strashkin:
> Hello,
>
> After successfull compiling dbus-1.4.0 under Solari and trying to run
> dbus-daemon i've got segfault. Somewhere i saw that the reason is in
> "--gc-sections" flag so i've commented the following lines in
> configure.in:
>
> ==BEG==
> 1265 #if ld_supports_flag --gc-sections; then
> 1266 #  SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
> 1267 #  CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
> 1268 #fi
> ==END
>
> and recompiled dbus again...and success - dbus-daemon works fine.
  these lines should be excluded on solaris - probably with something like

case $host_os in
    solaris*)
         ;;
     *)

     if ld_supports_flag --gc-sections; then
       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
       CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
     fi
     ;;

esac

Please  test if this change works as expected and send in a related patch


Regards
  Ralf




More information about the dbus mailing list