GNU bug report logs - #4202
23.0.60; CVS emacs fails to build with D-Bus support (newer version needed)

Previous Next

Package: emacs;

Reported by: Tim Van Holder <tim.vanholder <at> gmail.com>

Date: Thu, 20 Aug 2009 20:34:51 UTC

Severity: normal

Merged with 4185

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4202 in the body.
You can then email your comments to 4202 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4202; Package emacs. (Thu, 20 Aug 2009 20:34:52 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Van Holder <tim.vanholder <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 20 Aug 2009 20:34:52 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tim Van Holder <tim.vanholder <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; CVS emacs fails to build with D-Bus support (newer version needed)
Date: Wed, 19 Aug 2009 16:08:56 +0200
Current CVS emacs fails to build on my (admittedly outdated) Debian system:

dbusbind.o: In function `xd_remove_watch':
/home/tim/gnu/src/emacs/src/dbusbind.c:766: undefined reference to `dbus_watch_get_unix_fd'
/home/tim/gnu/src/emacs/src/dbusbind.c:768: undefined reference to `dbus_watch_get_socket'
dbusbind.o: In function `xd_add_watch':
/home/tim/gnu/src/emacs/src/dbusbind.c:741: undefined reference to `dbus_watch_get_unix_fd'
/home/tim/gnu/src/emacs/src/dbusbind.c:743: undefined reference to `dbus_watch_get_socket'

My guess is those are from a newer version of D-Bus; configure finds
version 1.x on my system:

checking for pkg-config... (cached) /usr/bin/pkg-config
checking for dbus-1 >= 1.0... yes
checking DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
checking DBUS_LIBS... -ldbus-1
checking for pkg-config... (cached) /usr/bin/pkg-config

So either those functions should only be used if a newer d-bus is found,
or, if they're needed, configure should look for the minimum version
required (and either error out or just disable dbus support).

Building using --without-dbus works fine of course, and I'm not sure I
even ever used D-Bus support (not consciously anyway); but the build
still should not fail (especially since I didn't actively enable the
dbus support in the first place).



Merged 4185 4202. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 21 Aug 2009 01:15:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4202; Package emacs. (Fri, 21 Aug 2009 06:55:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Albinus <michael.albinus <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 21 Aug 2009 06:55:11 GMT) Full text and rfc822 format available.

Message #12 received at 4202 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tim Van Holder <tim.vanholder <at> gmail.com>
Cc: 4202 <at> debbugs.gnu.org
Subject: Re: bug#4202: 23.0.60; CVS emacs fails to build with D-Bus support (newer version needed)
Date: Fri, 21 Aug 2009 08:50:18 +0200
Tim Van Holder <tim.vanholder <at> gmail.com> writes:

> Current CVS emacs fails to build on my (admittedly outdated) Debian
> system:

Are you sure, that 23.0.60 is a "current CVS emacs"?

> dbusbind.o: In function `xd_remove_watch':
> /home/tim/gnu/src/emacs/src/dbusbind.c:766: undefined reference to `dbus_watch_get_unix_fd'
> /home/tim/gnu/src/emacs/src/dbusbind.c:768: undefined reference to `dbus_watch_get_socket'
> dbusbind.o: In function `xd_add_watch':
> /home/tim/gnu/src/emacs/src/dbusbind.c:741: undefined reference to `dbus_watch_get_unix_fd'
> /home/tim/gnu/src/emacs/src/dbusbind.c:743: undefined reference to `dbus_watch_get_socket'
>
> My guess is those are from a newer version of D-Bus; configure finds
> version 1.x on my system:
>
> checking for pkg-config... (cached) /usr/bin/pkg-config
> checking for dbus-1 >= 1.0... yes
> checking DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> checking DBUS_LIBS... -ldbus-1
> checking for pkg-config... (cached) /usr/bin/pkg-config
>
> So either those functions should only be used if a newer d-bus is found,
> or, if they're needed, configure should look for the minimum version
> required (and either error out or just disable dbus support).

Both functions have been added in D-Bus 1.1.1. I've committed a fix,
which checks the availability of these functions.

Best regards, Michael.



Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Fri, 21 Aug 2009 13:15:06 GMT) Full text and rfc822 format available.

Notification sent to Tim Van Holder <tim.vanholder <at> gmail.com>:
bug acknowledged by developer. (Fri, 21 Aug 2009 13:15:06 GMT) Full text and rfc822 format available.

Message #17 received at 4202-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tim Van Holder <tim.vanholder <at> gmail.com>
Cc: <4202-done <at> debbugs.gnu.org>
Subject: Re: bug#4202: 23.0.60; CVS emacs fails to build with D-Bus support (newer version needed)
Date: Fri, 21 Aug 2009 15:08:34 +0200
Tim Van Holder <tim.vanholder <at> gmail.com> writes:

> Ah I see - because the rebuild failed, the emacs picked up from the
> path was an older build, so report-emacs-bug put in a misleading
> version number. Didn't think of that.
>
> I just rebuilt emacs with dbus support reenabled, and it links fine
> now, so it looks like your fix worked.

Thanks for reporting. I'll close the ticket now.

Best regards, Michael.



Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Fri, 21 Aug 2009 13:15:07 GMT) Full text and rfc822 format available.

Notification sent to jpff <jpff <at> codemist.co.uk>:
bug acknowledged by developer. (Fri, 21 Aug 2009 13:15:07 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 18 Sep 2009 14:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.