I've got the microtime.c build problem mentioned in the FAQ with PHP
4.1.2 on Redhat 6.1:

[root@superfly /root]# uname -a
Linux superfly 2.4.13 #1 SMP Sun Nov 25 18:39:15 CET 2001 i686 unknown

[root@superfly /root]# ldd --version
ldd (GNU libc) 2.1.2

And my symlinks form the kerneldir to /usr/include are OK. Running the
test mentioned in the FAQ gives warnings but no errors:

[root@superfly php-4.1.2]# gcc -E test.c >/dev/null
In file included from /usr/include/sys/resource.h:25,
                 from test.c:1:
/usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:26: warning: this is the location of the
previous definition

The workaround described by Lukas on 23-Jan-2002 06:49 works for me too,
i.e. commenting out

#ifdef HAVE_SYS_RESOURCE_H (and the corresponding #endif)

in microtime.c to make sure that sys/resource.h gets included.

My question is: Is this a bug or am I screwing something up by
commenting out those 2 lines?

Regards, Frank 

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to