Mailing List Archive

Re: Compiling Apache 0.8.13 under NEXTSTEP
RLIMIT_NOFILE was introduced .12 -> .13 (for BSD).

The following is from c.i.www.servers.unix

If you have a solution, please post it in the newsgroup also.


steve@biostat.ucsf.edu wrote:
>Has anyone successfully done this? I have had no problem with
>the other 0.8 versions, but for 0.8.13, I get the following errors:
>
>cc -c -O2 -DNEXT http_config.c
>http_config.c: In function `init_virtual_host':
>http_config.c:632: `RLIMIT_NOFILE' undeclared (first use this function)
>http_config.c:632: (Each undeclared identifier is reported only once
>http_config.c:632: for each function it appears in.)
>*** Exit 1
>
>Any suggestions would be appreciated.
>
>Stephen Shiboski <steve@biostat.ucsf.edu>
>Division of Biostatistics
>University of California, San Francisco
>
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
On my BSDI 2.0 system I have in /usr/include/sys/resource.h:

| #define RLIMIT_NOFILE 8 /* number of open files */

resource.h is included if BSD is defined, and "RLIMIT_NOFILE" is only
reached if BSD is defined, so we have a system out there defining
BSD > 0 but not RLIMIT_NOFILE. I also see in resource.h:

| #define RLIMIT_OFILE RLIMIT_NOFILE /* compat */

What OS is this problem on?

Sheesh, time to write that bug report form handler.

Brian

On Mon, 11 Sep 1995, Rob Hartill wrote:
> RLIMIT_NOFILE was introduced .12 -> .13 (for BSD).
>
> The following is from c.i.www.servers.unix
>
> If you have a solution, please post it in the newsgroup also.
>
>
> steve@biostat.ucsf.edu wrote:
> >Has anyone successfully done this? I have had no problem with
> >the other 0.8 versions, but for 0.8.13, I get the following errors:
> >
> >cc -c -O2 -DNEXT http_config.c
> >http_config.c: In function `init_virtual_host':
> >http_config.c:632: `RLIMIT_NOFILE' undeclared (first use this function)
> >http_config.c:632: (Each undeclared identifier is reported only once
> >http_config.c:632: for each function it appears in.)
> >*** Exit 1
> >
> >Any suggestions would be appreciated.
> >
> >Stephen Shiboski <steve@biostat.ucsf.edu>
> >Division of Biostatistics
> >University of California, San Francisco
> >
>
>

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com brian@hyperreal.com http://www.[hyperreal,organic].com/
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
steve@biostat.ucsf.edu wrote:
>Has anyone successfully done this? I have had no problem with
>the other 0.8 versions, but for 0.8.13, I get the following errors:
>
>cc -c -O2 -DNEXT http_config.c
>http_config.c: In function `init_virtual_host':
>http_config.c:632: `RLIMIT_NOFILE' undeclared (first use this function)
>http_config.c:632: (Each undeclared identifier is reported only once
>http_config.c:632: for each function it appears in.)
>*** Exit 1

damn, it doesn't seem to be set for NeXT.

On a SunOs unix, it's set to 6,

#define RLIMIT_NOFILE 6 /* maximum descriptor index + 1 */

Not sure if it's a good idea to just add that, but you can try, maybe even
compile with -DRLIMIT_NOFILE=6


rob
--
http://nqcd.lanl.gov/~hartill/
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
> What OS is this problem on?

NeXT. I have access to a couple (one old black-hardware, and one HP-715)

% grep RLIMIT_ /usr/include/bsd/sys/resource.h
#define RLIMIT_CPU 0 /* cpu time in milliseconds */
#define RLIMIT_FSIZE 1 /* maximum file size */
#define RLIMIT_DATA 2 /* data size */
#define RLIMIT_STACK 3 /* stack size */
#define RLIMIT_CORE 4 /* core file size */
#define RLIMIT_RSS 5 /* resident set size */


Maybe I should start doing compilation checks on NeXT too. Oh gawd.

rob
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
>
> > What OS is this problem on?
>
> NeXT. I have access to a couple (one old black-hardware, and one HP-715)
>
> % grep RLIMIT_ /usr/include/bsd/sys/resource.h
> #define RLIMIT_CPU 0 /* cpu time in milliseconds */
> #define RLIMIT_FSIZE 1 /* maximum file size */
> #define RLIMIT_DATA 2 /* data size */
> #define RLIMIT_STACK 3 /* stack size */
> #define RLIMIT_CORE 4 /* core file size */
> #define RLIMIT_RSS 5 /* resident set size */
>
>
> Maybe I should start doing compilation checks on NeXT too. Oh gawd.
>
> rob

