-
Notifications
You must be signed in to change notification settings - Fork 7
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
[OpenSSL] "Unsupported options: no-canonical-prefixes" #7
Comments
Hello, I remember facing this issue. I will be able to work on it Monday though. Thanks for the report. |
Do you know, why is the error not written to console by conan? I just get:
EDIT: |
Hello, I remember why this happens, according to the OpenSSL wiki single hyphen flags (e.g. One workaround would be to hack the recipe and add a I'd like to have a more elegant/effective way of solving the issue though, I'd suggest opening an issue on the OpenSSL recipe repo referencing this one, to get their opinion on the way to go. |
Alternative route is to supply to configure That is what I did in our company to prevent running into multiple issues with supporting OpenSSL in combination with the android toolchain. |
I opened the issue..
This env variable should be added to the android-ndk recipe, right? |
You can go hack your local recipe in I have vague memories of this error, and setting I hope @maikelvdh has the right patch for it 😅 |
Good to know. Thanks!
I hope so too.. |
Hmm, I guess you have to try that then:
|
Hi! Just found this issue while trying to get the build for OpenSSL on Android running. @maikelvdh would you mind sharing what you changed in the OpenSSL reciepe to get it running? I got it compiling after some time of tweaking, but now the linker claims that it can't find @theodelrieu: just started with conan - before that, I used a |
Thanks @theodelrieu for the quick answer. Just tried with reverted changes to my local copy of the OpenSSL reciepe. It has similar problems as this repo. Sadly the
Finally I managed to build OpenSSL using https://github.com/bincrafters/conan-android_ndk_installer/tree/testing/r19b with two little hacks in the OpenSSL reciepe: @@ -219,11 +219,26 @@ class OpenSSLConan(ConanFile):
if self.settings.os == "Android":
makefile = os.path.join(self.subfolder, "Makefile")
+ old_str = 'CROSS_COMPILE='
+ new_str = 'DISABLED_CROSS_COMPILE='
+ tools.replace_in_file(makefile, old_str, new_str, strict=self.in_local_cache)
+
+ old_str = '-mandroid'
+ new_str = ''
+ tools.replace_in_file(makefile, old_str, new_str, strict=self.in_local_cache)
+
def unix_build(self):
win_bash = sys.platform == "win32"
target = self._get_target()
+ if self.settings.os == "Android":
+ old_str = 'die "no NDK $triarch-gcc on \$PATH";'
+ new_str = '-install_name '
+ tools.replace_in_file("%s/Configurations/15-android.conf" % self.subfolder, old_str, new_str,
+ strict=self.in_local_cache)
+
self.run_in_src("./Configure %s %s" % (target, self._get_flags()), win_bash=win_bash)
self.run_in_src("make depend")
self._patch_makefile() That's not nice, but seems to produce something that passes the tests. Thanks for your help! |
I think there is a way to provide |
I also tried with bincrafters android-ndk-installer (r19b), but with OpenSSL version 1.0.2r and it works fine for me. |
Description of Problem, Request, or Question
I am trying to build OpenSSL with this profile:
The command
./Configure android-armeabi -isystem/home/lk/.conan/data/android-ndk/r18/theodelrieu/testing/package/2296cbf988942dec6e0ebdfef682b5c678acade8/sources/cxx-stl/llvm-libc++abi/include -isystem/home/lk/.conan/data/android-ndk/r18/theodelrieu/testing/package/2296cbf988942dec6e0ebdfef682b5c678acade8/sources/cxx-stl/llvm-libc++/include -isystem/home/lk/.conan/data/android-ndk/r18/theodelrieu/testing/package/2296cbf988942dec6e0ebdfef682b5c678acade8/sysroot/usr/include/arm-linux-androideabi --target=arm-none-linux-androideabi21 --sysroot=/home/lk/.conan/data/android-ndk/r18/theodelrieu/testing/package/2296cbf988942dec6e0ebdfef682b5c678acade8/sysroot -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes --gcc-toolchain=/home/lk/.conan/data/android-ndk/r18/theodelrieu/testing/package/2296cbf988942dec6e0ebdfef682b5c678acade8/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -mfpu=neon -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -DNDEBUG -Oz -Wformat -Werror=format-security -Werror=implicit-function-declaration -O3 -fPIC --with-zlib-include="/home/lk/.conan/data/zlib/1.2.11/conan/stable/package/3fb95ed85ddddc32c8a68fbda3fc929cdd5c192b/include" --with-zlib-lib="/home/lk/.conan/data/zlib/1.2.11/conan/stable/package/3fb95ed85ddddc32c8a68fbda3fc929cdd5c192b/lib"
results in the following error:Related issue: openssl/openssl#3493
Package Details (Include if Applicable)
Steps to reproduce (Include if Applicable)
To see the actual error message, I had to run the
./Configure
command manually...The text was updated successfully, but these errors were encountered: