Bug #75582 [Com]: error: use of undeclared identifier 'IFF_BROADCAST'
Edit report at https://bugs.php.net/bug.php?id=75582&edit=1
ID: 75582
Comment by: fa@php.net
Reported by: fa@php.net
Summary: error: use of undeclared identifier 'IFF_BROADCAST'
Status: Open
Type: Bug
Package: Compile Failure
Operating System: OpenBSD 6.2
PHP Version: master-Git-2017-11-27 (Git)
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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)