New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libharfbuzz: Undefined reference to 'FT_Get_Var_Blend_Coordinates' #310

Closed
taylorthurlow opened this Issue Jan 8, 2017 · 12 comments

Comments

Projects
None yet
10 participants
@taylorthurlow

Getting this error on both my desktop and laptop. Using polybar or polybar-git package from AUR has the same issue. Both on 4.4.40-1-lts kernel.

[100%] Linking CXX executable polybar
/usr/lib/libharfbuzz.so.0: undefined reference to 'FT_Get_Var_Blend_Coordinates'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/CMakeFiles/polybar.dir/build.make:2138: bin/polybar] Error 1
make[1]: *** [CMakeFiles/Makefile2:334: bin/CMakeFiles/polybar.dir/all] Error2
make: *** [Makefile:128: all] Error 2

I'll see if I can figure out how to try older builds, still getting used to Linux as a daily driver.

@NBonaparte

This comment has been minimized.

Show comment
Hide comment
@NBonaparte

NBonaparte Jan 8, 2017

Collaborator

Seems to be a harfbuzz issue caused by the latest update. Some guys have figured out a workaround: https://www.reddit.com/r/archlinux/comments/5mphpu/psa_harfbuzz_update_infinality_breaking_system/

Collaborator

NBonaparte commented Jan 8, 2017

Seems to be a harfbuzz issue caused by the latest update. Some guys have figured out a workaround: https://www.reddit.com/r/archlinux/comments/5mphpu/psa_harfbuzz_update_infinality_breaking_system/

@taylorthurlow

This comment has been minimized.

Show comment
Hide comment
@taylorthurlow

taylorthurlow Jan 8, 2017

Thanks @NBonaparte, works great now. Here's hoping this apparently new freetype2 interpreter version 40 will look close to infinality.

Thanks @NBonaparte, works great now. Here's hoping this apparently new freetype2 interpreter version 40 will look close to infinality.

@jaagr

This comment has been minimized.

Show comment
Hide comment
@jaagr

jaagr Jan 8, 2017

Owner

Good find @NBonaparte.. We should maybe leave this open for a while to avoid duplicates

Owner

jaagr commented Jan 8, 2017

Good find @NBonaparte.. We should maybe leave this open for a while to avoid duplicates

@jaagr jaagr changed the title from Failure to compile when downloading from Arch AUR to libharfbuzz: Undefined reference to 'FT_Get_Var_Blend_Coordinates' Jan 8, 2017

@taylorthurlow

This comment has been minimized.

Show comment
Hide comment
@taylorthurlow

taylorthurlow Jan 8, 2017

If anyone is curious what I did to fix it, I removed infinality entirely, supposedly the newest interpreter for freetype2 works just as well.

  • First remove infinality with: sudo pacman -S --asdeps freetype2 cairo fontconfig

  • Edit /etc/pacman.conf (or wherever you happen to have your pacman config if you changed it) and remove the additional infinality-bundle repositories

  • Run sudo pacman -Syyu and watch the output to make sure it's not looking for and updating the infinality-bundle repositories anymore.

That should do it and everything should compile fine, but I also switched my freetype2 interpreter by editing /etc/profile.d/freetype2.sh and uncommenting the last line, making sure it reads: truetype:interpreter-version=40

Restart and you should be all good.

If anyone is curious what I did to fix it, I removed infinality entirely, supposedly the newest interpreter for freetype2 works just as well.

  • First remove infinality with: sudo pacman -S --asdeps freetype2 cairo fontconfig

  • Edit /etc/pacman.conf (or wherever you happen to have your pacman config if you changed it) and remove the additional infinality-bundle repositories

  • Run sudo pacman -Syyu and watch the output to make sure it's not looking for and updating the infinality-bundle repositories anymore.

That should do it and everything should compile fine, but I also switched my freetype2 interpreter by editing /etc/profile.d/freetype2.sh and uncommenting the last line, making sure it reads: truetype:interpreter-version=40

