Bug 261583 - cad/opencascade: libTKernel.so.7: Undefined symbol "backtrace"
Summary: cad/opencascade: libTKernel.so.7: Undefined symbol "backtrace"
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: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-30 23:01 UTC by Yuri Victorovich
Modified: 2022-01-31 20:39 UTC (History)
0 users

See Also:
thierry: maintainer-feedback+
thierry: merge-quarterly+


Attachments
Link with execinfo (636 bytes, patch)
2022-01-31 12:14 UTC, Thierry Thomas
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-01-30 23:01:18 UTC
Another project linked to opencascade-7.6.0_1 fails:
> ImportError: /usr/local/lib/libTKernel.so.7: Undefined symbol "backtrace"

It looks like -lexecinfo is missing in opencascade.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2022-01-31 12:14:34 UTC
Created attachment 231469 [details]
Link with execinfo

With the attached patch, OCC is linked with execinfo:

$ ldd /usr/local/lib/libTKernel.so.7
/usr/local/lib/libTKernel.so.7:
        libm.so.5 => /lib/libm.so.5 (0x1fe7d914f000)
        libexecinfo.so.1 => /usr/lib/libexecinfo.so.1 (0x1fe7da5f4000)
        libthr.so.3 => /lib/libthr.so.3 (0x1fe7d9a68000)
        librt.so.1 => /usr/lib/librt.so.1 (0x1fe7db25b000)
        libc++.so.1 => /lib/libc++.so.1 (0x1fe7dba55000)
        libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x1fe7dcdfe000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x1fe7dbb7e000)
        libc.so.7 => /lib/libc.so.7 (0x1fe7d4228000)
        libelf.so.2 => /lib/libelf.so.2 (0x1fe7d4d40000)

Could you please check if it solves your problem?
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2022-01-31 16:26:54 UTC
Yes, it does.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-01-31 17:16:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a961a22e6f7c4287511ac582362e65236ece4725

commit a961a22e6f7c4287511ac582362e65236ece4725
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-01-31 17:12:30 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-01-31 17:16:33 +0000

    cad/opencascade: link with execinfo

    Fix a failure detected in another project:
    > ImportError: /usr/local/lib/libTKernel.so.7: Undefined symbol "backtrace"

    PR:             261583
    Reported by:    yuri

 cad/opencascade/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2022-01-31 17:17:39 UTC
Committed, thanks for the report!
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2022-01-31 19:37:29 UTC
(In reply to Thierry Thomas from comment #4)

Thierry,

This commit should probably be merged into the quarterly branch.


Yuri
Comment 6 Thierry Thomas freebsd_committer freebsd_triage 2022-01-31 20:39:22 UTC
(In reply to Yuri Victorovich from comment #5)
Done!
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-01-31 20:39:27 UTC
A commit in branch 2022Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a8f6e50d75a904f5ec6e46005eb1b885563d76c

commit 3a8f6e50d75a904f5ec6e46005eb1b885563d76c
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-01-31 17:12:30 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-01-31 20:38:32 +0000

    cad/opencascade: link with execinfo

    Fix a failure detected in another project:
    > ImportError: /usr/local/lib/libTKernel.so.7: Undefined symbol "backtrace"

    PR:             261583
    Reported by:    yuri

    (cherry picked from commit a961a22e6f7c4287511ac582362e65236ece4725)

 cad/opencascade/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)