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 Network Newbie 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 \
    ./ && \
    ./configure --host=mipsel-linux --build=x86_64-redhat-linux --prefix=/usr
    autoreconf: Entering directory `.'
    autoreconf: not using Gettext
    autoreconf: running: aclocal warning: macro 'AM_PROG_LIBTOOL' not found in library
    autoreconf: tracing
    autoreconf: not using Libtool
    autoreconf: running: /usr/bin/autoconf 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
  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 Network Newbie 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 ?
  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 Network Newbie 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/
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice