GNU bug report logs - #17118
24.3 build on Centos 6.5: undefined ref to `g_settings_get_value

Previous Next

Package: emacs;

Reported by: Klaus.Zeitler <at> alcatel-lucent.com

Date: Thu, 27 Mar 2014 11:29:02 UTC

Severity: important

Merged with 17435

Found in version 24.3

Fixed in version 24.4

Done: Jan Djärv <jan.h.d <at> swipnet.se>

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 17118 in the body.
You can then email your comments to 17118 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-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Thu, 27 Mar 2014 11:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Klaus.Zeitler <at> alcatel-lucent.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Mar 2014 11:29:02 GMT) Full text and rfc822 format available.

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

From: Klaus Zeitler <Klaus.Zeitler <at> alcatel-lucent.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
Date: Thu, 27 Mar 2014 12:27:52 +0100
I'm trying to build emacs on my Centos 6.5 PC
(Linux destgd0h411156 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16
18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux).

I simply ran "configure --prefix=..." and then "make", but make fails
with linker errors for temacs:

--- snip ---

gcc -std=gnu99 -nostdlib -Demacs  -I. -I/opt/kze/emacs-24.3/src -I../lib -I/opt/kze/emacs-24.3/src/../lib   -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/freetype2         -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/freetype2      -MMD -MF deps/.d -MP     -g3 -O2   -Wl,-znocombreloc  \
          -o temacs pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o gtkutil.o   emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o profiler.o     xfont.o ftfont.o xftfont.o ftxfont.o  fontset.o fringe.o image.o  terminfo.o lastfile.o    vm-limit.o   ../lib/libgnu.a      -ltiff -ljpeg -lpng -lz -lm -lgif -lXpm -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lSM -lICE -lX11 -lXrender -lXft      -lrt -lrt        -ltinfo  -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -pthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0    -lfreetype   -lfontconfig      -lpthread   -lm -lgcc -lc -lgcc /usr/lib64/crtn.o 
xsettings.o: In function `something_changed_gsettingsCB':
/opt/kze/emacs-24.3/src/xsettings.c:215: undefined reference to `g_settings_get_value'
/opt/kze/emacs-24.3/src/xsettings.c:230: undefined reference to `g_settings_get_value'
/opt/kze/emacs-24.3/src/xsettings.c:244: undefined reference to `g_settings_get_value'
xsettings.o: In function `init_gsettings':
/opt/kze/emacs-24.3/src/xsettings.c:816: undefined reference to `g_settings_list_schemas'
/opt/kze/emacs-24.3/src/xsettings.c:822: undefined reference to `g_settings_new'
/opt/kze/emacs-24.3/src/xsettings.c:828: undefined reference to `g_settings_get_value'
/opt/kze/emacs-24.3/src/xsettings.c:839: undefined reference to `g_settings_get_value'
/opt/kze/emacs-24.3/src/xsettings.c:848: undefined reference to `g_settings_get_value'
collect2: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/opt/kze/emacs-24.3/src'
make: *** [src] Error 2

--- snip ---

-- 
 -------------------------------------------------------------------
|  Klaus Zeitler              Alcatel-Lucent                        |
|  Lorenzstrasse 10           D-70435 Stuttgart, Germany            |
|  Department:                MS/E Building: 004  Office: 1/62      |
|  Telefon:                   +49 711 821 43898                     |
|  Email:                     klaus.zeitler <at> alcatel-lucent.com      |
|                                                                   |
| Alcatel-Lucent Deutschland AG                                     |
| Sitz der Gesellschaft: Stuttgart · Amtsgericht Stuttgart HRB 4026 |
| Vorsitzender des Aufsichtsrates: Michael Oppenhoff                |
| Vorstand: Wilhelm Dresselhaus (Chairman) · Hans-Jörg Daub ·       |
|           Andreas Gehe                                            |
 -------------------------------------------------------------------
---
Issawi's Laws of Progress:
 The Course of Progress: Most things get steadily worse.
 The Path of Progress: A shortcut is the longest distance between two points.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Thu, 27 Mar 2014 16:00:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Klaus.Zeitler <at> alcatel-lucent.com
Cc: 17118 <at> debbugs.gnu.org
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Thu, 27 Mar 2014 11:59:04 -0400
Klaus Zeitler wrote:

> I'm trying to build emacs on my Centos 6.5 PC
> (Linux destgd0h411156 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16
> 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux).
>
> I simply ran "configure --prefix=..." and then "make", but make fails
> with linker errors for temacs:
[...]
> xsettings.o: In function `something_changed_gsettingsCB':
> /opt/kze/emacs-24.3/src/xsettings.c:215: undefined reference to `g_settings_get_value'

Please see my explanation here:

http://lists.gnu.org/archive/html/help-gnu-emacs/2014-03/msg00503.html

Red Hat has taken the unusual step of ripping out the gsettings related
parts of their glib library. So they have something that advertises
itself as gio 2.26.1, but does not include gsettings.

I think this is an odd thing to do. I encourage anyone with a RH
subscription to report it as a bug against glib2-devel.

In Emacs, you can work around it by using configure --without-gsettings.

But Emacs should add a configure test to check that gsettings is really
present. I tried to do this by simply testing for gio/gsettings.h, but
sadly you can't include that header directly, it throws an error if not
included via gio/gio.h.




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Sat, 29 Mar 2014 12:11:02 GMT) Full text and rfc822 format available.

Notification sent to Klaus.Zeitler <at> alcatel-lucent.com:
bug acknowledged by developer. (Sat, 29 Mar 2014 12:11:02 GMT) Full text and rfc822 format available.

Message #13 received at 17118-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Glenn Morris <rgm <at> gnu.org>, Klaus.Zeitler <at> alcatel-lucent.com
Cc: 17118-done <at> debbugs.gnu.org
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Sat, 29 Mar 2014 13:10:35 +0100
Hello.

I have added a configure check for this in the trunk.

	Jan D.

2014-03-27 16:59, Glenn Morris skrev:
> Klaus Zeitler wrote:
>
>> I'm trying to build emacs on my Centos 6.5 PC
>> (Linux destgd0h411156 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16
>> 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux).
>>
>> I simply ran "configure --prefix=..." and then "make", but make fails
>> with linker errors for temacs:
> [...]
>> xsettings.o: In function `something_changed_gsettingsCB':
>> /opt/kze/emacs-24.3/src/xsettings.c:215: undefined reference to `g_settings_get_value'
>
> Please see my explanation here:
>
> http://lists.gnu.org/archive/html/help-gnu-emacs/2014-03/msg00503.html
>
> Red Hat has taken the unusual step of ripping out the gsettings related
> parts of their glib library. So they have something that advertises
> itself as gio 2.26.1, but does not include gsettings.
>
> I think this is an odd thing to do. I encourage anyone with a RH
> subscription to report it as a bug against glib2-devel.
>
> In Emacs, you can work around it by using configure --without-gsettings.
>
> But Emacs should add a configure test to check that gsettings is really
> present. I tried to do this by simply testing for gio/gsettings.h, but
> sadly you can't include that header directly, it throws an error if not
> included via gio/gio.h.
>
>





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Sat, 29 Mar 2014 19:39:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Klaus.Zeitler <at> alcatel-lucent.com, 17118 <at> debbugs.gnu.org
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Sat, 29 Mar 2014 15:38:35 -0400
Jan Djärv wrote:

> I have added a configure check for this in the trunk.

Thank you. I think it should be in the emacs-24 branch. What do you think?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Sat, 29 Mar 2014 23:02:02 GMT) Full text and rfc822 format available.

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

From: "Jan D." <jan.h.d <at> swipnet.se>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "Klaus.Zeitler <at> alcatel-lucent.com" <Klaus.Zeitler <at> alcatel-lucent.com>,
 "17118 <at> debbugs.gnu.org" <17118 <at> debbugs.gnu.org>
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Sun, 30 Mar 2014 00:01:42 +0100
Hello.

> 29 mar 2014 kl. 20:38 skrev Glenn Morris <rgm <at> gnu.org>:
> 
> Jan Djärv wrote:
> 
>> I have added a configure check for this in the trunk.
> 
> Thank you. I think it should be in the emacs-24 branch. What do you think?

There is a workaround (--without-gsettings) so it is not critical. It only affects RHEL/CentOS. It is not a regression either.  So no.

     Jan D.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Sat, 29 Mar 2014 23:27:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: "Jan D." <jan.h.d <at> swipnet.se>
Cc: "Klaus.Zeitler <at> alcatel-lucent.com" <Klaus.Zeitler <at> alcatel-lucent.com>,
 "17118 <at> debbugs.gnu.org" <17118 <at> debbugs.gnu.org>
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Sat, 29 Mar 2014 19:26:13 -0400
"Jan D." wrote:

>> Thank you. I think it should be in the emacs-24 branch. What do you think?
>
> There is a workaround (--without-gsettings) so it is not critical. It only affects RHEL/CentOS. It is not a regression either.  So no.

Well, emacs-24 is not in the "regression only" stage yet.
It hasn't even started pretesting.
By the time 24.5 is out, RHEL7 probably will be, and this won't even be
relevant any more.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Sun, 30 Mar 2014 10:46:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "Klaus.Zeitler <at> alcatel-lucent.com" <Klaus.Zeitler <at> alcatel-lucent.com>,
 "17118 <at> debbugs.gnu.org" <17118 <at> debbugs.gnu.org>
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Sun, 30 Mar 2014 12:45:19 +0200
Hello.

2014-03-30 00:26, Glenn Morris skrev:
> "Jan D." wrote:
>
>>> Thank you. I think it should be in the emacs-24 branch. What do you think?
>>
>> There is a workaround (--without-gsettings) so it is not critical. It only affects RHEL/CentOS. It is not a regression either.  So no.
>
> Well, emacs-24 is not in the "regression only" stage yet.
> It hasn't even started pretesting.
> By the time 24.5 is out, RHEL7 probably will be, and this won't even be
> relevant any more.
>

Ok, I backported it to emacs-24.

	Jan D.





bug Marked as fixed in versions 24.4. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 30 Mar 2014 18:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Sun, 30 Mar 2014 18:33:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: "Klaus.Zeitler <at> alcatel-lucent.com" <Klaus.Zeitler <at> alcatel-lucent.com>,
 "17118 <at> debbugs.gnu.org" <17118 <at> debbugs.gnu.org>
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Sun, 30 Mar 2014 14:32:49 -0400
Thanks. Potentially dumb question:
Do you not have to temporarily add GSETTINGS_CFLAGS etc to CFLAGS while
you test for gsettings?

Also, isn't this double "$$" wrong:

   if test "$$GSETTINGS_COMPILES" = "yes"; then




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17118; Package emacs. (Mon, 31 Mar 2014 06:11:03 GMT) Full text and rfc822 format available.

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

From: "Jan D." <jan.h.d <at> swipnet.se>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "Klaus.Zeitler <at> alcatel-lucent.com" <Klaus.Zeitler <at> alcatel-lucent.com>,
 "17118 <at> debbugs.gnu.org" <17118 <at> debbugs.gnu.org>
Subject: Re: bug#17118: 24.3 build on Centos 6.5: undefined ref to
 `g_settings_get_value
Date: Mon, 31 Mar 2014 08:10:10 +0200
Hello.

Glenn Morris skrev 2014-03-30 20:32:
>
> Thanks. Potentially dumb question:
> Do you not have to temporarily add GSETTINGS_CFLAGS etc to CFLAGS while
> you test for gsettings?
>
> Also, isn't this double "$$" wrong:
>
>     if test "$$GSETTINGS_COMPILES" = "yes"; then
>

My mistake.  I have fixed these.  But when I fixed it, I did it in the 
trunk first.  Maybe I should take a vacation...

	Jan D.





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

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 07 May 2014 19:47:02 GMT) Full text and rfc822 format available.

Forcibly Merged 17118 17435. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 07 May 2014 19:47: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. (Thu, 05 Jun 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 319 days ago.

Previous Next


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