lkml.org 
[lkml]   [1996]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject_SC_* gone?
hi, i was recompiling sml of new jersey under 2.0.0
and got this error:

....
gcc -ansi -O -DHOST_X86 -DTARGET_X86 -DOPSYS_UNIX -DOPSYS_LINUX -D_POSIX_SOURCE -D_BSD_SOURCE -DVRE
GS -DCALLEESAVE=3 -I../../objs -I../../include -I.. -c sysconf.c
In file included from sysconf.c:36:
ml_sysconf.h:24: `_SC_LOGNAME_MAX' undeclared here (not in a function)
ml_sysconf.h:24: initializer element for `values[19].val' is not constant
ml_sysconf.h:28: `_SC_PASS_MAX' undeclared here (not in a function)
ml_sysconf.h:28: initializer element for `values[23].val' is not constant
ml_sysconf.h:34: `_SC_XOPEN_VERSION' undeclared here (not in a function)
ml_sysconf.h:34: initializer element for `values[29].val' is not constant
...

looking at the sources in sysconf.c, the comment says:

/* The following table is generated from all _SC_ values
* in unistd.h. For most systems, this will include
* _SC_ARG_MAX
* _SC_CHILD_MAX
* _SC_CLK_TCK
* _SC_JOB_CONTROL
* _SC_NGROUPS_MAX
* _SC_OPEN_MAX
* _SC_SAVED_IDS
* _SC_STREAM_MAX
* _SC_TZNAME_MAX
* _SC_VERSION
*
* The full POSIX list is given in section 4.8.1 of Std 1003.1b-1993.
*
* The SML string used to look up these values has the same
* form but without the prefix, e.g., to lookup _SC_ARG_MAX,
* use sysconf "ARG_MAX"
*/
static name_val_t values[] = {
#include "ml_sysconf.h"
};


which i guess implies that those things should be standard?

who needs updating, the sml folks
or (this particular release of) linux?

thanks,

-- carlos


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.044 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site