Bug #75582 [Fbk->NoF]: error: use of undeclared identifier 'IFF_BROADCAST'
Edit report at https://bugs.php.net/bug.php?id=75582&edit=1
ID: 75582
Updated by: php-bugs@lists.php.net
Reported by: fa@php.net
Summary: error: use of undeclared identifier 'IFF_BROADCAST'
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Compile Failure
Operating System: OpenBSD 6.2
PHP Version: master-Git-2017-11-27 (Git)
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-04-06 11:08:25] cmb@php.net
Hasn't this been fixed in the meantime[1]?
[1] <https://github.com/php/php-src/commit/a95e8b80db1bb41844978f70cee93691b3c7206f>
------------------------------------------------------------------------
[2017-11-27 17:29:43] fa@php.net
Forgot to mention I used
AUTOCONF_VERSION=2.69
PHP_AUTOCONF=/usr/local/bin/autoconf-2.69
as build.mk wouldn't pick up my autoconf on this box. That one could totally be my fault
though.
------------------------------------------------------------------------
[2017-11-27 17:27:59] fa@php.net
Description:
------------
./buildconf
./configure
make
config.log at http://sprunge.us/LQYj
/bin/sh /home/florian/php-src/libtool --silent --preserve-dup-deps --mode=compile cc
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/home/florian/php-src/ext/standard/
-DPHP_ATOM_INC -I/home/florian/php-src/include -I/home/florian/php-src/main -I/home/florian/php-src
-I/home/florian/php-src/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include
-I/home/florian/php-src/ext/sqlite3/libsqlite -I/home/florian/php-src/TSRM
-I/home/florian/php-src/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c
/home/florian/php-src/ext/standard/net.c -o ext/standard/net.lo
/home/florian/php-src/ext/standard/net.c:287:40: error: use of undeclared identifier
'IFF_BROADCAST'
(p->ifa_flags & IFF_BROADCAST) ? p->ifa_broadaddr :
NULL,
^
/home/florian/php-src/ext/standard/net.c:288:31: error: use of undeclared identifier
'IFF_POINTOPOINT'
(p->ifa_flags & IFF_POINTOPOINT) ?
p->ifa_dstaddr : NULL);
^
2 errors generated.
*** Error 1 in /home/florian/php-src (Makefile:1118 'ext/standard/net.lo')
Expected result:
----------------
Build should work.
Replacing
#if HAVE_NET_IF_H
# include <net/if.h>
#endif
with
# include <net/if.h>
in https://github.com/php/php-src/blob/master/ext/standard/net.c#L26
fixes this. Maybe it's an autoconf oddity? autoconf version is 2.69
ac_cv_header_net_if_h=no in config.log
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75582&edit=1
Thread (4 messages)