Skip to content

Duplicate symbol error#78

Closed
thomersch wants to merge 1 commit intopygeos:masterfrom
thomersch:master
Closed

Duplicate symbol error#78
thomersch wants to merge 1 commit intopygeos:masterfrom
thomersch:master

Conversation

@thomersch
Copy link
Copy Markdown

Hi everyone,

When compiling on macOS 10.14 with Python 3.7 and GEOS 3.8 in a clean virtual env, I got a compiler/linker error:

duplicate symbol '_GeometryType' in:
    build/temp.macosx-10.14-x86_64-3.7/src/lib.o
    build/temp.macosx-10.14-x86_64-3.7/src/pygeom.o

I am not very well-versed in linker intricacies, so I looked around and it seems that the process can be fixed by declaring -fcommon. Not sure whether this is a macOS-only or newer clang problem and if this is the only viable solution, but it worked for me.

@caspervdw
Copy link
Copy Markdown
Member

Thanks @thomersch for your report and contribution. Your fix apparently breaks the windows build. I gave this issue another try in #79 , could you checkout that branch and see if it works for you?

@thomersch thomersch closed this Nov 12, 2019
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