Skip to content

Fixed compilation on gcc 11 and fixed new import paths for dlopen/dlsym/dlcose (#220) #221

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
Mar 31, 2022

Conversation

ko1N
Copy link
Contributor

@ko1N ko1N commented Mar 31, 2022

When trying to compile NativeCore/Unix on my System i encountered this compilation error:

EnumerateRemoteSectionsAndModules.cpp: In function 'void EnumerateRemoteSectionsAndModules(RC_Pointer, void (*)(EnumerateRemoteSectionData*), void (*)(EnumerateRemoteModuleData*))':
EnumerateRemoteSectionsAndModules.cpp:53:29: error: invalid 'static_cast' from type 'std::__cxx11::basic_stringstream<char>' to type 'std::stringstream&' {aka 'std::__cxx11::basic_stringstream<char>&'}
   53 |         std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additionally libdl.so is not needed for dlopen/dlsym/dlclose anymore as it was moved in libc. However libc might not be the best choice hence I decided to link it to __Internal which should give better results on more configurations.

@KN4CK3R
Copy link
Member

KN4CK3R commented Mar 31, 2022

Great thanks!

@KN4CK3R KN4CK3R merged commit 961e015 into ReClassNET:master Mar 31, 2022
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