Re: build fails: pango_cairo_font_map_set_default() not declared

Ethan A Merritt <[email protected]> Sun, 01 Dec 2024 21:10:24 -0800
Newsgroups gmane.comp.graphics.gnuplot.devel
Organization University of Washington
Message-ID <7744294.EvYhyI6sBW@stonelion>
On Sunday, 1 December 2024 20:39:05 PST Jun T wrote:

Applied. Thanks.

> After the commit:
> 
> commit 35643d86af5f41011723c7363172628283c0b96d
>     wxt: release per-thread font data structures before forking
> 
> build fails on my Mac (with clang) as:
> wxterminal/wxt_gui.cpp:3868:3: error: use of undeclared identifier 'pango_cairo_font_map_set_default'
> 
> We need to include <pango/pangocairo.h> either in wxt_gui.cpp (as in
> the patch below) or in wxt_gui.h (whichever you prefer).
> 
> 
> diff --git a/src/wxterminal/wxt_gui.cpp b/src/wxterminal/wxt_gui.cpp
> index 2cd096f01..35528e2cb 100644
> --- a/src/wxterminal/wxt_gui.cpp
> +++ b/src/wxterminal/wxt_gui.cpp
> @@ -129,6 +129,9 @@ extern "C" {
>  #ifdef HAVE_SYS_SELECT_H
>  # include <sys/select.h>
>  #endif
> +#ifdef HAVE_WORKING_FORK
> +# include <pango/pangocairo.h>	// for pango_cairo_font_map_set_default()
> +#endif
>  }
>  
>  /* Interactive toggle control variables
> 
> 
> 
> 
> _______________________________________________
> gnuplot-beta mailing list
> [email protected]
> Membership management via: https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/gnuplot-beta__;!!K-Hz7m0Vt54!mxrckcjoWwlBc2lLsGWcarM6eKyjY6vbi-He9_m62jldT9Pg9v11CzSDtz6mjPaFe22f7UtYjVkhwYoF3CX69bAJJWo$ 
> 


-- 
Ethan A Merritt
Department of Biochemistry
University of Washington, Seattle




_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta