build: OpenSSL EC detection fails on macOS #734

issue fanquake opened this issue on April 9, 2020
  1. fanquake commented at 8:04 AM on April 9, 2020: member
    ./configure --enable-openssl-tests
    ...
    checking for libcrypto... yes
    checking for main in -lcrypto... yes
    checking for EC functions in libcrypto... no
    configure: error: OpenSSL tests requested but OpenSSL with EC support is not available
    

    config.log

    configure:14672: checking for EC functions in libcrypto
    configure:14696: gcc -c -O2 -fvisibility=hidden -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -W -g  conftest.c >&5
    conftest.c:36:14: fatal error: 'openssl/ec.h' file not found
        #include <openssl/ec.h>
                 ^~~~~~~~~~~~~~
    1 error generated.
    

    I can PR a fix shortly if no-one beats me to it.

  2. sipa commented at 8:05 AM on April 9, 2020: contributor

    Well do you have that file?

  3. fanquake commented at 8:09 AM on April 9, 2020: member

    Well do you have that file?

    Yes, but it needs to come from the brew installed OpenSSL. Which isn't being used during this check.

  4. jonasnick closed this on Apr 13, 2020


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:52 UTC