Failed to load shared library '/usr/bin/_pcbnew.kiface':
/lib/x86_64-linux-gnu/libTKBO.so.7: undefined symbol:
_ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange
as:
“_pcbnew.kiface needs _ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange from /lib/x86_64-linux-gnu/libTKBO.so.7 but cannot find it.”
But if I understand you correctly, what the message meant was:
“In _ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange from /lib/x86_64-linux-gnu/libTKBO.so.7, loaded by _pcbnew.kiface, there was an issue: missing symbol”
/lib/x86_64-linux-gnu/libTKBO.so.7 has an undefined symbol _ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange (some code in boolean operations uses BRepBuilderAPI_MakeShape::Build(Message_ProgressRange const&)).
When the dynamic loader loads libTKBO.so.7’s dependency libTKTopAlgo.so.7, it should have resolved that symbol (but the loader doesn’t know that)
Just in case somebody has a similar problem in Ubuntu 24.04 (noble) - the kicad package from the KiCad Ubuntu repository depends on libocct-modeling-algorithms-7.6, whose description says
This package contains the following shared libraries:
TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat
TKMesh TKXMesh TKShHealing
However, this package doesn’t actually contain any shared library files:
$ apt show libocct-modeling-algorithms-7.6
Package: libocct-modeling-algorithms-7.6
Version: 1:7.6.3+dfsg1-8~ubuntu22.04.1
Priority: optional
Section: libs
Source: opencascade
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Installed-Size: 21,8 MB
Depends: libc6 (>= 2.33), libgcc-s1 (>= 3.3.1), libocct-foundation-7.6 (>= 1:7.6.3+dfsg1), libocct-modeling-data-7.6 (>= 1:7.6.3+dfsg1), libstdc++6 (>= 11)
Breaks: libocct-modeling-algorithms-7.4, libocct-modeling-algorithms-7.5
Replaces: libocct-modeling-algorithms-7.4, libocct-modeling-algorithms-7.5
Download-Size: 7 109 kB
APT-Manual-Installed: yes
APT-Sources: https://ppa.launchpadcontent.net/kicad/kicad-8.0-releases/ubuntu jammy/main amd64 Packages
Description: Open CASCADE Technology geometrical & topological algorithms module
Open CASCADE Technology is a suite for 3D surface and solid modeling,
visualization, data exchange and rapid application development. It is an
excellent platform for development of numerical simulation software including
CAD/CAM/CAE, AEC and GIS, as well as PDM applications.
.
This package contains the following shared libraries:
TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat
TKMesh TKXMesh TKShHealing