GNU bug report logs - #8520
Missing glibconfig.h when compiling emacs-23-3 in Ubuntu 11.04 beta 2

Previous Next

Package: emacs;

Reported by: William Bligh <kaptajnbligh <at> gmail.com>

Date: Mon, 18 Apr 2011 16:10:03 UTC

Severity: normal

Merged with 8497, 8543, 8637, 8673, 8808

Found in version 23.3

Fixed in version 24.1

Done: Eli Zaretskii <eliz <at> gnu.org>

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 8520 in the body.
You can then email your comments to 8520 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8520; Package emacs. (Mon, 18 Apr 2011 16:10:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to William Bligh <kaptajnbligh <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 18 Apr 2011 16:10:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: William Bligh <kaptajnbligh <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Missing glibconfig.h when compiling emacs-23-3 in Ubuntu 11.04 beta 2
Date: Mon, 18 Apr 2011 15:40:50 +0200
$ ./configure --with-x-toolkit=gtk
...
$ make

Gives this error:

gcc -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H  -I.
-I/home/jesper/Downloads/emacs-23.3/src -D_BSD_SOURCE -pthread
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/1
-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1
-I/usr/include/freetype2     -g -O2 -Wdeclaration-after-statement
-Wno-pointer-sign   -MMD -MF deps/dispnew.d dispnew.c
In file included from /usr/include/glib-2.0/glib/galloca.h:34:0,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:25,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from xterm.h:44,
                 from dispnew.c:56:
/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h:
No such file or directory
compilation terminated.
make[1]: *** [dispnew.o] Error 1
make[1]: Leaving directory `/home/jesper/Downloads/emacs-23.3/src'
make: *** [src] Error 2

However, glibconfig.h is on my system:

$ locate glibconfig.h
/usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h

and pkg-config gives the correct location

$ pkg-config --cflags glib-2.0
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include

Somehow the cflags doesn't get propagated correctly to the Makefile in src/

Not an autotools expert, so I have no idea how to fix this.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8520; Package emacs. (Mon, 18 Apr 2011 18:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 8520 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: William Bligh <kaptajnbligh <at> gmail.com>
Cc: 8520 <at> debbugs.gnu.org
Subject: Re: bug#8520: Missing glibconfig.h when compiling emacs-23-3 in
	Ubuntu 11.04 beta 2
Date: Mon, 18 Apr 2011 14:38:36 -0400
William Bligh wrote:

> -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/1
> -linux-gnu/glib-2.0/include -I/usr/include/freetype2

Note missing "i386".

This is http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8497 

You can work around it by adding "i386" after "unix" in the definition
of cpp_undefs at line 3106 of configure.in and regenerating configure,
or editing configure directly at line 13527, and reconfiguring; or maybe
by simply fixing ALL_CFLAGS in src/Makefile before building.

cpp_undefs="`echo $srcdir $configuration $canonical unix i386 |

etc




Forcibly Merged 8497 8520. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 18 Apr 2011 18:40:02 GMT) Full text and rfc822 format available.

Forcibly Merged 8497 8520 8543. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 24 Apr 2011 21:22:02 GMT) Full text and rfc822 format available.

Forcibly Merged 8497 8520 8543 8637. Request was from Sven Joachim <svenjoac <at> gmx.de> to control <at> debbugs.gnu.org. (Sun, 08 May 2011 18:05:03 GMT) Full text and rfc822 format available.

Forcibly Merged 8497 8520 8543 8637 8673. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 14 May 2011 22:25:02 GMT) Full text and rfc822 format available.

Forcibly Merged 8497 8520 8543 8637 8673 8808. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 06 Jun 2011 06:38:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Jul 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 351 days ago.

Previous Next


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