juhyunkwon / php-handlersocket

Automatically exported from code.google.com/p/php-handlersocket
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Can't compile php extension #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi. I'm try to install from source. And get the following error:
# make
/bin/sh /usr/src/php-handlersocket/libtool --mode=compile g++  -I. 
-I/usr/src/php-handlersocket -DPHP_ATOM_INC 
-I/usr/src/php-handlersocket/include -I/usr/src/php-handlersocket/main 
-I/usr/src/php-handlersocket -I/usr/include/php -I/usr/include/php/main 
-I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext 
-I/usr/local/include/handlersocket  -DHAVE_CONFIG_H     -c 
/usr/src/php-handlersocket/handlersocket.cc -o handlersocket.lo
 g++ -I. -I/usr/src/php-handlersocket -DPHP_ATOM_INC -I/usr/src/php-handlersocket/include -I/usr/src/php-handlersocket/main -I/usr/src/php-handlersocket -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/handlersocket -DHAVE_CONFIG_H -c /usr/src/php-handlersocket/handlersocket.cc  -fPIC -DPIC -o .libs/handlersocket.o
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
hs_response_value(php_hs_t*, zval*, size_t, int)':
/usr/src/php-handlersocket/handlersocket.cc:1095: error: 'array_init_size' was 
not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_auth(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1276: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1285: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1294: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_openIndex(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1374: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1382: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1391: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1400: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_executeSingle(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1474: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1487: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_executeMulti(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1655: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1686: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1686: error:   initializing 
argument 2 of 'int add_next_index_stringl(zval*, char*, uint, int)'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_executeUpdate(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1750: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1763: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_executeDelete(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1826: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1839: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_executeInsert(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1895: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:1908: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocket_createIndex(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:1990: error: 'zend_vm_stack_push' 
was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:1990: error: 
'zim_HandlerSocketIndex___construct' was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:1990: error: 'zend_vm_stack_pop' 
was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:1996: error: 'zend_vm_stack_push' 
was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:1996: error: 
'zim_HandlerSocketIndex___construct' was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:1996: error: 'zend_vm_stack_pop' 
was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:2003: error: 'zend_vm_stack_push' 
was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:2003: error: 
'zim_HandlerSocketIndex___construct' was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc:2003: error: 'zend_vm_stack_pop' 
was not declared in this scope
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex___construct(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:2166: warning: overflow in implicit 
constant conversion
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex_getField(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:2262: warning: overflow in implicit 
constant conversion
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex_find(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:2409: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:2423: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex_insert(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:2534: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:2547: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex_update(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:2642: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:2655: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex_remove(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:2753: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:2766: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc: In function 'void 
zif_HandlerSocketIndex_multi(int, zval*, zval**, zval*, int)':
/usr/src/php-handlersocket/handlersocket.cc:3237: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:3267: error: invalid conversion 
from 'const char*' to 'char*'
/usr/src/php-handlersocket/handlersocket.cc:3267: error:   initializing 
argument 2 of 'int add_next_index_stringl(zval*, char*, uint, int)'
make: *** [handlersocket.lo] Error 1

# php -v
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:46)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

# mysql --version
mysql  Ver 14.14 Distrib 5.5.15, for Linux (x86_64) using readline 5.1

Original issue reported on code.google.com by gotlium on 14 Nov 2011 at 5:04

GoogleCodeExporter commented 9 years ago
Please check and try to apply the patch.

Original comment by avue...@gmail.com on 15 Nov 2011 at 11:04

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks)) Now it working and I'm happy))))

Original comment by gotlium on 15 Nov 2011 at 11:44

GoogleCodeExporter commented 9 years ago
I had the same error, after applying the patch, I got different error:

# make
/bin/sh /root/php-handlersocket/libtool --mode=compile g++  -I. 
-I/root/php-handlersocket -DPHP_ATOM_INC -I/root/php-handlersocket/include 
-I/root/php-handlersocket/main -I/root/php-handlersocket -I/usr/include/php 
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend 
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib 
-I/usr/include/handlersocket  -DHAVE_CONFIG_H  -g -O2   -c 
/root/php-handlersocket/handlersocket.cc -o handlersocket.lo
 g++ -I. -I/root/php-handlersocket -DPHP_ATOM_INC -I/root/php-handlersocket/include -I/root/php-handlersocket/main -I/root/php-handlersocket -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/handlersocket -DHAVE_CONFIG_H -g -O2 -c /root/php-handlersocket/handlersocket.cc  -fPIC -DPIC -o .libs/handlersocket.o
/root/php-handlersocket/handlersocket.cc: In function 'void 
zim_HandlerSocket_auth(int, zval*, zval**, zval*, int)':
/root/php-handlersocket/handlersocket.cc:1286: error: 'struct dena::hstcpcli_i' 
has no member named 'request_buf_auth'
/root/php-handlersocket/handlersocket.cc: In function 'void 
zim_HandlerSocketIndex___construct(int, zval*, zval**, zval*, int)':
/root/php-handlersocket/handlersocket.cc:2179: warning: overflow in implicit 
constant conversion
/root/php-handlersocket/handlersocket.cc: In function 'void 
zim_HandlerSocketIndex_getField(int, zval*, zval**, zval*, int)':
/root/php-handlersocket/handlersocket.cc:2275: warning: overflow in implicit 
constant conversion
make: *** [handlersocket.lo] Error 1

Original comment by shantanu.oak on 8 Mar 2012 at 9:07

GoogleCodeExporter commented 9 years ago
Here is PHP and MysQL version

# php -v
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

# mysql --version
mysql  Ver 14.14 Distrib 5.5.20, for Linux (x86_64) using readline 5.1

Original comment by shantanu.oak on 8 Mar 2012 at 9:10

GoogleCodeExporter commented 9 years ago
Hi
I had the same error. This is what I did:
I checked in the directory, and there was no file handlersocket.lo. Instead 
there was a file handlersocket.loT. So, I copied it to handlersocket.lo and it 
worked. Hope that helps. My guess is there is a small bug that creates this 
filename incorrectly in some cases.

Original comment by suhitha....@gmail.com on 12 Jun 2012 at 5:51