Skip to content

Fix duplicate symbol errors on LLVM (MacOS) #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2012

Conversation

jasonstubbs
Copy link

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 added a commit that referenced this pull request Nov 5, 2012
Fix duplicate symbol errors on LLVM (MacOS)
@colder colder merged commit 23ae021 into colder:master Nov 5, 2012
@colder
Copy link
Owner

colder commented Nov 5, 2012

Thanks for this!

I had no idea it could cause troubles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants