Score:2

FFMPEG, undefined symbol hb_glib_script_to_script

au flag

I have several commercial applications that rely on FFMPEG or a subdependency,libpango, and potentially others. One of those packages breaks on my system since either FFMPEG's or libpango's version and compile options are now different than the stock Ubuntu version. I'm not sure which programs rely on FFMPEG or libpango as a dependency, or how to find out which versions are used.

The original error:

ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: hb_glib_script_to_script

If I check to see if libpango has the symbol I can see it doesn't:

> readelf -a /lib/x86_64-linux-gnu/libpango-1.0.so.0 | grep hb_glib_script_to_script
    85: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND hb_glib_script_to_script

I've checked the other locations like /usr/local and ~/.snap/* and those instances of libpango also list that symbol as undefined.

I was wondering if a package may have a conflicting version of the library that may be overriding. I don't see any signs of that though.

> apt-cache rdepends --installed ffmpeg
ffmpeg
Reverse Depends:
  bitwig-studio
    ffmpeg:i386
  imagemagick-6.q16
    ffmpeg:i386
  imagemagick-6.q16
    ffmpeg:i386

Checking for the symbol error, I ran into this: https://unix.stackexchange.com/questions/599152/debian-libpangoft2-1-0-so-0-undefined-symbol-hb-glib-script-from-script

It suggested reinstalling libharfbuzz0b which is the underlying library that should supply the symbol. I reinstalled it:

> sudo apt update && sudo apt reinstall libharfbuzz

I still get this error.

I then checked if there are multiple instances of FFMPEG, which there isn't. There ARE multiple copies of libpango, however the duplicates are in ~/.snap and shouldn't resolve before the system version.

AjayC avatar
gb flag
I hope this may help you ```https://askubuntu.com/questions/13296/how-do-i-find-the-reverse-dependency-of-a-package```
MrMowgli avatar
au flag
@AjayC This was perfect. My question is answered by the same answer. Mine is a duplicate of that question. Thanks!
cn flag
Does this answer your question? [How do I find the reverse dependency of a package?](https://askubuntu.com/questions/13296/how-do-i-find-the-reverse-dependency-of-a-package)
MrMowgli avatar
au flag
I've changed the question, because I don't see anything out of the ordinary for the underlying problem. I'm still stuck tracking down the issue for the symbol :(
N0rbert avatar
zw flag
Please share output of `find /usr/local/ -name "*.so*"` .
Simon Sudler avatar
us flag
Does this answer your question? [How to list dependent packages (reverse dependencies)?](https://askubuntu.com/questions/128524/how-to-list-dependent-packages-reverse-dependencies)
MrMowgli avatar
au flag
@N0rbert There's no output (no shared objects in /usr/local)
N0rbert avatar
zw flag
Try `sudo apt-get install --reinstall libpango-1.0-0` for pango reinstallation.
MrMowgli avatar
au flag
Did that first, didn't change anything. All copies of libPango kicking around don't seem to include that symbol either
MrMowgli avatar
au flag
Actually it looks like `libharfbuz0b` is being installed as a snap?
Score:2
au flag

The underlying library libharfbuzz0b was included in the Bitwig specific folder: /opt/bitwig-studio/lib, however their build didn't export the symbol. For some reason the programs scoped .so files override the system shared objects, causing this issue.

I tracked down the dependencies of the library by running:

ldd /lib/x86_64-linux-gnu/libpango-1.0.so.0

This showed that there were the appropriate files in expected locations. Running:

> readelf -s /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 | grep hb_glib_script_to_script
   439: 00000000000cdff0     9 FUNC    GLOBAL DEFAULT   14 hb_glib_script_to_script

shows that it should be there. I tracked down the issue by running locate to find any instances of libharfbuzz

> locate libharfbuzz | grep .so
/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.20600.4
/opt/bitwig-studio/lib/bitwig-studio/libharfbuzz.so.0
/opt/bitwig-studio/lib/jre/lib/libharfbuzz.so

shows that the file is actually included directly in Bitwig. Running readelf -s /opt/bitwig-studio/lib/bitwig-studio/libharfbuzz.so.0 the symbol isn't defined.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.