This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/13388] New: locale/programs/localedef.c:'CHARMAP_PATH', 'REPERTOIREMAP_PATH' and 'LOCALE_PATH' undeclared


http://sourceware.org/bugzilla/show_bug.cgi?id=13388

             Bug #: 13388
           Summary: locale/programs/localedef.c: 'CHARMAP_PATH',
                    'REPERTOIREMAP_PATH' and 'LOCALE_PATH' undeclared
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales@sources.redhat.com
        ReportedBy: christophe.jarry@ouvaton.org
    Classification: Unclassified
              Host: mips64el-unknown-linux-gnu
             Build: mipsel-unknown-linux-gnu


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.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]