Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2022 15:13:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 265252] libtesseract missing -lomp in LDFLAGS
Message-ID:  <bug-265252-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265252

            Bug ID: 265252
           Summary: libtesseract missing -lomp in LDFLAGS
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fbsd@ettinsmoor.net

Attempting to use libtesseract from ports (and packages) yields the followi=
ng
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265252-7788>