1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

macro 'AM_PROG_LIBTOOL' not found in library when building k26 rt n

Discussion in 'Tomato Firmware' started by oglops, Jul 13, 2017.

  1. oglops

    oglops New Member Member

    I am compiling a custom k26 rt n build, and got this error

    cd /home/oglop/tomato/release/src-rt/router/libjson-c && CC=mipsel-uclibc-gcc STRIP=mipsel-uclibc-strip \
    ./autogen.sh && \
    ./configure --host=mipsel-linux --build=x86_64-redhat-linux --prefix=/usr
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal
    configure.ac:71: warning: macro 'AM_PROG_LIBTOOL' not found in library
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: not using Libtool
    autoreconf: running: /usr/bin/autoconf
    configure.ac:71: error: possibly undefined macro: AM_PROG_LIBTOOL
          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
    but I do have automake autoconf autogen installed. full log here https://gist.github.com/oglops/31f2374ed366962afac5cdd8c4dd2ad0
  2. Sean B.

    Sean B. LI Guru Member

    I'd start by verifying they are the correct package versions and are not conflicting with other versions or packages installed on the build system. Also, verify the toolchain has been correctly added to your environment path.
  3. bjlockie

    bjlockie LI Guru Member

    I've seen similar errors.
    I think it has to do with the wrong version of autoconf being used.
  4. oglops

    oglops New Member Member

    Yes I have toolchain appended to PATH, automake is 1.15, I installed 1.13 and 1.14 as well

    I am using latest autoconf 2.69, according to to doc,

    Can I try that? or just replace AC_PROG_LIBTOOL with LT_INIT in configure.ac ?
  5. Grimson

    Grimson Networkin' Nut Member

    You probably need to manually install "libtool 2.4.6" and "pkg-config 0.29.1".

    Note: Some newer or older versions might work too, but the above ones are known to work well.
  6. oglops

    oglops New Member Member

    I solved my problem by creating a dirlist file
    echo /usr/share/aclocal | sudo tee --append /usr/local/share/aclocal/dirlist
    because I did not specify --prefix when installing automake 1.13 from source, so my /usr/local/share/aclocal/ is empty, while all the macros are inside /usr/share/aclocal/

Share This Page