Closed TurtleWilly closed 1 year ago
Hello @TurtleWilly,
We believe we have fixed these problems in our local development tree. We will be testing the fix a bit more before pushing the code to the top of the master branch.
With commit 3bfcaae76782ccf448be80843a24ffd89373cd13 this issue has been resolved, @TurtleWilly .
In particular:
Improved .gitignore to ignore .static, calc-static,
sample_many-static and sample_rand-static.
Improved error messages when trying to compile with
with one calc type (when BLD_TYPE=calc-dynamic-only or
BLD_TYPE=calc-static-only) and install with the other.
When installing with BLD_TYPE=calc-static-only, the
installed calc and calc-static are links to each other.
Thanks to GitHub user @TurtleWilly for this suggestion.
The dynamic shared libraries are not installed if they are not
built. So when installing with BLD_TYPE=calc-static-only, the
install rule will not attempt to install dynamic shared libraries.
Thanks to GitHub user @TurtleWilly for bringing to our attention,
problems related to building a statically linked calc under macOS.
These changes were also tested under RHEL9 Linux.
It is currently at the top of the master branch. After addressing issue #88 , we plan to release a new version of calc.
Thank you for bringing this problem to our attempting. We will now close this issue as completed.
I tested 3bfcaae here on my system and it seems to work well. The both calc binaries are now hardlinks to each other (same inode), and no more broken dylib links or related errors during make install
. 👍
Calc bug report template version: 1.3 2022-11-27
Describe the bug If we build calc with the
BLD_TYPE=calc-static-only
option as described in the HOWTO.INSTALL file the installation gets slightly messy.(1) It installs the calc binary twice, once as
calc
and once ascalc-static
. The second one seems to be a bit superfluous and a waste of disk space, IMHO.(2) it fails to handle now missing .dylibs during the
make install
and creates some dead-end soft links:To Reproduce
Build calc with the
BLD_TYPE=calc-static-only
argument, e.g.:Expected behavior
(1) Only install a single
calc
binary.(2) Don't create dead-end symlinks, don't error during
make install
.Attach debug.out IMPORTANT: Please run
make debug
and then attach thedebug.out
file. n/aScreen shots If applicable, attach screen shots to help explain your problem. n/a
Execution environment (please complete the following information):
OS: Mac OS X
OS version: Darwin 14.5.0 Darwin Kernel Version 14.5.0: Sun Jun 4 21:40:08 PDT 2017; root:xnu-2782.70.3~1/RELEASE_X86_64 x86_64
OS distribution: Mac OS X 10.10.5 (Yosemite)
Calc Version C-style arbitrary precision calculator w/custom functions (version 2.14.3.0)
Shell and shell version GNU bash, version 5.2.0(1)-rc1 (x86_64-apple-darwin14.5.0)
Calc mods If you have modified the calc source for some reason, please description what you modified. Please consider attaching a patch (diff -u) between an official calc release and the source you are using.
n/a
Patch If you have a recommended code patch to address the problem, please attach your file
n/a
Additional context Add any other context about the problem here.
n/a