|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74906 Warning redirecting incorrect #include <sys/errno.h> to <errno.h>
Submitted: 2017-07-11 22:40 UTC Modified: -
From: peterkokot at gmail dot com Assigned:
Status: Closed Package: SNMP related
PHP Version: Irrelevant OS: Alpine 3.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
28 + 27 = ?
Subscribe to this entry?

 [2017-07-11 22:40 UTC] peterkokot at gmail dot com
When compiling the errno.h file included in snmp.c file has also include from not standard sys/errno.h for historic reasons. All other errno.h files included elsewhere in PHP code are included using <errno.h> which is also POSIX compliant.

Actual result:
In file included from /build/main/php7.2/src/php-7.2.0alpha3/ext/snmp/snmp.c:51:0:
/usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp]
 #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
/build/main/php7.2/src/php-7.2.0alpha3/ext/snmp/snmp.c: In function 'zm_startup_snmp':
/build/main/php7.2/src/php-7.2.0alpha3/ext/snmp/snmp.c:2328:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  php_snmp_object_handlers.get_gc = php_snmp_get_gc;


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-17 05:57 UTC]
Automatic comment on behalf of
Log: Fixed bug #74906 redirecting incorrect include &lt;sys/errno.h&gt;
 [2017-07-17 05:57 UTC]
-Status: Open +Status: Closed
 [2017-07-17 05:57 UTC]
Automatic comment on behalf of
Log: Fixed bug #74906 redirecting incorrect include &lt;sys/errno.h&gt;
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 14:01:33 2024 UTC