Bug #14483: -twolevel_namespace and multiple definitions errors

From: Date: Thu, 13 Dec 2001 12:08:14 +0000
Subject: Bug #14483: -twolevel_namespace and multiple definitions errors
Groups: php.dev 
Request: Send a blank email to php-dev+get-73555@lists.php.net to get a copy of this message
From: abner@criticalnexus.com Operating system: MacOS X 10.1 PHP version: 4.1.0 PHP Bug Type: Compile Failure Bug description: -twolevel_namespace and multiple definitions errors (NOTE: Duplicate of BUG 14256) PHP 4.1.0 fails to compile on Mac OS X 10.1 (you probably already know this). This is while building the Apache Module. Notes: - First scenario: attempting the run-of-the-mill compile fails once it gets to ld, which throws out "-twolevel_namespace" warnings. - Second scenario: Modifying (by adding "-flat_namespace") any presence of anything that may seem like a compiler flag or linker flag in config_vars.mk, php_config.h, libtool, etc., leads to a LARGE number of multiple definition errors that look like this: ----------- TSRM/.libs/libtsrm.al(tsrm_virtual_cwd.lo) definition of _virtual_utime in section (__TEXT,__text) TSRM/.libs/libtsrm.al(tsrm_virtual_cwd.lo) definition of _virtual_utime in section (__TEXT,__text) ------------ These errors flow in large quantities (in pairs like above), right at the end of the compile. The section (__TEXT,__text) part is always the same, but "(foo.lo)" changes to what seems to be EVERY symbol that was compiled. - Have downloaded latest snap from PHP.net (13 Dec 2001), and it still fails. -Tried using latest libtool from GNU.org (1.4.2), with the same result. -It seems like others are experiencing either of the scenarios above... since most people know about the "-flat_namespace" flag, the try to deal, only to end up with the large quantities of multiple symbol errors. Hmm... -Abner -- Edit bug report at: http://bugs.php.net/?id=14483&edit=1

« previous php.dev (#73555) next »