as talked with seb128 and pitti, I did a trial building after renaming these functions to local_*. gvfs-mount exited immediately with the error message below:
$ gvfs-mount obex://[00:1f:5c:01:ac:64]
Error mounting location: DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Note this happened almost immediately, and followed by a crash report of gvfsd-obexftp, title of which being:
"gvfsd-obexftp crashed with SIGSEGV in _dbus_message_new_from_gerror()
2. Confirmed that making libgvfsdaemon statically linked is enough to solve this issue. Attached is the minimal change I used.
I did some more testings:
1. checked the source, there are two libdbus-glib functions locally implemented in daemon/ dbus-gmain. c, which are
- dbus_connection _setup_ with_g_ main setup_with_ g_main
- dbus_server_
as talked with seb128 and pitti, I did a trial building after renaming these functions to local_*. gvfs-mount exited immediately with the error message below:
$ gvfs-mount obex:// [00:1f: 5c:01:ac: 64] .DBus.Error. NoReply: Message did not receive a reply (timeout by message bus)
Error mounting location: DBus error org.freedesktop
Note this happened almost immediately, and followed by a crash report of gvfsd-obexftp, title of which being: new_from_ gerror( )
"gvfsd-obexftp crashed with SIGSEGV in _dbus_message_
2. Confirmed that making libgvfsdaemon statically linked is enough to solve this issue. Attached is the minimal change I used.