colder / php-weakref

PECL extension that implements weak references and weak maps in PHP
http://pecl.php.net/weakref
Other
36 stars 13 forks source link

Fix duplicate symbol errors on LLVM (MacOS) #8

Closed jasonstubbs closed 12 years ago

jasonstubbs commented 12 years ago

With the variable definitions being in the header files and included from both wr_weakref/wr_weakmap and php_weakref, there are several duplicate symbol errors that aren't automatically resolved with llvm:

duplicate symbol _wr_ce_WeakRef in: .libs/php_weakref.o .libs/wr_weakref.o duplicate symbol _wr_handler_WeakRef in: .libs/php_weakref.o .libs/wr_weakref.o duplicate symbol _weakref_globals in: .libs/php_weakref.o .libs/wr_weakref.o duplicate symbol _wr_ce_WeakMap in: .libs/php_weakref.o .libs/wr_weakmap.o duplicate symbol _wr_handler_WeakMap in: .libs/php_weakref.o .libs/wr_weakmap.o duplicate symbol _wr_handler_WeakRef in: .libs/php_weakref.o .libs/wr_weakmap.o duplicate symbol _wr_ce_WeakRef in: .libs/php_weakref.o .libs/wr_weakmap.o duplicate symbol _weakref_globals in: .libs/php_weakref.o .libs/wr_weakmap.o

colder commented 12 years ago

Thanks for this!

I had no idea it could cause troubles.