Building libsecp256k1 fails on OpenBSD 7.6 #31106

issue davemiketony opened this issue on October 17, 2024
  1. davemiketony commented at 12:58 AM on October 17, 2024: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    Building libsecp256k1 by following the instructions located within src/secp256k1 fails on OpenBSD 7.6 (the latest OpenBSD release).

    The instructions fail during the autogen step with errors mentioning libtool.

    Expected behaviour

    A successful build of a libsecp256k1 is possible by strictly following the instructions found within src/secp256k1/README.md.

    Steps to reproduce

    $ export AUTOCONF_VERSION=2.72
    $ export AUTOMAKE_VERSION=1.16
    $ ./autogen.sh
    

    Relevant log output

    Failure Output

    $ ./autogen.sh                                                                       
    Makefile.am:7: error: Libtool library used but 'LIBTOOL' is undefined
    Makefile.am:7:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
    Makefile.am:7:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
    Makefile.am:7:   If 'LT_INIT' is in 'configure.ac', make sure
    Makefile.am:7:   its definition is in aclocal's search path.
    autoreconf-2.72: error: automake failed with exit status: 1
    

    Installed Packages

    $ pkg_info -m
    autoconf-2.72p0     automatically configure source code on many Un*x platforms
    automake-1.16.5     GNU Standards-compliant Makefile generator
    bash-5.2.32         GNU Bourne Again Shell
    boost-1.84.0p4v0    free peer-reviewed portable C++ source libraries
    cmake-3.30.1v1      portable build system
    git-2.46.1          distributed version control system
    gmake-4.4.1         GNU make
    gtar-1.35p0         GNU version of the traditional tape archiver
    libevent-2.1.12p1   event notification library
    

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v28.0

    Operating system and version

    OpenBSD 7.6 amd64

    Machine specifications

    No response

  2. hebasto commented at 8:32 AM on October 17, 2024: member

    Expected behaviour

    A successful build of a libsecp256k1 is possible by strictly following the instructions found within src/secp256k1/README.md.

    I think you should move this issue upstream to https://github.com/bitcoin-core/secp256k1/issues.

  3. hebasto commented at 8:37 AM on October 17, 2024: member

    Also try:

    pkg_add libtool
    
  4. fanquake commented at 8:43 AM on October 17, 2024: member

    Yes, please move this upstream. Building libsecp standalone isn't supported inside this repository.

  5. fanquake closed this on Oct 17, 2024

  6. bitcoin locked this on Oct 17, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me