Created attachment 237028 [details] patch Currently libtesseract.so fails: > ld-elf.so.1: /usr/local/lib/libtesseract.so: Undefined symbol "__kmpc_global_thread_num" The attached patch solves this problem.
I'm affected by this as well and would be very happy if the provided patch gets commited to FreeBSD ports so I don't have to continue maintaining a ports overlay with it. I've tested it, too and can verify it working.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5e6ff22583bb0916a86e6abfe88eae8892d0d198 commit 5e6ff22583bb0916a86e6abfe88eae8892d0d198 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-06-23 10:13:39 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-06-23 12:59:40 +0000 graphics/tesseract: Link with libomp.so to fix missing symbol error; Add compiler:c++20-lang PR: 266776 Submitted by: yuri graphics/tesseract/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Can someone tell on which FreeBSD version this fails? I cannot make it fail linking with 12.4-RELEASE amd64 in Poudriere.
(In reply to Michael Osipov from comment #3) The original problem was reported against FreeBSD 13.1-STABLE. Yuri
(In reply to Yuri Victorovich from comment #4) OK, makes sense, then the system likely behaves differently to 12.