ID:               15788
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Red Hat 6.0 (modified)
 PHP Version:      4.1.2
 New Comment:

the faq is (was, after the recent checkin) wrong. /usr/include/linux
should never be a symlink to kernel sources. this has been
well-discussed on various linux mailing lists. if your system has
symlinks from /usr/include to the kernel source tree, it is broken.


Previous Comments:
------------------------------------------------------------------------

[2002-02-28 13:03:36] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=15788&edit=1

Reply via email to