Forum: Building VoltDB Clients

Post: Php Compilation Error

Php Compilation Error
Harsha Raj
Feb 13, 2013
While compiling the php the below error is coming, and I see there is no libvoltdbcpp.a file exist, Please help me in fixing this.

*** Warning: Linking the shared library voltdb.la against the
*** static library ../voltdb-client-cpp//libvoltdbcpp.a is not portable!
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-amazon-linux/4.6.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-amazon-linux/4.6.2/crtbeginS.o .libs/voltdb.o .libs/client.o .libs/response.o .libs/table.o ../voltdb-client-cpp//libvoltdbcpp.a -L/root/voltdb-client-php-extension-2.8.4/voltdb-client-cpp/third_party_libs/linux -levent_pthreads -levent -lrt -L/usr/lib/gcc/x86_64-amazon-linux/4.6.2 -L/usr/lib/gcc/x86_64-amazon-linux/4.6.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-amazon-linux/4.6.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-amazon-linux/4.6.2/crtendS.o /usr/lib/gcc/x86_64-amazon-linux/4.6.2/../../../../lib64/crtn.o -Wl,-rpath -Wl,/root/voltdb-client-php-extension-2.8.4/voltdb-client-cpp/third_party_libs/linux -Wl,-rpath -Wl,/root/voltdb-client-php-extension-2.8.4/voltdb-client-cpp/third_party_libs/linux -Wl,-soname -Wl,voltdb.so -o .libs/voltdb.so
g++: error: ../voltdb-client-cpp//libvoltdbcpp.a: No such file or directory
make: *** [voltdb.la] Error 1
nshi
Feb 13, 2013
Hi Harsha,

Did you do a "make" in the voltdb-client-cpp directory prior to compiling the PHP client? If you have not done so, please run "make" in the voltdb-client-cpp directory first. That will build the C++ client and generate the static library needed for the PHP client.