chandrasis / php-handlersocket

Automatically exported from code.google.com/p/php-handlersocket
0 stars 0 forks source link

Version 0.1.0 cannot compile with php 5.3.6 #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
After "make" I get:

/bin/sh /root/src/php/php-handlersocket/libtool --mode=compile c++  -I. 
-I/root/src/php/php-handlersocket -DPHP_ATOM_INC 
-I/root/src/php/php-handlersocket/include 
-I/root/src/php/php-handlersocket/main -I/root/src/php/php-handlersocket 
-I/opt/php-5.3.x/include/php -I/opt/php-5.3.x/include/php/main 
-I/opt/php-5.3.x/include/php/TSRM -I/opt/php-5.3.x/include/php/Zend 
-I/opt/php-5.3.x/include/php/ext -I/opt/php-5.3.x/include/php/ext/date/lib 
-I/usr/include/handlersocket  -DHAVE_CONFIG_H  -g -O2   -c 
/root/src/php/php-handlersocket/handlersocket.cc -o handlersocket.lo 
mkdir .libs
 c++ -I. -I/root/src/php/php-handlersocket -DPHP_ATOM_INC -I/root/src/php/php-handlersocket/include -I/root/src/php/php-handlersocket/main -I/root/src/php/php-handlersocket -I/opt/php-5.3.x/include/php -I/opt/php-5.3.x/include/php/main -I/opt/php-5.3.x/include/php/TSRM -I/opt/php-5.3.x/include/php/Zend -I/opt/php-5.3.x/include/php/ext -I/opt/php-5.3.x/include/php/ext/date/lib -I/usr/include/handlersocket -DHAVE_CONFIG_H -g -O2 -c /root/src/php/php-handlersocket/handlersocket.cc  -fPIC -DPIC -o .libs/handlersocket.o
