Bug 13388 - locale/programs/localedef.c: 'CHARMAP_PATH', 'REPERTOIREMAP_PATH' and 'LOCALE_PATH' undeclared
Summary: locale/programs/localedef.c: 'CHARMAP_PATH', 'REPERTOIREMAP_PATH' and 'LOCALE...
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-05 23:18 UTC by christophe.jarry
Modified: 2014-06-27 11:38 UTC (History)
0 users

See Also:
Host: mips64el-unknown-linux-gnu
Target:
Build: mipsel-unknown-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christophe.jarry 2011-11-05 23:18:44 UTC
I used glibc version 2.14.1 with glibc-ports-2.14.1.

After having run the following inside a separate glibc-build directory:

BUILD_CC="gcc" \
    CC="mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=n32 \
    AR="mips64el-unknown-linux-gnu-ar" \
    RANLIB="mips64el-unknown-linux-gnu-ranlib" \
    ../glibc-2.14.1/configure \
    --prefix=/usr \
    --libexecdir=/usr/lib/glibc \
    --build=mipsel-cross-linux-gnu \
    --host=mips64el-unknown-linux-gnu \
    --disable-profile \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=2.6.32 \
    --with-__thread \
    --with-binutils=${TARGET_DIR}/cross-tools/bin \
    --with-headers=${TARGET_DIR}/usr/include \
    --cache-file=config.cache
make

I have the following message:

gcc -g programs/localedef.c -c -std=gnu99 -fgnu89-inline -g -O2 -Wstrict-prototypes    -D_GNU_SOURCE -DLOCALEDIR\
='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"' -Iprograms -I../include-native -I/microcebus/buil\
d/glibc-build/locale/ -I. -D_LIBC_REENTRANT -DPIC -include ../include/libc-symbols.h    -o /microcebus/build/gli\
bc-build/locale/localedef-native.o -MD -MP -MF /microcebus/build/glibc-build/locale/localedef-native.o.dt -MT /m\
icrocebus/build/glibc-build/locale/localedef-native.o
programs/localedef.c: In function 'more_help':
programs/localedef.c:371: error: 'CHARMAP_PATH' undeclared (first use in this function)
programs/localedef.c:371: error: (Each undeclared identifier is reported only once
programs/localedef.c:371: error: for each function it appears in.)
programs/localedef.c:371: error: 'REPERTOIREMAP_PATH' undeclared (first use in this function)
programs/localedef.c:371: error: 'LOCALE_PATH' undeclared (first use in this function)
make[2]: *** [/microcebus/build/glibc-build/locale/localedef-native.o] Error 1
make[2]: Leaving directory `/microcebus/build/glibc-2.14.1/locale'
make[1]: *** [locale/others] Error 2
make[1]: Leaving directory `/microcebus/build/glibc-2.14.1'
make: *** [all] Error 2

The error comes from the changes made on the file locale/Makefile and entitled "Clean up locale/Makefile variables for -D switches." (http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=675456ef83622a17c86ae60b94b8e5e3a9d5bb2f).

The proof is that if I use the patch at http://sourceware.org/git/?p=glibc.git;a=patch;h=675456ef83622a17c86ae60b94b8e5e3a9d5bb2f and do:

    patch -Np1 -i the-patch-above.patch -R

inside glibc-2.14.1, the error message does not show up again when running make inside glibc-build.
Comment 1 Andreas Schwab 2011-11-18 10:22:12 UTC
There is no localedef-native.o target in glibc.