#19983 [Opn->Fbk]: Compile/Link failure w/Sablotron
| From: | sniper@php.net | Date: | Fri, 18 Oct 2002 20:50:56 +0000 |
| Subject: | #19983 [Opn->Fbk]: Compile/Link failure w/Sablotron | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22793@lists.php.net to get a copy of this message | ||
ID: 19983
Updated by: sniper@php.net
Reported By: dahnke@adobe.com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Mac OS X 10.2
PHP Version: 4.3.0-pre1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-10-18 13:33:06] dahnke@adobe.com
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 this bug report at http://bugs.php.net/?id=19983&edit=1