After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322436 - Build failure using latest DBUS
Build failure using latest DBUS
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: general
1.2.x
Other Linux
: Normal blocker
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-11-25 14:53 UTC by Luca Ferretti
Modified: 2005-11-28 18:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
totem-new-dbus.patch (638 bytes, patch)
2005-11-26 13:33 UTC, Bastien Nocera
none Details | Review

Description Luca Ferretti 2005-11-25 14:53:08 UTC
totem-mozilla-viewer.c:74: warning: no previous prototype for
‘totem_embedded_get_type’totem-mozilla-viewer.c: In function ‘main’:
totem-mozilla-viewer.c:505: error: ‘DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT’
undeclared (first use in this function)
totem-mozilla-viewer.c:505: error: (Each undeclared identifier is reported only once
totem-mozilla-viewer.c:505: error: for each function it appears in.)
make[4]: *** [totem-mozilla-viewer.o] Error 1
make[4]: Leaving directory `/home/luca/tmp/cvs/gnome2/totem/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/luca/tmp/cvs/gnome2/totem/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/luca/tmp/cvs/gnome2/totem/src'
make[1]: *** [all-recursive] Error 1

It seems related to a change in DBUS:

2005-11-22  John (J5) Palmieri  <johnp@redhat.com>

        * configure.in: Add test/name-test/Makefile to the generated
        Makefile list

        * dbus/dbus-shared.h (#define DBUS_NAME_FLAG_ALLOW_REPLACEMENT):
        New flag which replaces DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT
        (#define DBUS_NAME_FLAG_DO_NOT_QUEUE): New flag for specifying
        not to queue an ower if it can't be the primary owne
Comment 1 Luca Ferretti 2005-11-25 20:15:24 UTC
Forgot to mention:

2005-11-22  John (J5) Palmieri  <johnp@redhat.com>

        * configure.in:
        - Change version to 0.60 for impending release
        - upped the sonames because of ABI and API breakage
Comment 2 Bastien Nocera 2005-11-26 13:33:31 UTC
Created attachment 55252 [details] [review]
totem-new-dbus.patch
Comment 3 Bastien Nocera 2005-11-26 13:37:22 UTC
I guess that DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT is the new "default", and we
should simply ignore its use if it doesn't exist. Is this right?
Comment 4 Luca Ferretti 2005-11-26 13:57:16 UTC
Dunno, but gnome-power-manager has the same issue (see bug #322435).

By now I still have to make my fresh jhbuild install works with DBUS, so I can't
really test it (compilation only)
Comment 5 Richard Hughes 2005-11-26 14:03:23 UTC
>I guess that DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT is the new "default", and we
>should simply ignore its use if it doesn't exist. Is this right?

Yes, just replace it with 0. See
http://bugzilla.gnome.org/attachment.cgi?id=55247&action=view

Richard.
Comment 6 Bastien Nocera 2005-11-28 18:37:34 UTC
Committed to gnome-2-12 and HEAD

2005-11-28  Bastien Nocera  <hadess@hadess.net>

        * src/totem-mozilla-viewer.c: fix compilation with newer versions of
        D-Bus (Closes: #322436)