php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64285 Build failure: unknown type name 'php_socket'
Submitted: 2013-02-23 10:48 UTC Modified: 2013-02-23 23:50 UTC
From: php-bugs-2013 at ryandesign dot com Assigned: glopes (profile)
Status: Closed Package: Sockets related
PHP Version: 5.5.0alpha5 OS: OS X 10.8.2
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: php-bugs-2013 at ryandesign dot com
New email:
PHP Version: OS:

 

 [2013-02-23 10:48 UTC] php-bugs-2013 at ryandesign dot com
Description:
------------
I'm the maintainer of PHP in MacPorts, trying to update our php55 packages. In 
5.5.0alpha4 everything built fine but with 5.5.0alpha5 the sockets extension 
does not build. The first error is:


/bin/sh 
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/libtool --mode=compile /usr/bin/clang  
-I. -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets -DPHP_ATOM_INC -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/include -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/main -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets -I/opt/local/include/php55/php -
I/opt/local/include/php55/php/main -I/opt/local/include/php55/php/TSRM -
I/opt/local/include/php55/php/Zend -I/opt/local/include/php55/php/ext -
I/opt/local/include/php55/php/ext/date/lib -I/opt/local/include  -
I/opt/local/include -DHAVE_CONFIG_H  -pipe -O2 -arch x86_64   -c 
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/conversions.c -o conversions.lo 
 /usr/bin/clang -I. -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets -DPHP_ATOM_INC -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/include -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/main -
I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets -I/opt/local/include/php55/php -
I/opt/local/include/php55/php/main -I/opt/local/include/php55/php/TSRM -
I/opt/local/include/php55/php/Zend -I/opt/local/include/php55/php/ext -
I/opt/local/include/php55/php/ext/date/lib -I/opt/local/include -
I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c 
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/conversions.c  -fno-common -DPIC -o 
.libs/conversions.o
In file included from 
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_php/php55-
sockets/work/php-5.5.0alpha5/ext/sockets/conversions.c:1:
./sockaddr_conv.h:19:65: error: unknown type name 'php_socket'; did you mean 
'php_socket_t'?
int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket 
*php_sock TSRMLS_DC);
                                                                ^~~~~~~~~~
                                                                php_socket_t
/opt/local/include/php55/php/main/php_network.h:95:13: note: 'php_socket_t' 
declared here
typedef int php_socket_t;
            ^


The sockets extension appears to have undergone extensive changes between 
5.5.0alpha4 and 5.5.0alpha5 and I don't know how to fix this problem.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-23 11:42 UTC] laruence@php.net
-Assigned To: +Assigned To: glopes
 [2013-02-23 11:42 UTC] laruence@php.net
glopes, please look at this.
 [2013-02-23 23:50 UTC] cataphract@php.net
-Status: Assigned +Status: Closed
 [2013-02-23 23:50 UTC] cataphract@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 07:01:29 2024 UTC