Attempting to use libtesseract from ports (and packages) yields the following error: ld-elf.so.1: /usr/local/lib/libtesseract.so.5: Undefined symbol "__kmpc_global_thread_num" __kmpc_global_thread_num appears to be exported by openmp. Checking /usr/local/lib/libtesseract.so.5 with ldd revealed that openmp was indeed missing. It's possible that some CMake magic is supposed to be inserting this flag somewhere, but I was able to solve my problem by adding -lomp to the LDFLAGS variable in the port's Makefile.
Does this apply to port graphics/tesseract?
(In reply to Mark Linimon from comment #1) Yes, sorry if I was not clear, it applies to graphics/tesseract.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=6540d4de7188553178274ddf1b231a247b8023d7 commit 6540d4de7188553178274ddf1b231a247b8023d7 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-07-21 13:10:26 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-07-21 13:10:26 +0000 graphics/tesseract: enable OPENMP PR: 265252 graphics/tesseract/Makefile | 5 +++++ 1 file changed, 5 insertions(+)
Should be fixed now, please check.