php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10340 HAVE_SYS_RESOURCE_H not defined
Submitted: 2001-04-15 14:57 UTC Modified: 2001-05-23 06:11 UTC
From: elkner at linofee dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.4pl1 OS: Linux 2.4.3 i686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: elkner at linofee dot org
New email:
PHP Version: OS:

 

 [2001-04-15 14:57 UTC] elkner at linofee dot org
configure checks (6524, 25069) for rusage seem to be ok, but make chokes during compilation of ext/standard/microtime.c about unknown storage size uf usg (struct rusage) and undeclared RUSAGE_SELF. Also there are several warnings about redeclaration of RLIM_INFINITY...
Quick and dirty fix for the compiler error:

--- microtime.c Mon Jun  5 21:47:44 2000
+++ ../../../../php-4.0.4pl1/ext/standard/microtime.c   Sun Apr 15 20:02:12 2001
@@ -38,6 +38,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <errno.h>
+#include <sys/resource.h>
 
 #include "microtime.h"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 01:01:30 2025 UTC