Hi. I was in the middle of pango's building process when the compilation was interrupted with the following error messages:
Code:
/media/34GB/Arquivos-de-Programas-Linux/Harfbuzz-1.4.2/lib/libharfbuzz.so: undefined reference to `FT_Get_Advance'
/home/leopoldo/Arquivos-de-Programas-Linux/pango-1.41.0/pango/.libs/libpangoft2-1.0.so: undefined reference to `FcWeightFromOpenType'
/media/34GB/Arquivos-de-Programas-Linux/Harfbuzz-1.4.2/lib/libharfbuzz.so: undefined reference to `FT_Reference_Face'
/home/leopoldo/Arquivos-de-Programas-Linux/pango-1.41.0/pango/.libs/libpangoft2-1.0.so: undefined reference to `FT_Face_GetCharVariantIndex'
/home/leopoldo/Arquivos-de-Programas-Linux/pango-1.41.0/pango/.libs/libpangoft2-1.0.so: undefined reference to `FcWeightToOpenType'
collect2: error: ld returned 1 exit status
These kind of errors are caused when the symbol (function, data structure) is not present in the auxiliary library that the program needs. But this does not seem to be the case here.
A quick search shows that
,
and
Code:
FT_Face_GetCharVariantIndex
are Freetype functions. I proceeded to Freetype's lib dir and issued a
Code:
nm -s libfreetype.so | grep FT_Get_Advance
,
Code:
nm -s libfreetype.so | grep FT_Reference_Face
and
Code:
nm -s libfreetype.so | grep FT_Face_GetCharVariantIndex
The result shows that the three functions are present in libfreetype. I then proceeded to Harfbuzz's lib dir and issued a
Code:
ldd libharfbuzz.so.0
. Which shows:
Code:
libfreetype.so.6 => /media/34GB/Arquivos-de-Programas-Linux/Freetype-2.6.5/lib/libfreetype.so.6 (0x00007f92132e4000)
So no idea why the error. For Harfbuzz I might have a solution, whih would be to simple use an older Freetype. With it, these two error messages are gone
Now to the other error messages...
A quick search shows that
Code:
FcWeightFromOpenType
and
Code:
FcWeightFromOpenType
are all from FontConfig
Repeating the procedures we have:
Code:
nm -s libfontconfig.so | grep FcWeightFromOpenType
Code:
nm -s libfontconfig.so | grep FcWeightToOpenType
that shows both present in libfontconfig.so
Issuing a
Code:
ldd libpangoft2-1.0.so
, shows that it is finding libfontconfig
Code:
libfontconfig.so.1 => /media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.12.0/lib/libfontconfig.so.1 (0x00007f1d9971c000)
So I am open to suggestions.