/root/src/php/php-handlersocket/handlersocket.cc:260: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:340: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:340: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:340: error: template argument 
1 is invalid
/root/src/php/php-handlersocket/handlersocket.cc:340: error: template argument 
2 is invalid
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
array_to_filters(zval*, int&)’:
/root/src/php/php-handlersocket/handlersocket.cc:386: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:386: error: expected ‘;’ 
before ‘fe’
/root/src/php/php-handlersocket/handlersocket.cc:399: error: ‘fe’ was not 
declared in this scope
/root/src/php/php-handlersocket/handlersocket.cc:439: error: request for member 
‘push_back’ in ‘filter’, which is of non-class type ‘int’
/root/src/php/php-handlersocket/handlersocket.cc:439: error: ‘fe’ was not 
declared in this scope
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
handlersocket_prepare(dena::hstcpcli_i*, size_t, char*, zval*, long int, long 
int, char*, zval*, zval*)’:
/root/src/php/php-handlersocket/handlersocket.cc:534: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:534: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:534: error: template argument 
1 is invalid
/root/src/php/php-handlersocket/handlersocket.cc:534: error: template argument 
2 is invalid
/root/src/php/php-handlersocket/handlersocket.cc:534: error: invalid type in 
declaration before ‘;’ token
/root/src/php/php-handlersocket/handlersocket.cc:552: error: invalid types 
‘int[int]’ for array subscript
/root/src/php/php-handlersocket/handlersocket.cc:552: error: request for member 
‘size’ in ‘farr’, which is of non-class type ‘int’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket___construct(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:687: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_openIndex(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:742: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:747: error: no matching 
function for call to ‘dena::hstcpcli_i::request_buf_open_index(long int&, 
char*&, char*&, char*&, char*&, char*&)’
/usr/include/handlersocket/hstcpcli.hpp:32: note: candidates are: virtual void 
dena::hstcpcli_i::request_buf_open_index(size_t, const char*, const char*, 
const char*, const char*)
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeSingle(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:795: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeMulti(i
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

extern "C" {
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_handlersocket.h"
}

#include <sstream>

/* handlersocket */
#include <hstcpcli.hpp>

/* HandlerSocket */
typedef struct
{
    zend_object object;
    dena::hstcpcli_i *cli;
    long error_no;
    zval *error_str;
} php_handlersocket_t;

#define HANDLERSOCKET_OBJECT \
    php_handlersocket_t *hs; \
    hs = (php_handlersocket_t *)zend_object_store_get_object(getThis() TSRMLS_CC);
:1104
nt, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:816: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeUpdate(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1028: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:1035: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeDelete(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1055: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:1062: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeInsert(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1078: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:1085: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_getError(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1104: warning: format ‘%d’ 
expects type ‘int’, but argument 3 has type ‘long int’
make: *** [handlersocket.lo] Error 1
ice-niban ~/src/php/php-handlersocket: vi handlersocket.cc
handlersocket.cc       handlersocket.cc.test  
ice-niban ~/src/php/php-handlersocket: vi handlersocket.cc
ice-niban ~/src/php/php-handlersocket: apt-get install hsclient-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package hsclient-dev
ice-niban ~/src/php/php-handlersocket: apt-cache search hsclient
ice-niban ~/src/php/php-handlersocket: make
/bin/sh /root/src/php/php-handlersocket/libtool --mode=compile c++  -I. 
-I/root/src/php/php-handlersocket -DPHP_ATOM_INC 
-I/root/src/php/php-handlersocket/include 
-I/root/src/php/php-handlersocket/main -I/root/src/php/php-handlersocket 
-I/opt/php-5.3.x/include/php -I/opt/php-5.3.x/include/php/main 
-I/opt/php-5.3.x/include/php/TSRM -I/opt/php-5.3.x/include/php/Zend 
-I/opt/php-5.3.x/include/php/ext -I/opt/php-5.3.x/include/php/ext/date/lib 
-I/usr/include/handlersocket  -DHAVE_CONFIG_H  -g -O2   -c 
/root/src/php/php-handlersocket/handlersocket.cc -o handlersocket.lo 
 c++ -I. -I/root/src/php/php-handlersocket -DPHP_ATOM_INC -I/root/src/php/php-handlersocket/include -I/root/src/php/php-handlersocket/main -I/root/src/php/php-handlersocket -I/opt/php-5.3.x/include/php -I/opt/php-5.3.x/include/php/main -I/opt/php-5.3.x/include/php/TSRM -I/opt/php-5.3.x/include/php/Zend -I/opt/php-5.3.x/include/php/ext -I/opt/php-5.3.x/include/php/ext/date/lib -I/usr/include/handlersocket -DHAVE_CONFIG_H -g -O2 -c /root/src/php/php-handlersocket/handlersocket.cc  -fPIC -DPIC -o .libs/handlersocket.o
/root/src/php/php-handlersocket/handlersocket.cc:260: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:340: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:340: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:340: error: template argument 
1 is invalid
/root/src/php/php-handlersocket/handlersocket.cc:340: error: template argument 
2 is invalid
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
array_to_filters(zval*, int&)’:
/root/src/php/php-handlersocket/handlersocket.cc:386: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:386: error: expected ‘;’ 
before ‘fe’
/root/src/php/php-handlersocket/handlersocket.cc:399: error: ‘fe’ was not 
declared in this scope
/root/src/php/php-handlersocket/handlersocket.cc:439: error: request for member 
‘push_back’ in ‘filter’, which is of non-class type ‘int’
/root/src/php/php-handlersocket/handlersocket.cc:439: error: ‘fe’ was not 
declared in this scope
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
handlersocket_prepare(dena::hstcpcli_i*, size_t, char*, zval*, long int, long 
int, char*, zval*, zval*)’:
/root/src/php/php-handlersocket/handlersocket.cc:534: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:534: error: 
‘hstcpcli_filter’ is not a member of ‘dena’
/root/src/php/php-handlersocket/handlersocket.cc:534: error: template argument 
1 is invalid
/root/src/php/php-handlersocket/handlersocket.cc:534: error: template argument 
2 is invalid
/root/src/php/php-handlersocket/handlersocket.cc:534: error: invalid type in 
declaration before ‘;’ token
/root/src/php/php-handlersocket/handlersocket.cc:552: error: invalid types 
‘int[int]’ for array subscript
/root/src/php/php-handlersocket/handlersocket.cc:552: error: request for member 
‘size’ in ‘farr’, which is of non-class type ‘int’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket___construct(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:687: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_openIndex(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:742: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:747: error: no matching 
function for call to ‘dena::hstcpcli_i::request_buf_open_index(long int&, 
char*&, char*&, char*&, char*&, char*&)’
/usr/include/handlersocket/hstcpcli.hpp:32: note: candidates are: virtual void 
dena::hstcpcli_i::request_buf_open_index(size_t, const char*, const char*, 
const char*, const char*)
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeSingle(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:795: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeMulti(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:816: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeUpdate(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1028: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:1035: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeDelete(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1055: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:1062: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeInsert(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1078: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc:1085: warning: deprecated 
conversion from string constant to ‘char*’
/root/src/php/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_getError(int, zval*, zval**, zval*, int)’:
/root/src/php/php-handlersocket/handlersocket.cc:1104: warning: format ‘%d’ 
expects type ‘int’, but argument 3 has type ‘long int’
make: *** [handlersocket.lo] Error 1

Original issue reported on code.google.com by kupokom...@gmail.com on 2 Apr 2011 at 9:23

GoogleCodeExporter commented 8 years ago
Please update your hsclient date.
(2010-12-25 hstcpcli_filter been added.)

Original comment by avue...@gmail.com on 5 Apr 2011 at 10:17

GoogleCodeExporter commented 8 years ago
thank you, that explains

Original comment by kupokom...@gmail.com on 5 Apr 2011 at 2:37