helpThe GNU Bourne-Again SHell - Support: sr #110635, examples/loadables/seq.c uses...

 
 

sr #110635: examples/loadables/seq.c uses PRIdMAX even if PRI_MACROS_BROKEN is set

Submitter:  None
Submitted:  Thu 07 Apr 2022 06:44:13 AM UTC
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Thu 07 Apr 2022 06:44:13 AM UTC, original submission:  

Old AIX have broken PRIdMAX macros, as detected by autoconf, but examples/loadables/seq.c uses them without checking, leading to a build failure on make install step

gcc -fpic -DHAVE_CONFIG_H -DSHELL  -D_THREAD_SAFE -g -O2 -Wno-parentheses -Wno-format-security -I. -I.. -I../../.. -I../../../lib -I../../../builtins -I../../../examples/loadables -I../../../include -I/home/mcasadev/src/bash-5.1.16/build -I/home/mcasadev/src/bash-5.1.16/build/lib -I/home/mcasadev/src/bash-5.1.16/build/builtins  -c -o seq.o ../../../examples/loadables/seq.c
../../../examples/loadables/seq.c:55: warning: `MAX' redefined
/usr/include/sys/param.h:154: warning: this is the location of the previous definition
../../../examples/loadables/seq.c: In function `print_intseq':
../../../examples/loadables/seq.c:279: parse error before `%'
../../../examples/loadables/seq.c:293: `lld' undeclared (first use in this function)
../../../examples/loadables/seq.c:293: (Each undeclared identifier is reported only once
../../../examples/loadables/seq.c:293: for each function it appears in.)
make[1]: *** [seq.o] Error 1

Tested with bash-5.1.16 (I can't get git master to build properly ATM)

Anonymous

 

(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 chet (Updated 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
    2022-04-08 chet StatusNone Done

    Back to the top


    Powered by Savane 3.9