multiply-defined symbol error with php 4.1.1 on Solaris 2.8

From: Date: Mon, 28 Jan 2002 19:20:15 +0000
Subject: multiply-defined symbol error with php 4.1.1 on Solaris 2.8
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82458@lists.php.net to get a copy of this message
We tried to build php 4.1.1 with as many options as possible on our Solaris 2.8 machine with gcc 2.95.2 and Apache 1.3.22. During the compilation, we had a problem with wddx extention which complains that header file "expat.h" is not in the expat 1.2 package that we installed for php. Thanks to Rasmus, we now know that we can leave off the "--with-expat-dir" switch completely, since php already comes with its own expat. We are wondering, are there other packages like expat that php already has its own copy of them, for example, snmp, yaz, pspell or mnogosearch? We got the following error message during the compilation: ld: fatal: symbol `odr_bool' is multiply-defined: (file Zend/.libs/libZend.al(odr_bool.o) and file /depot/package/yaz_1.8.4/vendor/lib/libyaz.a(odr_bool.o)); ld: fatal: symbol `ber_boolean' is multiply-defined: (file Zend/.libs/libZend.al(ber_bool.o) and file /depot/package/yaz_1.8.4/vendor/lib/libyaz.a(ber_bool.o)); [...] /depot/package/pspell_.12.2/lib/libpspell.a(string_pair_emulation.o)); ld: fatal: symbol `_ZN22PspellCanHaveErrorImpl11reset_errorEv' is multiply-defined: (file Zend/.libs/libZend.al(error_impl.o) and file /depot/package/pspell_.12.2/lib/libpspell.a(error_impl.o)); ld: fatal: symbol `_Z24new_pspell_manager_classP12PspellConfig' is multiply-defined: (file Zend/.libs/libZend.al(manager_impl.o) and file /depot/package/pspell_.12.2/lib/libpspell.a(manager_impl.o)); [...] ld: fatal: symbol `UdmAddParser' is multiply-defined: (file Zend/.libs/libZend.al(parser.o) and file /depot/package/mnogosearch_3.1.19/vendor/lib/libudmsearch.a(parser.o)); ld: fatal: symbol `UdmInsertAffix' is multiply-defined: (file Zend/.libs/libZend.al(sql.o) and file /depot/package/mnogosearch_3.1.19/vendor/lib/libudmsearch.a(sql.o)); Is that problem similar to expat which php has its own copy or because of other things that we overlook? Thanks, Ziying Sherwin P.S. I am not in the mailing list, please send your response to sherwin@nlm.nih.gov

« previous php.general (#82458) next »