MantisBT - NetSurf
View Issue Details
0002473NetSurfGTK-specificpublic2016-09-23 05:282023-08-14 03:21
ReporterPICCORO Lenz McKAY 
Assigned To 
PlatformLinuxOSDebianOS Version6
Product Version3.5 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002473: error building with libharu 2.2.1 : implicit declaration haru_nsfont_apply_style
Descriptionwhen build enabling libharu i got an error building with libharu 2.2.1 : implicit declaration haru_nsfont_apply_style, got output in console of this error:

 COMPILE: desktop/font_haru.c
desktop/font_haru.c:43:40: error: desktop/save_pdf/font_haru.h: No existe el fichero o el directorio
desktop/font_haru.c: En la función ‘haru_nsfont_width’:
desktop/font_haru.c:139: aviso: declaración implícita de la función ‘haru_nsfont_apply_style’
desktop/font_haru.c:139: aviso: declaración externa anidada de ‘haru_nsfont_apply_style’
desktop/font_haru.c: En el nivel principal:
desktop/font_haru.c:280: aviso: no hay un prototipo previo para ‘haru_nsfont_apply_style’
desktop/font_haru.c:280: error: tipos en conflicto para ‘haru_nsfont_apply_style’
desktop/font_haru.c:139: nota: la declaración implícita previa de ‘haru_nsfont_apply_style’ estaba aquí
desktop/font_haru.c:367: aviso: no hay un prototipo previo para ‘haru_nsfont_set_scale’
make[3]: *** [build-Linux-gtk/desktop_font_haru.o] Error 1
make[3]: se sale del directorio `/home/general/Devel/deb/netsurf-3.5/netsurf'
make[2]: *** [/home/general/Devel/deb/netsurf-3.5/inst-gtk/build-stamp] Error 2
make[2]: se sale del directorio `/home/general/Devel/deb/netsurf-3.5'
dh_auto_build: make -j1 PREFIX=/usr TARGET=gtk returned exit code 2
make[1]: *** [override_dh_auto_build] Error 2
make[1]: se sale del directorio `/home/general/Devel/deb/netsurf-3.5'
make: *** [build] Error 2
Additional Informationusing libharu 2.2.1 with some patches from github libharu repo
TagsNo tags attached.
Attached Files

Vincent Sanders   
2016-12-31 12:48   
building with PDF export is currently broken and libharu is unfortunately unmaintained and missing several important bugfixes necessary to use it with modern NetSurf.

I will update the Documentation to reflect this. Thanks for the report
Michael Orlitzky   
2023-08-14 03:21   
Haru lives once more:

The interface is bit-rotted of course, but without TOO much trouble, I was able to get it to build again.

Issue History
2016-09-23 05:28PICCORO Lenz McKAYNew Issue
2016-12-31 12:48Vincent SandersNote Added: 0001473
2016-12-31 12:48Vincent SandersStatusnew => acknowledged
2023-08-14 03:21Michael OrlitzkyNote Added: 0002424