bugGNU 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: 

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.

Mohammad Akhlaghi <makhlaghi>
Group administrator
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.

This was not a problem in Gnuastro 0.2.28 on Mac OS X.

The `--version' option (as well as the `--help' and `--usage' options) is not actually controlled by Gnuastro but by the GNU C Library's Argp routines (Which Gnuastro implements through Gnulib's implementation so it can be usable on non GNU systems also).

The only major change from version 0.2.28 that I can think of now is a modification in the options structure of Argp to allow more information for each option in bootstrap.conf (the part that discusses `argp_option'). However, I can't see how can be the cause of this Mac OS X-only behavior. Most probably it is something else.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    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 StatusPostponed Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code