Bug 4066

Summary: iptables: autoconf warnings
Product: [Yocto Project Subprojects] ADT Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: adtAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: hongxu.jia, poky.adt.watcher, poky.watcher, sgw
Version: 1.4   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Alexandru Georgescu 2013-03-20 16:28:03 UTC
TOOLCHAIN: http://autobuilder.yoctoproject.org/pub/nightly/20130313-3/toolchain/x86_64/poky-eglibc-x86_64-i586-toolchain-gmae-1.3+snapshot-20130314.sh build.

commit:4da406cd50cf02a63ed76810a670aba1eb561c79

Iptables source file: http://ftp.gnu.org/non-gnu/cvs/source/stable/

Tested with Ubuntu 12.10 64bit and Fedora 17 64bit


I encounter the following warnings when using autoconf:

yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ echo $CC
i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/i586-poky-linux
yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ autoreconf -fi
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libipq.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libipq/Makefile.am:7:   while processing Libtool library 'libipq.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libip4tc.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libiptc/Makefile.am:8:   while processing Libtool library 'libip4tc.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libip6tc.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libiptc/Makefile.am:8:   while processing Libtool library 'libip6tc.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libiptc.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libiptc/Makefile.am:8:   while processing Libtool library 'libiptc.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libxtables.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libxtables/Makefile.am:6:   while processing Libtool library 'libxtables.la'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$




If I export LC_ALL=C, then I have the following errors:



yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ export LC_ALL=C
yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ autoreconf -fi
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libipq.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libipq/Makefile.am:7:   while processing Libtool library 'libipq.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libip4tc.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libiptc/Makefile.am:8:   while processing Libtool library 'libip4tc.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libip6tc.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libiptc/Makefile.am:8:   while processing Libtool library 'libip6tc.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libiptc.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libiptc/Makefile.am:8:   while processing Libtool library 'libiptc.la'
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libxtables.la': linking libtool libraries using a non-POSIX
/home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libxtables/Makefile.am:6:   while processing Libtool library 'libxtables.la'
yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ ^C
yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$
Comment 1 Saul Wold 2013-03-21 00:13:44 UTC
This is a dup

*** This bug has been marked as a duplicate of bug 3984 ***
Comment 2 Saul Wold 2013-03-21 00:16:14 UTC
My bad slightly different bug
Comment 3 Hongxu Jia 2013-03-21 00:58:56 UTC
> yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ export
> LC_ALL=C
> yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$
> autoreconf -fi
> libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
> libtoolize: copying file `build-aux/ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libipq.la': linking
> libtool libraries using a non-POSIX
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
> 'AM_PROG_AR' in 'configure.ac'
> libipq/Makefile.am:7:   while processing Libtool library 'libipq.la'
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libip4tc.la':
> linking libtool libraries using a non-POSIX
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
> 'AM_PROG_AR' in 'configure.ac'
> libiptc/Makefile.am:8:   while processing Libtool library 'libip4tc.la'
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libip6tc.la':
> linking libtool libraries using a non-POSIX
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
> 'AM_PROG_AR' in 'configure.ac'
> libiptc/Makefile.am:8:   while processing Libtool library 'libip6tc.la'
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libiptc.la':
> linking libtool libraries using a non-POSIX
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
> 'AM_PROG_AR' in 'configure.ac'
> libiptc/Makefile.am:8:   while processing Libtool library 'libiptc.la'
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libxtables.la':
> linking libtool libraries using a non-POSIX
> /home/yocto/0313-3/standalone-automated-MAR-4/sdk/sysroots/x86_64-pokysdk-
> linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
> 'AM_PROG_AR' in 'configure.ac'
> libxtables/Makefile.am:6:   while processing Libtool library 'libxtables.la'
> yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$ ^C
> yocto@yocto-o1:~/0313-3/standalone-automated-MAR-4/iptables-1.4.15$

This has nothing to do with the relocation or adt. It's an automake 1.12 
issue, well known over internet. The warning can be removed if the following
lines are added to the configure.ac in iptables-1.4.15:
...
m4_pattern_allow([AM_PROG_AR])
    AM_PROG_AR
...

Maybe we should ignore the previous warnings.

//Hongxu
Comment 4 Hongxu Jia 2013-03-21 01:12:05 UTC
There is another reason that we currently update iptables to 1.4.17 in 1.4 master. And it doesn't have the previous warning, maybe we should update the test case. But note there is a different that `--disable-ipv6' should be added when run ./configure. Such as `./configure ${CONFIGURE_FLAGS} --disable-ipv6'

1, Install sdk
2, ./autogen
3, ./configure ${CONFIGURE_FLAGS} --disable-ipv6
4, make