patchGNU tar - Patches: patch #9284, regression (1.29): compiler error...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9284: regression (1.29): compiler error on AIX (duplicate case value: EEXIST and ENOTEMPTY)

Submitter:  Michael Haubenwallner <haubi>
Submitted:  Mon 13 Mar 2017 02:39:18 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  gray Open/Closed:  Closed

Mon 13 Mar 2017 02:39:18 PM UTC, original submission:  

AIX defines EEXIST to the identical value as ENOTEMPTY, causing this compiler error now:


powerpc-ibm-aix6.1.0.0-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../gnu -I../ -I../gnu -I../lib -I../lib  -O2 -pipe -c -o unlink.o unlink.c
unlink.c: In function 'flush_deferred_unlinks':
unlink.c:130:7: error: duplicate case value
       case ENOTEMPTY:
       ^
unlink.c:127:7: error: previously used here
       case EEXIST:
       ^
make[2]: *** [unlink.o] Error 1


Although recent AIX now supports defining _LINUX_SOURCE_COMPAT to provide different values for both, it feels easier to test for non-equal values here (patch attached).

Thanks!

Michael Haubenwallner <haubi>

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gray (Updated the item)
  • -email is unavailable- added by haubi (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-06-01 gray StatusNone Done
        Assigned toNone gray
        Open/ClosedOpen Closed
    2017-03-13 haubi Attached File- Added 0001-Fix-compilation-error-on-AIX.patch, #39989

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code