Restart and you should be all good.

@gcarq

This comment has been minimized.

Show comment
Hide comment
@gcarq

gcarq Jan 9, 2017

harfbuzz needs a rebuild, until this is fixed you can force a build with ABS:

$ abs extra/harfbuzz
$ cp -r /var/abs/extra/harfbuzz /tmp
$ # increase patch version in PKGBUILD
$ cd /tmp/harfbuzz
$ makepkg -si

You don't need to remove infinality

gcarq commented Jan 9, 2017

harfbuzz needs a rebuild, until this is fixed you can force a build with ABS:

$ abs extra/harfbuzz
$ cp -r /var/abs/extra/harfbuzz /tmp
$ # increase patch version in PKGBUILD
$ cd /tmp/harfbuzz
$ makepkg -si

You don't need to remove infinality

@zuzukrukov

This comment has been minimized.

Show comment
Hide comment
@zuzukrukov

zuzukrukov Jan 10, 2017

Thanks @gcarq. Works for me.

Thanks @gcarq. Works for me.

@Fopedush

This comment has been minimized.

Show comment
Hide comment
@Fopedush

Fopedush Jan 13, 2017

Thanks also, @gcarq. The procedure he outlined worked for me, but I also had to reinstall gdk-pixbuf2 afterwards.

Thanks also, @gcarq. The procedure he outlined worked for me, but I also had to reinstall gdk-pixbuf2 afterwards.

@bimmlerd

This comment has been minimized.

Show comment
Hide comment
@bimmlerd

bimmlerd Jan 29, 2017

Removing infinality is probably a good idea, as it is dead. For those of you following @taylorthurlow's instructions, also consider sudo pacman -S --asdeps jdk8-openjdk if you had the infinality version of the JDK installed.

Removing infinality is probably a good idea, as it is dead. For those of you following @taylorthurlow's instructions, also consider sudo pacman -S --asdeps jdk8-openjdk if you had the infinality version of the JDK installed.

@mimoralea

This comment has been minimized.

Show comment
Hide comment
@mimoralea

mimoralea Feb 3, 2017

I tried both and it was @taylorthurlow's the one that worked. Also remember to reinstall gdk-pixbuf2 as @Fopedush mentions. Additionally, I remove infinality's jdk8 as mentioned by @bimmlerd.

My point, try all different solutions found on this page. One will work.

mimoralea commented Feb 3, 2017

I tried both and it was @taylorthurlow's the one that worked. Also remember to reinstall gdk-pixbuf2 as @Fopedush mentions. Additionally, I remove infinality's jdk8 as mentioned by @bimmlerd.

My point, try all different solutions found on this page. One will work.

@mimoralea

This comment has been minimized.

Show comment
Hide comment
@mimoralea

mimoralea Mar 29, 2017

Another good way to solve this problem is to install the downgrade tool and downgrade the version of harfbuzz.

sudo pacman -S downgrade
sudo downgrade harfbuzz # select version 1.3.4

mimoralea commented Mar 29, 2017

Another good way to solve this problem is to install the downgrade tool and downgrade the version of harfbuzz.

sudo pacman -S downgrade
sudo downgrade harfbuzz # select version 1.3.4
@fabrixx

This comment has been minimized.

Show comment
Hide comment
@fabrixx

fabrixx Aug 1, 2017

Thank you mimoralea you saved me!!

fabrixx commented Aug 1, 2017

Thank you mimoralea you saved me!!

@patrick96

This comment has been minimized.

Show comment
Hide comment
@patrick96

patrick96 Sep 4, 2017

Collaborator

I think we can close this. Infinality has been dead for some time and no one should be using it

Collaborator

patrick96 commented Sep 4, 2017

I think we can close this. Infinality has been dead for some time and no one should be using it

@patrick96 patrick96 closed this Sep 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment