From: [EMAIL PROTECTED]
Operating system: Mac OS X 10.2
PHP version: 4.3.0-pre1
PHP Bug Type: Compile Failure
Bug description: Compile/Link failure w/Sablotron
When I try to include Sablotron support, I am unable to
link without modifying the Makefile. I am trying to build
on Mac OS X v10.2 (Jaguar) with gcc v3.1.
My configure line looks like this:
./configure \
--prefix=/DCServers/php_server/php \
--enable-sablot-errors-descriptive \
--with-sablot \
--with-xslt-sablot \
--enable-xslt \
--enable-debug
When I run make I get the following error:
ld: warning -L: directory name (/lib) does not exist
ld: Undefined symbols:
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__si_class_type_info
operator delete[](void*)
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
operator new[](unsigned long)
std::terminate()
vtable for __cxxabiv1::__vmi_class_type_info
___cxa_pure_virtual
make: *** [libs/libphp4.bundle] Error 1
However, if I edit the Makefile between the configure and
make steps, such that I add the lstdc++ library to the end
of the variable ZEND_EXTRA_LIBS everything works. There
seems to be an ordering problem with the lstdc++ library
which makes it necessary to have it be the last library
included before the -o part of the link commands. I tried
to set various flags on the configure line, like
ZEND_EXTRA_LIBS or LDFLAGS, to "-lstdc++", but could not
get the lstdc++ library to be the absolutely last thing
linked.
Please let me know if I can be of assistance with debugging
this.
--
Edit bug report at http://bugs.php.net/?id=19983&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19983&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19983&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19983&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19983&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19983&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19983&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19983&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19983&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19983&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19983&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19983&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19983&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19983&r=isapi