The following reply was made to PR os-linux/3177; it has been noted by GNATS.
From: "Michael" <[EMAIL PROTECTED]> To: Manoj Kasichainula <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: os-linux/3177: typedef error in http_core.c Date: Wed, 21 Oct 1998 17:30:18 +0000 > > > > # gcc -E ap_config.h >tmp > > > > ap_config.h:92: os.h: No such file or directory > > > > Oh, by the way, this fails on 2.0.3x systems as well. I don't think > > is necessarily the problem, but there must be a chain of includes > > that gets back around to this during the compile (on 2.0.3x) that > > fails on 1.2.13 > > > > > > Yes, this is a problem. You should have an os.h in src/os/unix > > > > it is there > > > > > and the includes during compiles should reference it. Try again with a > > > completely clean 1.3.3 and see if the problem shows up again. > > > > Yep. > > > > local/etc/httpd\" http_core.c > > http_core.c: In function `set_rlimit': > > http_core.c:2029: `rlim_t' undeclared (first use this function) > > > > Done with a freshly un-tarred 1.3.3 > > > > > If so, > > > could you also paste in the compile command used for http_core.c, and > > > > whatever is in the Makefile, I made no changes > > But what is the specific command used to compile http_core.c that you > see on the screen? > Sorry here it is... gcc -c -I../os/unix -I../include -DLINUX=1 -DUSE_HSREGEX http_core.c http_core.c: In function `set_rlimit': http_core.c:2029:`rlim_t' undeclared (first use this function) > > here is what I did: > > > > tar -xvf apache_1.3.3.tar (fresh) > > cd apache_1.3.3/src > > Configure (no arguments) > > make > > > > pure vanilla > > ------------------------- > > When this is done on a 2.0.3x system, everything works great. > > on my 1.2.13 system I get the error. > > Didn't you say at the top that this fails on 2.0.3x as well? > > > I think something is missing from the Configure script or one of the > > header files and an assumption has been made about system includes > > that have changed from the older OS to the newer ones. > > Maybe. I don't have any systems running 1.x, so I can't diagnose this. > > > Manually editing httpd_core.c to include the typedef works fine, and > > the httpd executes normally > > I'm guessing some mixup in your include files actually. I believe that > rlim_t is defined in the header files for libc, not the kernel, and > Apache will typedef rlim_t if your libc is before glibc 2.1. > [EMAIL PROTECTED]
