Unclear error when pkg-config is not installed #24037

issue laanwj openend this issue on January 11, 2022
  1. laanwj commented at 3:17 pm on January 11, 2022: member

    While running autogen.sh on a newly intalled debian 11.2 system, I got the following error:

    0libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
    1configure.ac:16: error: possibly undefined macro: AC_MSG_ERROR
    2      If this token and others are legitimate, please use m4_pattern_allow.
    3      See the Autoconf documentation.
    4configure.ac:261: error: possibly undefined macro: AC_DEFINE
    5configure.ac:662: error: possibly undefined macro: AC_MSG_WARN
    6autoreconf: /usr/bin/autoconf failed with exit status: 1
    

    The problem turned out to be that the pkg-config package was missing (autoconf automake libtool were installed). I could not guess this from the error message. It might make sense to add an explicit check to give a more specific error.

  2. laanwj added the label Linux/Unix on Jan 11, 2022
  3. laanwj added the label Build system on Jan 11, 2022
  4. hebasto commented at 3:42 pm on January 12, 2022: member
    Fixed in #24048.
  5. laanwj closed this on Jan 13, 2022

  6. sidhujag referenced this in commit d548ed3c83 on Jan 13, 2022
  7. DrahtBot locked this on Jan 13, 2023

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: 2024-12-03 15:12 UTC

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