Re: sockets broken in 5.4 on Mac OS X
| From: | Scott MacVicar | Date: | Sun, 10 Jul 2011 23:23:41 +0000 |
| Subject: | Re: sockets broken in 5.4 on Mac OS X | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53821@lists.php.net to get a copy of this message | ||
On Jul 10, 2011, at 4:21 PM, Stas Malyshev wrote:
> Hi!
>
> I was now building 5.4 on Mac with sockets enabled and got this:
>
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c: In function ‘php_if_index_to_addr4’:
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c:426: error: ‘struct ifreq’ has no member
> named ‘ifr_ifindex’
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c: In function ‘php_add4_to_if_index’:
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c:506: error: ‘SIOCGIFINDEX’ undeclared
> (first use in this function)
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c:506: error: (Each undeclared identifier is
> reported only once
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c:506: error: for each function it appears in.)
> /Users/smalyshev/php-5.4/ext/sockets/multicast.c:513: error: ‘struct ifreq’ has no member
> named ‘ifr_ifindex’
>
> Redoing buildconf/configure didn't help. Any ideas?
The code for this looks really convoluted, I'm thinking we should back out this multicast
option for now. It's basically not going to work on OSX the way its implemented from what I can
tell.
- S