Forums » Saxon/C Help and Discussions »
Trouble compiling for PHP
Added by Amanda O'Brien almost 11 years ago
I'm having trouble compiling this for PHP on CentOS release 6.4 (Final), output below. I'm happy to provide any other details requested if you can help point me in the right direction. Thanks!
[ec2-user@bean-v4-dev-left Saxon-C-API]$ make
/bin/sh /var/bean/dev/amanda/Saxonica/Saxon-HEC0.1/Saxon-C-API/libtool --mode=link cc -DPHP_ATOM_INC -I/var/bean/dev/amanda/Saxonica/Saxon-HEC0.1/Saxon-C-API/include -I/var/bean/dev/amanda/Saxonica/Saxon-HEC0.1/Saxon-C-API/main -I/var/bean/dev/amanda/Saxonica/Saxon-HEC0.1/Saxon-C-API -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 -DHAVE_CONFIG_H -g -O2 -o saxon.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/bean/dev/amanda/Saxonica/Saxon-HEC0.1/Saxon-C-API/modules xsltProcessor.lo -lstdc++ -lsaxon -ldl
libtool: link: cc -shared .libs/xsltProcessor.o -lstdc++ -lsaxon -ldl -Wl,-soname -Wl,saxon.so -o .libs/saxon.so
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libsaxon.so when searching for -lsaxon
/usr/bin/ld: skipping incompatible /usr/lib/libsaxon.so when searching for -lsaxon
/usr/bin/ld: cannot find -lsaxon
collect2: ld returned 1 exit status
make: *** [saxon.la] Error 1
[ec2-user@bean-v4-dev-left Saxon-C-API]$
Replies (2)
RE: Trouble compiling for PHP - Added by Amanda O'Brien almost 11 years ago
I should add that I'm following the steps here: http://www.saxonica.com/saxon-c/index.xml
RE: Trouble compiling for PHP - Added by O'Neil Delpratt almost 11 years ago
This looks like a similar issue reported by another user at:
https://saxonica.plan.io/boards/4/topics/5862?r=5870#message-5870
Unfortunately the user did not share his experience, which I might invite him to do.
Probably not documented but please make sure GCC is installed and that libsaxon.so is in the /usr/lib folder. We hope to have another alpha release out for Saxon/C. We will look closely at the builds for other Linux distributions.
Please register to reply