This just showed up today with the current git source on Gentoo Linux. Only change to system was a git pull and a system up date to simage-1.8.0-r1 from simage-1.8.0
Obviously I'm not sure if the new simage has a bug, or freecad has an issue with a newer version. But here is the failure.
Hi @clytle374, this issue should have been resolved with the revbump of simage.
Would you please post the output of lddtree /usr/lib64/libsimage.so and emerge -pv simage?
TIA
OS: Gentoo/Linux (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23520 (Git)
Build type: Release
Branch: (HEAD detached at refs/git-r3/HEAD)
Hash: d89cd953a2e785b628c89ad75e2f2182f8413736
Python version: 3.7.9
Qt version: 5.15.1
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)
After a system update I also could not compile the current version and have the same error. I modified the current ebuild to check out the above d89cd.. commit hash and it failed with the same error. So I think it is an Gentoo Linux problem.
bookwood wrote: ↑Thu Dec 31, 2020 10:52 am
After a system update I also could not compile the current version and have the same error. I modified the current ebuild to check out the above d89cd.. commit hash and it failed with the same error. So I think it is an Gentoo Linux problem.
I also think it's a Gentoo issue, but it's most likely not an issue with the freecad ebuild, as this doesn't depend on simage. The only package in the depgraph of freecad, which I'm aware of, that is dependant on simage is coin. And the coin ebuild does not enforce any USE flags on simage.
I just rebuild simage without sndfile support and there's no reference to libsndfile in ldd output at all. Another possibility might be if someone builds with FEATURES=test, libsndfile is pulled in unconditionally and might be linked to the library as well, though I havent' checked the latter.
The simage library is a plugin that is dynamically loaded at runtime. Neither Coin3d nor FreeCAD is supposed to link to it. As it obviously does it's a Gentoo specific problem.
wmayer wrote: ↑Thu Dec 31, 2020 11:31 am
The simage library is a plugin that is dynamically loaded at runtime. Neither Coin3d nor FreeCAD is supposed to link to it. As it obviously does it's a Gentoo specific problem.
It should also work with the simage-1.8.0-r1 from ::gentoo. I can't yet reproduce the issue using this version. I yesterday built 1.8.0-r1 without sndfile support and my not yet merged 0.19 branch of the freecad ebuild built just fine.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] media-libs/simage-1.8.0-r1::gentoo USE="gif jpeg png qt5 tiff vorbis -debug -sndfile -test" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Only reason I know that some change in freecad triggered the failure is that I am running 2 machines and the system update of simage on the second machine didn't fail freecad build until I did a git pull on freecad.
Let me know what I can do it diagnose this.
Thanks
Cory