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
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