On Fri, Jun 7, 2024 at 8:46 PM Alexander Dyagilev via curl-library <curl-library@lists.haxx.se> wrote: > > I'm using the following commands: > > ./configure --prefix=$MY_PREFIXDIR --enable-shared=no --enable-debug=no \ > --with-secure-transport \ > --with-zlib=$MY_PWD/../zlib-build/prebuilt/macx/x64 \ > --with-libssh2=$MY_PWD/../libssh2-build/prebuilt/macos/x86_64 \ > --with-openssl=$MY_PWD/../openssl-build/prebuilt/macosx > > make -j4 > make install > > I'm sure that I have OpenSSL v1 both includes and libs inside of the path I > specify (openssl-build/prebuilt/macosx; there is # define > OPENSSL_VERSION_TEXT "OpenSSL 1.1.1t 7 Feb 2023" inside of opensslv.h). > > For me it sounds like a bug of the configure script, and it tries to use > OpenSSL v3 headers which I do have installed on my machine also. > > Any ideas on how to fix it? I've attached console output and config.log > files. According to them it properly detects OpenSSL v1. I don't know why and > where it uses OpenSSL v3.
You should show a typical compile command. I expect the -I (capitol i) option to the compiler will be useful to know. You might also show the linker invocation to see what -L options are present, too. Since you are static linking, I don't think you need RPATH/RUNPATH options for the linker. I also don't think you need to run install_name_tool after building. (Also see https://wiki.openssl.org/index.php/Compilation_and_Installation). In fact, a 'make distclean' followed by a 'configure ...' and 'make | tee -a build.txt' and then pastebin build.txt might even be more useful. Jeff -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html