all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
@ 2014-03-27 11:27 Klaus Zeitler
  2014-03-27 15:59 ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Klaus Zeitler @ 2014-03-27 11:27 UTC (permalink / raw
  To: 17118

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@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-27 11:27 bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value Klaus Zeitler
@ 2014-03-27 15:59 ` Glenn Morris
  2014-03-29 12:10   ` Jan Djärv
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-03-27 15:59 UTC (permalink / raw
  To: Klaus.Zeitler; +Cc: 17118

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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-27 15:59 ` Glenn Morris
@ 2014-03-29 12:10   ` Jan Djärv
  2014-03-29 19:38     ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Djärv @ 2014-03-29 12:10 UTC (permalink / raw
  To: Glenn Morris, Klaus.Zeitler; +Cc: 17118-done

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.
>
>






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-29 12:10   ` Jan Djärv
@ 2014-03-29 19:38     ` Glenn Morris
  2014-03-29 23:01       ` Jan D.
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-03-29 19:38 UTC (permalink / raw
  To: Jan Djärv; +Cc: Klaus.Zeitler, 17118

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?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-29 19:38     ` Glenn Morris
@ 2014-03-29 23:01       ` Jan D.
  2014-03-29 23:26         ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Jan D. @ 2014-03-29 23:01 UTC (permalink / raw
  To: Glenn Morris; +Cc: Klaus.Zeitler@alcatel-lucent.com, 17118@debbugs.gnu.org

Hello.

> 29 mar 2014 kl. 20:38 skrev Glenn Morris <rgm@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.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-29 23:01       ` Jan D.
@ 2014-03-29 23:26         ` Glenn Morris
  2014-03-30 10:45           ` Jan Djärv
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-03-29 23:26 UTC (permalink / raw
  To: Jan D.; +Cc: Klaus.Zeitler@alcatel-lucent.com, 17118@debbugs.gnu.org

"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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-29 23:26         ` Glenn Morris
@ 2014-03-30 10:45           ` Jan Djärv
  2014-03-30 18:32             ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Djärv @ 2014-03-30 10:45 UTC (permalink / raw
  To: Glenn Morris; +Cc: Klaus.Zeitler@alcatel-lucent.com, 17118@debbugs.gnu.org

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.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-30 10:45           ` Jan Djärv
@ 2014-03-30 18:32             ` Glenn Morris
  2014-03-31  6:10               ` Jan D.
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-03-30 18:32 UTC (permalink / raw
  To: Jan Djärv; +Cc: Klaus.Zeitler@alcatel-lucent.com, 17118@debbugs.gnu.org


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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value
  2014-03-30 18:32             ` Glenn Morris
@ 2014-03-31  6:10               ` Jan D.
  0 siblings, 0 replies; 9+ messages in thread
From: Jan D. @ 2014-03-31  6:10 UTC (permalink / raw
  To: Glenn Morris; +Cc: Klaus.Zeitler@alcatel-lucent.com, 17118@debbugs.gnu.org

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.






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-31  6:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 11:27 bug#17118: 24.3 build on Centos 6.5: undefined ref to `g_settings_get_value Klaus Zeitler
2014-03-27 15:59 ` Glenn Morris
2014-03-29 12:10   ` Jan Djärv
2014-03-29 19:38     ` Glenn Morris
2014-03-29 23:01       ` Jan D.
2014-03-29 23:26         ` Glenn Morris
2014-03-30 10:45           ` Jan Djärv
2014-03-30 18:32             ` Glenn Morris
2014-03-31  6:10               ` Jan D.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.