Bug 266776 - graphics/tesseract: Link with libomp.so to fix missing symbol error; Add compiler:c++20-lang
Summary: graphics/tesseract: Link with libomp.so to fix missing symbol error; Add comp...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-02 21:01 UTC by Yuri Victorovich
Modified: 2023-09-07 06:42 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (pkubaj)


Attachments
patch (803 bytes, patch)
2022-10-02 21:01 UTC, Yuri Victorovich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2022-10-02 21:01:18 UTC
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.
Comment 1 Florian Wagner 2023-06-23 06:11:38 UTC
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.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-06-23 13:00:46 UTC
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(-)
Comment 3 Michael Osipov 2023-09-06 12:59:31 UTC
Can someone tell on which FreeBSD version this fails? I cannot make it fail linking with 12.4-RELEASE amd64 in Poudriere.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2023-09-06 16:56:59 UTC
(In reply to Michael Osipov from comment #3)

The original problem was reported against FreeBSD 13.1-STABLE.


Yuri
Comment 5 Michael Osipov 2023-09-07 06:42:31 UTC
(In reply to Yuri Victorovich from comment #4)

OK, makes sense, then the system likely behaves differently to 12.