It may be more appropriate to use ulimit() on the NeXT. HPsUX, SunOS,
and other BSD variants all seem to have a complete setrlimit function,
but I fully expected there to be an exception. Kind of surprised
that NeXT is defining BSD... But then, I've never seen a NeXT.
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
> RLIMIT_NOFILE was introduced .12 -> .13 (for BSD).
>
> The following is from c.i.www.servers.unix
>
> If you have a solution, please post it in the newsgroup also.

I'll see if anyone has posted a fix. The setrlimit code is selfcontained.
It would be easy to comment it out for the NeXT.
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
This seems to be from patch 16_0.8.12. but I belive it does have
a clause around it though. He must be declaring BSD somewhere
along the line.

<Aram>


At 08:36 PM 9/11/95 -0600, you wrote:
>RLIMIT_NOFILE was introduced .12 -> .13 (for BSD).
>
>The following is from c.i.www.servers.unix
>
>If you have a solution, please post it in the newsgroup also.
>
>
>steve@biostat.ucsf.edu wrote:
>>Has anyone successfully done this? I have had no problem with
>>the other 0.8 versions, but for 0.8.13, I get the following errors:
>>
>>cc -c -O2 -DNEXT http_config.c
>>http_config.c: In function `init_virtual_host':
>>http_config.c:632: `RLIMIT_NOFILE' undeclared (first use this function)
>>http_config.c:632: (Each undeclared identifier is reported only once
>>http_config.c:632: for each function it appears in.)
>>*** Exit 1
>>
>>Any suggestions would be appreciated.
>>
>>Stephen Shiboski <steve@biostat.ucsf.edu>
>>Division of Biostatistics
>>University of California, San Francisco
>>
>
>
>
--
Aram W. Mirzadeh, MIS Manager, Qosina Corporation
http://www.qosina.com/~awm/, awm@qosina.com
Apache httpd server team http://www.apache.org
Re: Compiling Apache 0.8.13 under NEXTSTEP [ In reply to ]
At 07:39 PM 9/11/95 -0700, you wrote:
>
>On my BSDI 2.0 system I have in /usr/include/sys/resource.h:
>
>| #define RLIMIT_NOFILE 8 /* number of open files */
>
>resource.h is included if BSD is defined, and "RLIMIT_NOFILE" is only
>reached if BSD is defined, so we have a system out there defining
>BSD > 0 but not RLIMIT_NOFILE. I also see in resource.h:
>
>| #define RLIMIT_OFILE RLIMIT_NOFILE /* compat */
>
>What OS is this problem on?

From the -DNEXT, I would say, it's a NEXT. Do NEXT systems use
BSD calls?

>
>Sheesh, time to write that bug report form handler.
>
> Brian
>
>On Mon, 11 Sep 1995, Rob Hartill wrote:
>> RLIMIT_NOFILE was introduced .12 -> .13 (for BSD).
>>
>> The following is from c.i.www.servers.unix
>>
>> If you have a solution, please post it in the newsgroup also.
>>
>>
>> steve@biostat.ucsf.edu wrote:
>> >Has anyone successfully done this? I have had no problem with
>> >the other 0.8 versions, but for 0.8.13, I get the following errors:
>> >
>> >cc -c -O2 -DNEXT http_config.c
>> >http_config.c: In function `init_virtual_host':
>> >http_config.c:632: `RLIMIT_NOFILE' undeclared (first use this function)
>> >http_config.c:632: (Each undeclared identifier is reported only once
>> >http_config.c:632: for each function it appears in.)
>> >*** Exit 1
>> >
>> >Any suggestions would be appreciated.
>> >
>> >Stephen Shiboski <steve@biostat.ucsf.edu>
>> >Division of Biostatistics
>> >University of California, San Francisco
>> >
>>
>>
>
>--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
>brian@organic.com brian@hyperreal.com http://www.[hyperreal,organic].com/
>
>
--
Aram W. Mirzadeh, MIS Manager, Qosina Corporation
http://www.qosina.com/~awm/, awm@qosina.com
Apache httpd server team http://www.apache.org