Bug #75582 [NEW]: error: use of undeclared identifier 'IFF_BROADCAST'
From: fa
Operating system: OpenBSD 6.2
PHP version: master-Git-2017-11-27 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:error: use of undeclared identifier 'IFF_BROADCAST'
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 bug report at https://bugs.php.net/bug.php?id=75582&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75582&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75582&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75582&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75582&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75582&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75582&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75582&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75582&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75582&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75582&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75582&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75582&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75582&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75582&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75582&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75582&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75582&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75582&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75582&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75582&r=mysqlcfg
Thread (4 messages)
- fa@php.net