[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX compilation problem

From: Dan Kegel
Subject: Re: AIX compilation problem
Date: Tue, 23 Sep 2003 20:41:25 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Saravanan Bellan wrote:
I was trying to compile ncurses 5.3 with the widec option on AIX 4.3. After
a lot of trial and error, I got it compiled after setting the the following

$ ./configure CFLAGS="-D_XOPEN_SOURCE=500 -D_ALL_SOURCE" --enable-widec

_XOPEN_SOURCE used in wchar.h
_ALL_SOURCE in sys/ioctl.h

Can anyone explain what those variables mean?

glibc uses similar defines.  From glibc's features.h:

/* These are defined by the user (or the compiler)
   to specify the desired environment:

   __STRICT_ANSI__  ISO Standard C.
   _ISOC99_SOURCE   Extensions to ISO C89 from ISO C99.
   _POSIX_SOURCE    IEEE Std 1003.1.
   _POSIX_C_SOURCE  If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
            if >=199309L, add IEEE Std 1003.1b-1993;
            if >=199506L, add IEEE Std 1003.1c-1995
   _XOPEN_SOURCE    Includes POSIX and XPG things.  Set to 500 if
            Single Unix conformance is wanted, to 600 for the
            upcoming sixth revision.
   _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   _LARGEFILE_SOURCE    Some more functions for correct standard I/O.
   _LARGEFILE64_SOURCE  Additional functionality from LFS for large files.
   _FILE_OFFSET_BITS=N  Select default filesystem interface.
   _BSD_SOURCE      ISO C, POSIX, and 4.3BSD things.
   _SVID_SOURCE     ISO C, POSIX, and SVID things.
   _GNU_SOURCE      All of the above, plus GNU extensions.
   _REENTRANT       Select additionally reentrant object.
   _THREAD_SAFE     Same as _REENTRANT, often used by other systems.

Dan Kegel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]