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)

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

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>

 

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 haubi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-13 haubi Attached File- => Added 0001-Fix-compilation-error-on-AIX.patch, #39989

    Back to the top


    Powered by Savane 3.5