Toolchain sdk location: http://autobuilder.yoctoproject.org/pub/nightly/20150202-1/toolchain/ Git rev: master/22c38e2d8a058619e3d05534b5e830b750aa4241 Steps: 1. Download the mips toolchain sdk from above link and install it. 2. Setup environment: $ source /opt/poky/1.7/environment-setup-mips32r2-poky-linux 3. Build iptables 1.4.21: $ cd iptables-1.4.21/ $ ./autogen.sh $ ./configure ${CONFIGURE_FLAGS} $ make Error message: ######################## make all-recursive make[1]: Entering directory `/home/build/iptables-1.4.21' Making all in libiptc make[2]: Entering directory `/home/build/iptables-1.4.21/libiptc' ../mips-poky-linux-libtool --tag=CC --mode=compile mips-poky-linux-gcc -meb -mabi=32 -mhard-float -march=mips32r2 --sysroot=/opt/poky/1.7/sysroots/mips32r2-poky-linux -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DXTABLES_LIBDIR=\"/usr/local/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -O2 -pipe -g -feliminate-unused-debug-types -MT libip4tc.lo -MD -MP -MF .deps/libip4tc.Tpo -c -o libip4tc.lo libip4tc.c mips-poky-linux-libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1.2, but the mips-poky-linux-libtool: definition of this LT_INIT comes from libtool 2.4.5. mips-poky-linux-libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1.2 mips-poky-linux-libtool: and run autoconf again. make[2]: *** [libip4tc.lo] Error 63 make[2]: Leaving directory `/home/build/iptables-1.4.21/libiptc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/build/iptables-1.4.21' make: *** [all] Error 2 ######################### If I skip the step "./autogen.sh", it can be built successfully, but there is a warning message when configure: ################### configure: WARNING: unrecognized options: --with-libtool-sysroot ################### This issue only exists for mips toolchain. And it doesn't happen on all distributions. I tested several distributions, it only happened on Ubuntu (14.10/14.04), Debian 7 and CentOS 6. but not happened on Fedora 21, openSUSE 13.2 and CentOS 7 The detail logs are attached.
Created attachment 2391 [details] autogen.log
Created attachment 2392 [details] configure.log
Created attachment 2393 [details] make.log
The problem is that libtool is mismatching. Instead of using autogen, try running autoreconf.
(In reply to comment #4) > The problem is that libtool is mismatching. Instead of using autogen, try > running autoreconf. Running autoreconf could work but caused a warning message when configure: ################### configure: WARNING: unrecognized options: --with-libtool-sysroot ###################
This issue doesn't exist in 1.8 M3 rc3 testing
Closing then.
verified as per above comments.