Note that there are some explanatory texts on larger screens.

plurals
  1. POPurpose of __USE_XOPEN2K8 and how to set it?
    primarykey
    data
    text
    <p>I'm trying to compile the gtk stack (the last gtk2 version, 2.24), and I am getting a bunch of errors that seem related. Namely, the <code>__locale_t</code> can't be found from string.h and time.h, and <code>LC_ALL_MASK</code> can't be found either (should be in locale.h).</p> <p>I found that all of these problems are related to <code>__USE_XOPEN2K8</code> not being #defined. What is <code>__USE_XOPEN2K8</code> for, and how can I set it propertly?</p> <p>For example, do I have to pass a flag to ./configure for glib, gtk, ... or do I have to change something already while building gcc or glib<b>c̲</b>? I'd rather not just sprinkle <code>#define __USE_XOPEN2K8</code> in to my sources without knowing what it does. Note I'm using gcc-4.6.3 and glibc-2.16.0 which are installed in a nonstandard prefix, as I'm trying to get the gtk libraries to work on an older CentOS (5.8) that only includes older versions.</p> <p>Also note the missing <code>__locale_t</code> is mentioned in several places, e.g. <a href="http://sourceware.org/bugzilla/show_bug.cgi?id=10456" rel="nofollow">this bugreport</a>. I could just add <code>#include &lt;xlocale.h&gt;</code> in some files, but it seems the proper solution would be to get <code>__USE_XOPEN2K8</code> to be set.</p> <hr> <p>Edit: I've found <a href="http://readlist.com/lists/gcc.gnu.org/gcc-help/4/21431.html" rel="nofollow">this thread</a> describing the problem. Apparently, headers of the host system get "fixincluded" into the headers of the new compiler. The linked post suggests to edit features.h. Does anyone know if I have to recompile gcc / glibc afterwards (and how to get it to pick up the new features.h, rather than overwriting it)?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload