Forum: Building VoltDB Clients

Post: Compile php client

Compile php client
Vic
Sep 17, 2012
Hi, I am traying to comnpile the last php client (https://github.com/VoltDB/voltdb-client-php/tree/native) and in the last step I hace this error:

[root@localhost voltdb-client-php]# make
/bin/sh /root/voltdb-client-php-extension-2.8/voltdb-client-php/libtool --mode=compile g++ -DBOOST_SP_DISABLE_THREADS -D__STDC_LIMIT_MACROS -I. -I/root/voltdb-client-php-extension-2.8/voltdb-client-php -DPHP_ATOM_INC -I/root/voltdb-client-php-extension-2.8/voltdb-client-php/include -I/root/voltdb-client-php-extension-2.8/voltdb-client-php/main -I/root/voltdb-client-php-extension-2.8/voltdb-client-php -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/root/voltdb-client-cpp-x86_64-2.5/include -DHAVE_CONFIG_H -g -O2 -c /root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp -o voltdb.lo
mkdir .libs
g++ -DBOOST_SP_DISABLE_THREADS -D__STDC_LIMIT_MACROS -I. -I/root/voltdb-client-php-extension-2.8/voltdb-client-php -DPHP_ATOM_INC -I/root/voltdb-client-php-extension-2.8/voltdb-client-php/include -I/root/voltdb-client-php-extension-2.8/voltdb-client-php/main -I/root/voltdb-client-php-extension-2.8/voltdb-client-php -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/root/voltdb-client-cpp-x86_64-2.5/include -DHAVE_CONFIG_H -g -O2 -c /root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp -fPIC -DPIC -o .libs/voltdb.o
root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp: In function 'int zm_startup_voltdb(int, int)':
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:104: error: 'errException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:105: error: 'errNullPointerException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:106: error: 'errInvalidColumnException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:107: error: 'errOverflowUnderflowException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:108: error: 'errIndexOutOfBoundsException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:109: error: 'errNonExpandableBufferException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:110: error: 'errUninitializedParamsException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:111: error: 'errParamMismatchException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:112: error: 'errNoMoreRowsException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:113: error: 'errStringToDecimalException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:114: error: 'errConnectException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:115: error: 'errNoConnectionsException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:116: error: 'errLibEventException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:117: error: 'errClusterInstanceMismatchException' is not a member of 'voltdb'
/root/voltdb-client-php-extension-2.8/voltdb-client-php/voltdb.cpp:118: error: 'errColumnMismatchException' is not a member of 'voltdb'
make: *** [voltdb.lo] Error 1

Does Anybody know what is the problem?

Thanks
Different flavor of the C++ client library
nshi
Sep 17, 2012
Hi Vic,

Thank you for your patience. The new PHP driver uses the "noexceptions" branch of our C++ client library. You can download it from this link. You may need to recompile the C++ client.

What operating system are you using?

Ning
Complie client 32 bits
Vic
Sep 18, 2012
Hi Nshi,

I am using Red hat(64 bits) and centos(32bits) operating system.

With this C++ client it work find (linux 64 bits). Do you have the client for 32 bits?

Thanks
Hi Vic, Currently the C++
nshi
Sep 18, 2012
Hi Vic,

Currently the C++ client and the PHP client only support 64-bit OS.

Ning
procedures problem
Vic
Sep 19, 2012
Hi Nshi,

I can execute some procedures of select in the same php file. When i execute some procedures of insert it fail, just insert two registers and print "Segmentation fault".
Do you know what is the problem?

Thanks

Vic
Schema and query
nshi
Sep 19, 2012
Hi Vic,

Could you send the schema of the table you were trying to insert into as well as the line of PHP code you used for the insert to us? I will try to reproduce it here.

If you want, you can send it to my email nshi AT voltdb.com.

Thanks

Ning