Some code relies on the `harfbuzz` library, like so:

(define-runtime-lib harfbuzz-lib
  [(unix) (ffi-lib "libharfbuzz" '("1" ""))]
  [(macosx) (ffi-lib "libharfbuzz.0.dylib")]
  [(windows) (ffi-lib "libharfbuzz-0.dll")])


Though this works on my Mac machines, the doc server throws an error: [1]

raco setup:   ffi-obj: couldn't get "hb_buffer_add_codepoints" from 
"libharfbuzz.so" (/usr/lib/x86_64-linux-gnu/libharfbuzz.so: undefined symbol: 
hb_buffer_add_codepoints) 

The `hb_buffer_add_codepoints` function was added in Harfbuzz 0.9.31, but 
according to Racket's readme, it ships with Harfbuzz 1.7.6 [2]

Judging by the Harfbuzz path in the error message, I wonder if I'm 
inadvertently invoking some local copy of Harfbuzz (which is out of date) 
rather than the one that ships with Racket (which isn't). But if so, I don't 
know how to change the `define-runtime-lib` incantation to make it work. 


[1] 
https://pkg-build.racket-lang.org/server/built/fail/quad.txt 
<https://pkg-build.racket-lang.org/server/built/fail/quad.txt>

[2] 
https://github.com/racket/racket/blob/709258d88c879c2489a977e85d34f77d760a0008/racket/src/native-libs/README.txt
 
<https://github.com/racket/racket/blob/709258d88c879c2489a977e85d34f77d760a0008/racket/src/native-libs/README.txt>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to