php+xsltをMacOSXでcompile時にエラーが出る(perl-4.3.8)

ld: Undefined symbols:
std::terminate()
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__si_class_type_info
vtable for __cxxabiv1::__vmi_class_type_info
operator delete(void*)
operator delete(void*)
operator new
(unsigned long)
operator new(unsigned long)
___cxa_pure_virtual
___gxx_personality_v0
make: *** [libs/libphp4.bundle] Error 1

これは
http://www.electrictoolbox.com/article/php/compiling-with-sablotron/より
EXTRA_LDFLAGSとEXTRA_LIBSに -lstdc++を加えることで解決。しなかった...

でもperl-5.0.0にかえてcompileしたら大丈夫だったよ。(php5はxslをサポートしているらしいので。)

/configure --with-zlib --with-gd --enable-ftp --enable-cli --with-xsl=/sw/ --with-libxml-dir=/sw/ --with-png-dir=/sw/ --with-apxs