I've been trying to build php with XSLT support for the last couple days. I'm trying to install it on the latest slackware with the lasted linux kernel.
I have built and installed expat 1.95.7 to /usr/local/lib (it's default install). Built and installed with no errors.
I have built and installed Sablot 1.0.1 to /usr/local/lib (It's default install). Built and installed with no errors.
I now build php with the following flags --enable-xslt --with-xslt-sablot. Configure runs with no errors.
When I run make, I get the following errors.
/usr/local/lib/libsablot.so: undefined reference to `operator new[](unsigned)'
/usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator delete(void*)'
/usr/local/lib/libsablot.so: undefined reference to `__gxx_personality_v0'
/usr/local/lib/libsablot.so: undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator delete[](void*)'
/usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
/usr/local/lib/libsablot.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Any idea what I'm doing wrong?
Thanks
building XSLT support on Slackware Linux Server
Moderator: General Moderators
Figured it out
Well after two days of toil I finally figured it out. Apparently the latest version of libtools is not exactly bug free.
Running the command from the bash shell before running configure then the enviroment variable LDFLAGS gets set to it's proper value. This is not required on all systems, but it was required on mine.
Another wierd tip. Simple adding the above line to the configure file didn't help. I had to run it seperately. Wierd but what am I going to do. Anyway, hope this helps someone in the future.
Running the command
Code: Select all
export LDFLAGS=-lstdc++Another wierd tip. Simple adding the above line to the configure file didn't help. I had to run it seperately. Wierd but what am I going to do. Anyway, hope this helps someone in the future.