|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: peterkokot at gmail dot com
New email:
PHP Version: OS:


 [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: Sun Apr 14 20:01:30 2024 UTC