Article 6JWNJ Locally installed pango issue with modules detection.

Locally installed pango issue with modules detection.

by
coltson
from LinuxQuestions.org on (#6JWNJ)
Hi. I am experimenting issues related to Pango with two different softwares.

The first is Firefox. Firefox is not using the default fonts used by other browsers (very old Firefox or Palemoon) which causes ugly output (aliased or less defined fonts).

An older Firefox had this output:

Code:"(/media/34GB/Arquivos-de-Programas-Linux/firefox-78.0.1-esr/firefox-bin:20693): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'Code:(/media/34GB/Arquivos-de-Programas-Linux/firefox-78.0.1-esr/firefox-bin:20737): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
'/usr/local/etc/pango/pango.modules'
You should create this file by running:
pango-querymodules > '/usr/local/etc/pango/pango.modules' "The more recent Firefox does not emit the above messages, but the output looks the same.

I executed an adaptation of the command mentioned above:

Code:/arquivos/Pango-1.36.7/bin/pango-querymodules /arquivos/Pango-1.36.7/etc/pango/pango.modulesand the output was:
Code:Cannot load module /arquivos/Pango-1.36.7/etc/pango/pango.modules: /arquivos/Pango-1.36.7/etc/pango/pango.modules: invalid ELF header
/arquivos/Pango-1.36.7/etc/pango/pango.modules does not export Pango module API
# Pango Modules file
# Automatically generated file, do not edit
#The second happens with Snes9x, when I explicitly build it against my own Pango library, instead the system provided one

Here the problem is that the characters on the menus are replaced by small rectangles.

The command line output it is: Code:(snes9x-gtk:1676): P(snes9x-gtk:4379): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
'/usr/local/etc/pango/pango.modules'
You should create this file by running:
pango-querymodules > '/usr/local/etc/pango/pango.modules'

(snes9x-gtk:4379): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'

(snes9x-gtk:4379): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='commonI tried once more to run an adaptation of the command mentioned during firefox execution:

Code:/arquivos/Pango-1.30.0/bin/pango-querymodules /arquivos/Pango-1.30.7/etc/pango/pango.modulesBut the output was still the same and this error shows up:
Code:# Pango Modules file
# Automatically generated file, do not edit
#
Cannot load module /arquivos/Pango-1.30.7/etc/pango/pango.modules: /arquivos/Pango-1.30.7/etc/pango/pango.modules: cannot open shared object file: No such file or directory
/arquivos/Pango-1.30.7/etc/pango/pango.modules does not export Pango module APINote that the Pango used by Firefox and Snes9x are not the same, as the first wants gtk 3.0, which requires a newer Pango to be built.

As I mentioned before, if I build snes9x against system provided Pango, the little squares are gone and characters are back.

So, both problems are caused by the local Pango installs (or local Pango installs + local install of its dependencies, such as FontConfig,Freetype or Hardbuzz)

I only see two possible solutions: Move to a newer Pango, that does n ot use this modules stuff or try a system wide install of Pango (and likely its dependencies)

I don't like neither solution (plus the uncertainty about its success ) 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