bugGNU CSSC - Bugs: bug #65703, use of undeclared identifier...

 
 

bug #65703: use of undeclared identifier 'abort', 'atoi', 'getenv'

Submitter:  Ryan Carsten Schmidt <ryandesign>
Submitted:  Mon 06 May 2024 11:38:20 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 12 May 2024 09:47:17 AM UTC, comment #1: 
James Youngman <jay>
Group administrator
Mon 06 May 2024 11:38:20 PM UTC, original submission:  

cssc 1.4.1 fails to build on OS X 10.11.6:


fileiter.cc:156:3: error: use of undeclared identifier 'abort'
                abort();
                ^
1 error generated.



sf-get.cc:51:17: error: use of undeclared identifier 'getenv'
  bool bDebug = getenv("CSSC_SHOW_SEQSTATE") ? true : false;
                ^
1 error generated.



sf-get2.cc:435:7: error: use of undeclared identifier 'getenv'
  if (getenv("CSSC_SHOW_SEQSTATE"))
      ^
1 error generated.



sf-get3.cc:111:29: error: use of undeclared identifier 'atoi'
          if (user_is_group_member(atoi(authorized_user.c_str())))
                                   ^
1 error generated.


The fix is to #include <cstdlib> in these files, as in this patch:

https://github.com/macports/macports-ports/blob/00f368605345748a25f18f2c5eceeb5590653a15/devel/cssc/files/cstdlib.patch

Ryan Carsten Schmidt <ryandesign>

 

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

Attach Files:
   
   
Comment:
   

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 jay (Posted a comment)
  • -email is unavailable- added by ryandesign (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.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-12 jay StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code