Bug #15788: microtime.c compile failure
| From: | whit at transpect dot com | Date: | Thu, 28 Feb 2002 18:03:38 +0000 |
| Subject: | Bug #15788: microtime.c compile failure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-1306@lists.php.net to get a copy of this message | ||
From: whit@transpect.com
Operating system: Red Hat 6.0 (modified)
PHP version: 4.1.2
PHP Bug Type: Compile Failure
Bug description: microtime.c compile failure
Yes, I know this bug was marked "bogus" before. And I know
the FAQ says to make sure your symlink is right. But with
the symlink set right, using kernel 2.4.16 (built from the
tar), compilation chokes on this. This is not a good thing
when you have a bunch of people trying to upgrade because
of the security issue.
(The symlink:
/usr/include# ls -l linux
lrwxrwxrwx 1 root root 26 May 2 2001
linux -> ../src/linux/include/linux/)
This is using gcc version 2.95.3 20010315 (release), also
built from tar. Tried building the most recent version of
glibc, but installing that was a serious mistake -
breaking gcc among other things (if you make that mistake
and have to revert to backup, be sure to restore or
rebuild ld.so.cache first, without including it's files in
/usr/local/include in ld.so.conf).
Please let me suggest that the PHP team would better
always check against compiles of recent kernels.
On further attempt, the fix mentioned in the comments in
the FAQ, of commenting lines in microtime.c as follows:
/* #ifdef HAVE_SYS_RESOURCE_H */
#include <sys/resource.h>
/* #endif */
does work (although I've also reverted to gcc-2.7.2.3
since the glibc fiasco still has an afteraffect). So this
is a bug in PHP, not in the user's system (unless you want
to argue that kernel 2.4.16 has a bug here). Please fix
it. And please correct the FAQ build section to remove the
bogus advice that the user's symlinks or glibc version are
what needs to be fixed.
--
Edit bug report at http://bugs.php.net/?id=15788&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15788&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15788&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15788&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15788&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15788&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15788&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15788&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15788&r=submittedtwice