Article 6FMY5 Weird "undefined reference to" when building pango

Weird "undefined reference to" when building pango

by
coltson
from LinuxQuestions.org on (#6FMY5)
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 statusThese 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 Code:FT_Get_Advance, Code:FT_Reference_Face 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_GetCharVariantIndexThe 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 FcWeightFromOpenTypeCode:nm -s libfontconfig.so | grep FcWeightToOpenTypethat 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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments