Skip to content

Link stdc++ #1139

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 5 commits into from
May 11, 2020
Merged

Link stdc++ #1139

merged 5 commits into from
May 11, 2020

Conversation

filmor
Copy link
Member

@filmor filmor commented May 10, 2020

What does this implement/fix? Explain your changes.

Links monoclr as a C++ library and thus includes libstdc++ and whatever else g++ adds. Additionally, it force-loads libmono-2.0 on Linux with RTLD_GLOBAL to make sure the symbols are in place when libmono-native.so is being loaded.

Does this close any currently open issues?

I hope this fixes #939. The second part fixes #1034 on my machine.

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change: N/A
  • If an enhancement PR, please create docs and at best an example: N/A
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

@filmor filmor force-pushed the link-stdc++ branch 2 times, most recently from ce7e1fb to 73fc723 Compare May 10, 2020 19:21
@lostmsu
Copy link
Member

lostmsu commented May 10, 2020

Hm, I'd rather have Mono fix their side. Most platforms don't even need this.

@filmor
Copy link
Member Author

filmor commented May 10, 2020

What's the point? This is broken now, and with clr-loader this thing is not needed anymore anyway. I just want to fix this as far as possible before the release to have a reasonable frozen state.

@filmor filmor requested a review from lostmsu May 11, 2020 08:13
@filmor filmor merged commit 2910074 into pythonnet:master May 11, 2020
@filmor filmor deleted the link-stdc++ branch May 11, 2020 20:21
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull request Jun 29, 2020
* Fix geninterop.py include paths
* Ensure that monoclr is linked as a C++ library
* Force preload libmono and fix bug in LD_LIBRARY_PATH forwarding
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.

System.DllNotFoundException when trying to import clr, despite referenced assembly existing ImportError undefined symbol _ZTIPi on import clr
2 participants