bugGNU nano - Bugs: bug #32604, nano.h defines enum symbol...

 
 

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

bug #32604: nano.h defines enum symbol "RAW", which is already #defined on AIX

Submitter:  Daniel Richard G. <iskunk>
Submitted:  Sat 26 Feb 2011 09:44:58 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

Mon 24 Feb 2014 10:51:25 AM UTC, comment #1: 

Was fixed in SVN r4535, three years ago.  Hmmm... it would be good to have a 2.2.7 release.

Benno Schulenberg <bens>
Group administrator
Sat 26 Feb 2011 09:44:58 AM UTC, original submission:  

Building nano 2.2.6 on AIX 4.3.2 yielded this error:

Target "all" is up to date.
Making all in src
        gcc -DHAVE_CONFIG_H -I. -I/tmp/nano-2.2.6/src -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\"   -D_ALL_SOURCE -D_THREAD_SAFE   -pedantic -pipe -fno-common -W -Wall -Wcast-align -Wformat=2 -Wpointer-arith -Wundef -Waggregate-return -Wcast-qual -Wmissing-declarations -Wnested-externs -Wstrict-prototypes -mcpu=powerpc -O3 -c /tmp/nano-2.2.6/src/browser.c
cc1: warning: Ignoring command line option '-Wformat=2'
In file included from /tmp/nano-2.2.6/src/proto.h:27,
                 from /tmp/nano-2.2.6/src/browser.c:24:
/tmp/nano-2.2.6/src/nano.h:185: warning: comma at end of enumerator list
/tmp/nano-2.2.6/src/nano.h:185: parse error before `0x00000020'


This is because AIX's /usr/include/sys/ioctl.h has the following line:

% grep RAW /usr/include/sys/ioctl.h
#define         RAW             0x00000020      /* no i/o processing */

Adding an "#undef RAW" just before the "typedef enum ... function_type" bit in nano.h makes the error go away, allowing nano to be built successfully.

This isn't the first time I've run into this sort of error, however, and namespacing the program's identifiers would probably be a better solution.

Daniel Richard G. <iskunk>

 

(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 bens (Posted a comment)
  • -email is unavailable- added by iskunk (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
    2014-02-24 bens StatusNone Fixed
        Assigned toNone astyanax
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code