* Compilation of src/xsettings.c fails when configured with --without_gsettings
@ 2022-05-14 18:27 wilde
2022-05-14 19:44 ` Pieter van Prooijen
0 siblings, 1 reply; 2+ messages in thread
From: wilde @ 2022-05-14 18:27 UTC (permalink / raw)
To: emacs-devel; +Cc: Pieter van Prooijen
Hi *,
When HAVE_GSETTINGS is not defined (e.g. --without-gsettings
configuration option), but HAVE_PGTK is defined, then compilation of
src/xsettings.c fails with:
../../src/xsettings.c: In function ‘xsettings_get_font_options’:
../../src/xsettings.c:1163:35: error: ‘font_options’ undeclared (first use in this function)
1163 | return cairo_font_options_copy (font_options);
| ^~~~~~~~~~~~
../../src/xsettings.c:1163:35: note: each undeclared identifier is reported only once for each function it appears in
../../src/xsettings.c: In function ‘syms_of_xsettings’:
../../src/xsettings.c:1220:3: error: ‘font_options’ undeclared (first use in this function)
1220 | font_options = NULL;
| ^~~~~~~~~~~~
This happens due to the fact that: `font_options' is declared in L.231 which is guarded by
#ifdef HAVE_GSETTINGS
in L.209.
This was problem was most likely introduced with:
commit 526e9758de7d163ce3b25fde69a4e122ce9c3742
Author: Pieter van Prooijen <pieter.van.prooijen@teloden.nl>
Date: Sun May 8 16:27:38 2022 +0200
Use gsettings font rendering entries for pgtk builds
cheers,
sascha
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compilation of src/xsettings.c fails when configured with --without_gsettings
2022-05-14 18:27 Compilation of src/xsettings.c fails when configured with --without_gsettings wilde
@ 2022-05-14 19:44 ` Pieter van Prooijen
0 siblings, 0 replies; 2+ messages in thread
From: Pieter van Prooijen @ 2022-05-14 19:44 UTC (permalink / raw)
To: wilde, emacs-devel
Hi Sascha,
It looks like my gsettings font changes needs some extra ifdef guards
to handle this case. I'll create a bug and patch for this in bug-gnu-
emacs.
Thanks,
Pieter
On Sat, 2022-05-14 at 20:27 +0200, wilde@sha-bang.de wrote:
> Hi *,
>
> When HAVE_GSETTINGS is not defined (e.g. --without-gsettings
> configuration option), but HAVE_PGTK is defined, then compilation of
> src/xsettings.c fails with:
>
> ../../src/xsettings.c: In function ‘xsettings_get_font_options’:
> ../../src/xsettings.c:1163:35: error: ‘font_options’ undeclared
> (first use in this function)
> 1163 | return cairo_font_options_copy (font_options);
> | ^~~~~~~~~~~~
> ../../src/xsettings.c:1163:35: note: each undeclared identifier is
> reported only once for each function it appears in
> ../../src/xsettings.c: In function ‘syms_of_xsettings’:
> ../../src/xsettings.c:1220:3: error: ‘font_options’ undeclared (first
> use in this function)
> 1220 | font_options = NULL;
> | ^~~~~~~~~~~~
>
> This happens due to the fact that: `font_options' is declared in
> L.231 which is guarded by
> #ifdef HAVE_GSETTINGS
> in L.209.
>
> This was problem was most likely introduced with:
>
> commit 526e9758de7d163ce3b25fde69a4e122ce9c3742
> Author: Pieter van Prooijen <pieter.van.prooijen@teloden.nl>
> Date: Sun May 8 16:27:38 2022 +0200
>
> Use gsettings font rendering entries for pgtk builds
>
> cheers,
> sascha
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-14 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-14 18:27 Compilation of src/xsettings.c fails when configured with --without_gsettings wilde
2022-05-14 19:44 ` Pieter van Prooijen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).