hqlulu / php-handlersocket

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

Does not compile in Ubuntu natty 64bits php 5.3.5 #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.phpize
2.configure
3.make

What is the expected output? What do you see instead?
Expected: Compiled binary
I see  make: *** [handlersocket.lo] Error 1

What version of the product are you using? On what operating system?
0.2.0 - Further info below

Please provide any additional information below.
marcos@marcos-desktop:~/Programas/php-handlersocket$ make
/bin/bash /home/marcos/Programas/php-handlersocket/libtool --mode=compile g++  
-I. -I/home/marcos/Programas/php-handlersocket -DPHP_ATOM_INC 
-I/home/marcos/Programas/php-handlersocket/include 
-I/home/marcos/Programas/php-handlersocket/main 
-I/home/marcos/Programas/php-handlersocket -I/usr/include/php5 
-I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend 
-I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib 
-I/usr/include/handlersocket  -DHAVE_CONFIG_H  -g -O2   -c 
/home/marcos/Programas/php-handlersocket/handlersocket.cc -o handlersocket.lo 
libtool: compile:  g++ -I. -I/home/marcos/Programas/php-handlersocket 
-DPHP_ATOM_INC -I/home/marcos/Programas/php-handlersocket/include 
-I/home/marcos/Programas/php-handlersocket/main 
-I/home/marcos/Programas/php-handlersocket -I/usr/include/php5 
-I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend 
-I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib 
-I/usr/include/handlersocket -DHAVE_CONFIG_H -g -O2 -c 
/home/marcos/Programas/php-handlersocket/handlersocket.cc  -fPIC -DPIC -o 
.libs/handlersocket.o
/home/marcos/Programas/php-handlersocket/handlersocket.cc:266:1: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
handlersocket_prepare(dena::hstcpcli_i*, size_t, char*, zval*, long int, long 
int, char*, zval*, zval*, long int, zval*)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:565:46: error: no 
matching function for call to 
‘dena::hstcpcli_i::request_buf_exec_generic(size_t&, dena::string_ref&, 
dena::string_ref*, std::vector<dena::string_ref, 
std::allocator<dena::string_ref> >::size_type, long int&, long int&, 
dena::string_ref&, dena::string_ref*, std::vector<dena::string_ref, 
std::allocator<dena::string_ref> >::size_type, dena::hstcpcli_filter*, 
std::vector<dena::hstcpcli_filter, std::allocator<dena::hstcpcli_filter> 
>::size_type, long int&, dena::string_ref*, std::vector<dena::string_ref, 
std::allocator<dena::string_ref> >::size_type)’
/usr/include/handlersocket/hstcpcli.hpp:43:16: note: candidate is: virtual void 
dena::hstcpcli_i::request_buf_exec_generic(size_t, const dena::string_ref&, 
const dena::string_ref*, size_t, uint32_t, uint32_t, const dena::string_ref&, 
const dena::string_ref*, size_t, const dena::hstcpcli_filter*, size_t)
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket___construct(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:701:54: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_openIndex(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:756:35: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeSingle(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:812:37: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeMulti(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:833:50: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeUpdate(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1066:62: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1073:78: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeDelete(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1096:37: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1103:76: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_executeInsert(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1119:25: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1127:35: warning: 
deprecated conversion from string constant to ‘char*’
/home/marcos/Programas/php-handlersocket/handlersocket.cc: In function ‘void 
zim_handlersocket_getError(int, zval*, zval**, zval*, int)’:
/home/marcos/Programas/php-handlersocket/handlersocket.cc:1146:70: warning: 
format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
make: *** [handlersocket.lo] Error 1
marcos@marcos-desktop:~/Programas/php-handlersocket$ uname -a
Linux marcos-desktop 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 
2011 x86_64 x86_64 x86_64 GNU/Linux
marcos@marcos-desktop:~/Programas/php-handlersocket$ php -v
PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May  2 2011 23:00:17) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans
marcos@marcos-desktop:~/Programas/php-handlersocket$ dpkg -l |grep 
libhsclient-dev
ii  libhsclient-dev                       1.0.6-71-g159ea6d-0ubuntu1            
     HandlerSocket client library

Original issue reported on code.google.com by marcosds...@gmail.com on 6 May 2011 at 4:41

GoogleCodeExporter commented 8 years ago
It could be that whatever client library you have installed from a repo is old 
(as it's complaining about not being able to call request_buf_exec_generic, 
which introduced support for hstcpcli_filter); try removing it and compiling 
the latest version of libhsclient from 
https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL

Original comment by mattwar...@gmail.com on 20 May 2011 at 11:07