Bug #75529 [NEW]: No sys_getloadavg() function under uClibc
| From: | diniboy74 at gmail dot com | Date: | Wed, 15 Nov 2017 20:37:36 +0000 |
| Subject: | Bug #75529 [NEW]: No sys_getloadavg() function under uClibc | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-212609@lists.php.net to get a copy of this message | ||
From: diniboy74 at gmail dot com
Operating system: embedded Linux 2.6.31.8
PHP version: 7.1.11
Package: *General Issues
Bug Type: Bug
Bug description:No sys_getloadavg() function under uClibc
Description:
------------
On uClibc, there is no sys/loadavg.h header file, therefore the
usability of sys_getloadavg() function going to be disabled during the
configure time.
But, we have a /proc/loadavg on uClibc, which returns the following:
0.03 0.03 0.00 2/322 19121
I would really appreciate a patch to solve this.
Thanks.
Actual result:
--------------
configure:12460: checking for sys/loadavg.h
conftest.c:128:25: fatal error: sys/loadavg.h: No such file or
directory
#include <sys/loadavg.h>
| #include <sys/loadavg.h>
configure:14430: checking for getloadavg
/i-data/bf835951/build/php-7.1.11/conftest.c:210: undefined reference to
`getloadavg'
| /* Define getloadavg to an innocuous variant, in case <limits.h>
declares getloadavg.
| #define getloadavg innocuous_getloadavg
| which can conflict with char getloadavg (); below.
| #undef getloadavg
| char getloadavg ();
| #if defined __stub_getloadavg || defined __stub___getloadavg
| return getloadavg ();
ac_cv_func_getloadavg=no
ac_cv_header_sys_loadavg_h=no
--
Edit bug report at https://bugs.php.net/bug.php?id=75529&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75529&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75529&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75529&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75529&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75529&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75529&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75529&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75529&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75529&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75529&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75529&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75529&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75529&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75529&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75529&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75529&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75529&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75529&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75529&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75529&r=mysqlcfg