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


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

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

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project 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.)

Attach Files:

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)

    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.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Mon 24 Feb 2014 10:51:25 AM UTC bens StatusNone => Fixed
        Assigned toNone => astyanax
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.3