Skip to content

Variables not declared in scope during CentOS7 install #149

@stephenashton-dhsc

Description

@stephenashton-dhsc

Hi,

I'm trying to install systemfonts on CentOS7 and it is failing due to variables not being declared - namely FT_ENCODING_PRC and FT_Done_MM_Var.

From what I can tell, I'm running v20.0.14 of freetype2 and and v2.13.0 of fontconfig.

If you need any other system information, please let me know.

* installing *source* package ‘systemfonts’ ...
** package ‘systemfonts’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15  
Using PKG_LIBS=-lfontconfig -lfreetype  
** libs
using C++ compiler: ‘g++ (GCC) 13.2.0’
rm -f systemfonts.so caches.o cpp11.o dev_metrics.o font_matching.o font_local.o font_variation.o font_registry.o ft_cache.o string_shape.o font_metrics.o font_outlines.o font_fallback.o string_metrics.o emoji.o cache_store.o init.o unix/FontManagerLinux.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c caches.cpp -o caches.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c cpp11.cpp -o cpp11.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c dev_metrics.cpp -o dev_metrics.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c font_matching.cpp -o font_matching.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c font_local.cpp -o font_local.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c font_variation.cpp -o font_variation.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c font_registry.cpp -o font_registry.o
g++ -std=gnu++17 -I"/usr/local/packages/R/4.3.2/lib64/R/include" -DNDEBUG -I/usr/local/packages/zlib/1.2.11/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15   -I'/data/users/hemt/R-library/cpp11/include' -I/usr/local/include    -fpic  -g -O2  -c ft_cache.cpp -o ft_cache.o
ft_cache.cpp: In function ‘std::string enc_to_string(FT_Encoding_)’:
ft_cache.cpp:218:10: error: ‘FT_ENCODING_PRC’ was not declared in this scope; did you mean ‘FT_ENCODING_SJIS’?
  218 |     case FT_ENCODING_PRC: return "prc";
      |          ^~~~~~~~~~~~~~~
      |          FT_ENCODING_SJIS
ft_cache.cpp: In member function ‘FontFaceInfo FreetypeCache::font_info()’:
ft_cache.cpp:286:7: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’?
  286 |       FT_Done_MM_Var(library, variations);
      |       ^~~~~~~~~~~~~~
      |       FT_Get_MM_Var
ft_cache.cpp: In member function ‘std::vector<VariationInfo> FreetypeCache::cur_axes()’:
ft_cache.cpp:450:3: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’?
  450 |   FT_Done_MM_Var(library, variations);
      |   ^~~~~~~~~~~~~~
      |   FT_Get_MM_Var
ft_cache.cpp: In member function ‘void FreetypeCache::has_axes(bool&, bool&, bool&)’:
ft_cache.cpp:470:5: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’?
  470 |     FT_Done_MM_Var(library, variations);
      |     ^~~~~~~~~~~~~~
      |     FT_Get_MM_Var
ft_cache.cpp: In member function ‘int FreetypeCache::n_axes()’:
ft_cache.cpp:483:5: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’?
  483 |     FT_Done_MM_Var(library, variations);
      |     ^~~~~~~~~~~~~~
      |     FT_Get_MM_Var
ft_cache.cpp: In member function ‘bool FreetypeCache::is_variable()’:
ft_cache.cpp:494:5: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’?
  494 |     FT_Done_MM_Var(library, variations);
      |     ^~~~~~~~~~~~~~
      |     FT_Get_MM_Var
ft_cache.cpp: In member function ‘void FreetypeCache::set_axes(const int*, const int*, size_t)’:
ft_cache.cpp:539:3: error: ‘FT_Done_MM_Var’ was not declared in this scope; did you mean ‘FT_Get_MM_Var’?
  539 |   FT_Done_MM_Var(library, variations);
      |   ^~~~~~~~~~~~~~
      |   FT_Get_MM_Var
make: *** [ft_cache.o] Error 1
ERROR: compilation failed for package ‘systemfonts’
* removing ‘/data/users/hemt/R-library/systemfonts’
* restoring previous ‘/data/users/hemt/R-library/systemfonts’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions