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.
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?
Yes, it does.
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(-)
Committed, thanks for the report!
(In reply to Thierry Thomas from comment #4) Thierry, This commit should probably be merged into the quarterly branch. Yuri
(In reply to Yuri Victorovich from comment #5) Done!
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(-)