GNU Astronomy Utilities - Bugs: bug #50957, --version output not possible on...
You are not allowed to post comments on this tracker with your current authentication level.
bug #50957: --version output not possible on Mac OS X
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Fri 05 May 2017 04:52:31 PM UTC | ||
Category: | All Gnuastro | Severity: | 3 - Normal |
Item Group: | Output not reasonable | Status: | Fixed |
Privacy: | Public | Assigned to: | makhlaghi |
Open/Closed: | Closed |
Thu 24 May 2018 06:50:22 PM UTC, comment #1: |
Mohammad Akhlaghi <makhlaghi> |
Fri 05 May 2017 04:52:31 PM UTC, original submission:
After the 0.2.206 release, Alan Lefor reported that the `--version' option does not show in the output of `--help' on his Mac OS X (10.12.4) machine. However, it worked on the Scientific Linux that was installed on a virtual machine within the Mac OS X.
|
Mohammad Akhlaghi <makhlaghi> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-05-24 | makhlaghi | Status | Postponed | Fixed | |
Assigned to | None | makhlaghi | |||
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
This bug has been fixed and pushed to the main Gnuastro repo. The problem was with linking. Apparently not all linkers can accept external variables indirectly.
This was a major problem. Because it made it hard for people on a Mac OS to help in the development: during the man-page building process, the `--version' option is mandatory. Without it, the build will fail. I am very grateful to Leindert Boogaard who patiently helped in testing the different tests on his Mac OS system.
As described in the commit message, the Gnuastro library directly linked with Gnulib, but in the programs, we were only linking with Gnulib indirectly through the Gnuastro library. In the GNU Linker, this wasn't a problem, and the external variables would pass through Gnuastro's library and could be accessed by Gnulib. But the Mac OS linker wouldn't do that. So the external variables that defined the `--version' value was not seen by Gnulib on Mac OS, therefore, by its default behavior, it would think that `--version' is not defined.