Failing during 'make' while trying to add XSLT support to PHP

cbooth7575

Verified User
Joined
Dec 1, 2004
Messages
7
Hi everybody,

I'm hoping to install the PHP XSLT libraries on my DA system running on FC2. So, first I went and installed expat and sablotron, from source, because those are required by PHP's XSLT functions. To do that I followed the steps here:

http://phpfaq.info/local/98/#id98

Then, I did:
cd /usr/local/directadmin/customapache
./build clean
rm -f configure.*
./build update


Then I edited the configure.php file, to include '--enable-xslt --with-xslt-sablot' lines, as per the PHP site.

Then I tried to run this to recomple DA's PHP:

./build php

It asks me (among other things):

zZip is already installed. Do you want to build it again? (y/n) :n


Then I get the error:

checking for ZIP support... yes
checking for zzip_open in -lzzip... no
configure: error: zziplib module requires zzlib >= 0.10.6.

*** There was an error while trying to configure php. Check the configure.php file



Then, if I try again, but enter Y for installing zZip I get:

checking whether to enable XML support... yes
checking external libexpat install dir... no
checking for XMLRPC-EPI support... no
checking libexpat dir for XMLRPC-EPI... yes
checking iconv dir for XMLRPC-EPI... yes
checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... yes
checking for libexpat dir for Sablotron XSL support... no
checking for iconv dir for Sablotron XSL support... no
checking for JavaScript for Sablotron XSL support... no
checking for Sablotron libraries in the default path... found in /usr/local
checking for sablot-config... found
checking for Sablotron version... >= 0.96
checking for iconv... yes
checking for SablotSetEncoding in -lsablot... no
checking for SablotGetOptions in -lsablot... no
checking for YAZ support... no
checking whether to include YP support... no
checking for ZIP support... yes
checking for zzip_open in -lzzip... no
configure: error: zziplib module requires zzlib >= 0.10.6.

*** There was an error while trying to configure php. Check the configure.php file



Added --with-expat-dir=/usr/local to the /etc/ld.so.conf, but I still get the zzip error

Finally I figured I would try to remove the --with-zip, and then I don't get asked if I want to re-install zzip. The configuration step of the ./build script seems to work, and then it moves into the make step, but if fails there with:

ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam':
/usr/local/directadmin/customapache/php-4.3.9/ext/mysql/libmysql/my_tempnam.c:115: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/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

*** The make has failed, do you want to try to make again? (y,n):


Does anybody have any suggestions what might be going wrong here? Any advice would be more than welcome.

Thanks in advance,

Cameron
 
Fixed for now ;-)

Hi all again,

I seem to have, with some more investigation, solved my own problems ;-)

FYI, in case this comes up for anybody else, I used the suggestions here:

http://protonicdesign.com/tutorial/faq.php#php2

Namely, what I did was ran:

export LDFLAGS=-lstdc++

That seems to fix the problem...I guess the compiler couldn't find everything it needed to or something....

Cameron
 
Back
Top