Skip to content
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

Building with python universal2 fails with duplicate symbol #3

Open
thierryba opened this issue Dec 22, 2021 · 0 comments
Open

Building with python universal2 fails with duplicate symbol #3

thierryba opened this issue Dec 22, 2021 · 0 comments

Comments

@thierryba
Copy link

Hello there,
I wanted to install m2crypto on my macOS 12.1.
There is python 3.8.9 installed by default.
So I built openssl (twice to get a universal binary) as static libs.
I installed swig from brew.

Then I do this:
/usr/bin/pip3 install --global-option=build_ext --global-option="--openssl=/usr/local/.fw3rdparty/toto-MacOS" m2crypto

This fails to link with:
clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -Wl,-headerpad,0x1000 build/temp.macosx-10.14-x86_64-3.8/src/SWIG/_m2crypto_wrap.o -L/usr/local/.fw3rdparty/toto-MacOS/lib -lssl -lcrypto -o build/lib.macosx-10.14-x86_64-3.8/M2Crypto/_m2crypto.cpython-38-darwin.so
duplicate symbol '_tlsv1_method' in:
build/temp.macosx-10.14-x86_64-3.8/src/SWIG/_m2crypto_wrap.o
/usr/local/.fw3rdparty/toto-MacOS/lib/libssl.a(methods.o)
ld: 1 duplicate symbol for architecture arm64

Any help would be appreciated.

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

No branches or pull requests

1 participant