This is the mail archive of the mailing list for the glibc 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]

[PATCH] building iconv files in glibc-2-2-branch


I'm building the glibc-2-2-branch version of the library, and
needed the following small patch to get a couple of the files
in the iconv subdirectory to build.

The error I was seeing was ...

In file included from ../locale/programs/charmap.c:34:
../locale/programs/localedef.h:102: `__LC_LAST' undeclared here (not in a function)
../locale/programs/localedef.h:104: `__LC_LAST' undeclared here (not in a function)
../locale/programs/localedef.h:106: `__LC_LAST' undeclared here (not in a function)

This error occured on iconv/charmap.c, iconv/charmap-dir.c, and
iconv/linereader.c. The problem was the `config.h' file in the
locale/programs directory wasn't getting picked up, and this file
is where `__LC_LAST' is defined.

My thanks to everyone working on glibc.

Index: ./iconv/Makefile
RCS file: /cvs/glibc/libc/iconv/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- Makefile	2001/08/25 16:19:15	1.26
+++ Makefile	2002/02/10 14:28:20
@@ -45,7 +45,10 @@
 CFLAGS-iconv_charmap.c = -I../locale/programs
 CFLAGS-dummy-repertoire.c = -I../locale/programs
 CFLAGS-charmap.c = -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
+		   -I../locale/programs
+CFLAGS-charmap-dir.c = -I../locale/programs
+CFLAGS-linereader.c = -I../locale/programs
 tests	= tst-iconv1 tst-iconv2 tst-iconv3
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759

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