php.net |  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.
Password:
Status:
Package:
Bug Type:
Summary:
From: peterkokot at gmail dot com
New email:
PHP Version: OS:

 

 [2017-07-11 22:40 UTC] peterkokot at gmail dot com
Description:
------------
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;


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-17 05:57 UTC] krakjoe@php.net
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4d08b9dac0d42d93ed1c6f0617e1426f013b981f
Log: Fixed bug #74906 redirecting incorrect include &lt;sys/errno.h&gt;
 [2017-07-17 05:57 UTC] krakjoe@php.net
-Status: Open +Status: Closed
 [2017-07-17 05:57 UTC] krakjoe@php.net
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9780d16376803744c77135e0a6ae149e88954dc4
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 Apr 25 00:01:41 2024 UTC