Hi,

I am still attempting to build PHP 4.3 on Mac OS X v10.2 with Sabloron 
support.

My configure script looks like this:
ZEND_EXTRA_LIBS=" -lstdc++" ./configure \
        --prefix=/DCServers/php_server/php \
        --enable-sablot-errors-descriptive \
        --with-sablot \
        --with-xslt-sablot \
        --enable-xslt \
        --enable-debug \
        < /dev/null

And when I try to do the make it ends with this error:
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: *** [sapi/cgi/php-cgi] Error 1

The ZEND_EXTRA_LIBS definition on the configure line is an attempt to 
get lstdc++ library included as the last library. This was done because 
we discovered that if we changed the following lines in the Makefile:

BUILD_CGI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) 
$(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) 
$(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) 
$(ZEND_EXTRA_LIBS) -o $(SAPI_CGI_PATH)
SAPI_CLI_PATH = sapi/cli/php
BUILD_CLI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) 
$(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) 
$(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) 
$(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH)

to look like this:
BUILD_CGI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) 
$(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) 
$(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) 
$(ZEND_EXTRA_LIBS) -lstdc++ -o $(SAPI_CGI_PATH)
SAPI_CLI_PATH = sapi/cli/php
BUILD_CLI = $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) 
$(LDFLAGS) $(NATIVE_RPATHS) $(PHP_GLOBAL_OBJS:.lo=.o) 
$(PHP_CLI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) 
$(ZEND_EXTRA_LIBS) -lstdc++ -o $(SAPI_CLI_PATH)

that make works just fine.

My question is what environment variable, configure option or flag can 
I set to get the lstdc++ library included as the last library.


Any help would be greatly appreciated.

Dean Dahnke

Reply via email to