configure.ac:902: error: possibly undefined macro: PKG_CONFIG_LIBDIR #6602

issue maiiz opened this issue on August 31, 2015
  1. maiiz commented at 3:45 AM on August 31, 2015: contributor

    my environment

    [root@11 bitcoin-31bfc272c7b2d1ff45d70bd19047bfe866296589]# cat /etc/issue

    CentOS release 6.7 (Final) Kernel \r on an \m

    [root@11 bitcoin-31bfc272c7b2d1ff45d70bd19047bfe866296589]# whereis pkgconfig

    pkgconfig: /usr/lib/pkgconfig /usr/lib64/pkgconfig /usr/local/lib/pkgconfig /usr/share/pkgconfig

    when i compile got this

    [root@11 bitcoin-31bfc272c7b2d1ff45d70bd19047bfe866296589]# sh autogen.sh

    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, build-aux'. libtoolize: copying filebuild-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, build-aux/m4'. libtoolize: copying filebuild-aux/m4/libtool.m4' libtoolize: copying file build-aux/m4/ltoptions.m4' libtoolize: copying filebuild-aux/m4/ltsugar.m4' libtoolize: copying file build-aux/m4/ltversion.m4' libtoolize: copying filebuild-aux/m4/lt~obsolete.m4' libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, build-aux'. libtoolize: copying filebuild-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, build-aux/m4'. libtoolize: copying filebuild-aux/m4/libtool.m4' libtoolize: copying file build-aux/m4/ltoptions.m4' libtoolize: copying filebuild-aux/m4/ltsugar.m4' libtoolize: copying file build-aux/m4/ltversion.m4' libtoolize: copying filebuild-aux/m4/lt~obsolete.m4' configure.ac:902: error: possibly undefined macro: PKG_CONFIG_LIBDIR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1

  2. jonasschnelli commented at 3:51 AM on August 31, 2015: contributor
  3. maiiz commented at 3:53 AM on August 31, 2015: contributor

    @jonasschnelli

    yes i install the pkg-config
    [root@11 bitcoin-31bfc272c7b2d1ff45d70bd19047bfe866296589]# yum install pkgconfig

    Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version Nothing to do

    And I compile v0.9.3 is ok

    [root@11 bitcoin-0.9.3]# sh autogen.sh configure.ac:12: installing src/build-aux/config.guess' configure.ac:12: installingsrc/build-aux/config.sub' configure.ac:37: installing src/build-aux/install-sh' configure.ac:37: installingsrc/build-aux/missing' src/Makefile.am: installing `src/build-aux/depcomp'

  4. jonasschnelli commented at 7:48 AM on August 31, 2015: contributor

    @maiiz could you once try and add m4_pattern_allow(PKG_CONFIG_LIBDIR) to configure.ac and see if this cures your issue?

  5. maiiz commented at 3:25 AM on September 7, 2015: contributor

    @jonasschnelli

    add m4_pattern_allow(PKG_CONFIG_LIBDIR) is ok,thx
  6. maiiz commented at 3:25 AM on September 7, 2015: contributor

    @jasonlewicki but i have compiled old version 0.9.3

  7. jonasschnelli commented at 6:43 AM on September 7, 2015: contributor

    @maiiz: for the records: did m4_pattern_allow() solved you issue?

  8. maiiz commented at 6:47 AM on September 7, 2015: contributor

    @jonasschnelli
    no solve completely ! just solve "autogen.sh" no error. there other error when "configure" I don't try any more,because old version is enougth!

  9. laanwj closed this on Sep 22, 2015

  10. peterwillcn commented at 4:09 AM on July 11, 2016: none

    version: bitcoin-0.12.1

    configure.ac:966: error: possibly undefined macro: PKG_CONFIG_LIBDIR
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    autoreconf: /usr/bin/autoconf failed with exit status: 1
    
  11. laanwj commented at 10:40 AM on July 11, 2016: member

    @peterwillcn I think you need to install pkgconfig Though there have been other issues as well with PKG_CONFIG_LIBDIR on CentOS, see #6432

  12. MarcoFalke locked this on Sep 8, 2021

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

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