www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sklar <sk...@student.net>
Subject os-linux/1853: No RLIMIT_AS => No compilation
Date Sat, 21 Feb 1998 00:16:03 GMT

>Number:         1853
>Category:       os-linux
>Synopsis:       No RLIMIT_AS => No compilation
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Feb 20 16:20:01 PST 1998
>Last-Modified:
>Originator:     sklar@student.net
>Organization:
apache
>Release:        1.3b6-dev
>Environment:
Linux richard-scarry.sklar.com 2.0.26 #1 Mon Feb 16 19:10:23 EST 1998 sparc unkn
own
>Description:
Linux 2.0.26 / sparc doesn't have RLIMIT_AS in /usr/include/asm/resource.h, so
compilation fails on src/main/util_script.c:

make[1]: Entering directory `/usr/local/src/apache-cvs/apache-1.3/src/main'
gcc -c  -I../os/unix -I../include    -DLINUX=2 -DSERVER_SUBVERSION=\"PHP/3.0-dev
\" -DUSE_HSREGEX   util_script.c
util_script.c: In function `call_exec':
util_script.c:625: `RLIMIT_AS' undeclared (first use this function)
util_script.c:625: (Each undeclared identifier is reported only once
util_script.c:625: for each function it appears in.)
make[1]: *** [util_script.o] Error 1
>How-To-Repeat:
Build on SparcLinux 2.0.26
>Fix:
The following diff on src/include/conf.h seems to work...

--- conf.h.orig Fri Feb 20 19:12:12 1998
+++ conf.h      Fri Feb 20 19:12:35 1998
@@ -376,7 +376,9 @@
  * older BSD semantics (some would actually call this a bug, like me -djg).
  */
 #ifndef RLIMIT_VMEM
+#ifdef RLIMIT_AS
 #define RLIMIT_VMEM RLIMIT_AS
+#endif
 #endif

 /* flock is faster ... but hasn't been tested on 1.x systems *%2
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message