Re: [KCONFIG] Can't compile 2.6.12 without Gettext

From: Jerome Pinot
Date: Sat Aug 27 2005 - 10:30:58 EST


On 8/27/05, Adrian Bunk <bunk@xxxxxxxxx> wrote:
[...]
> are you using an ftp.kernel.org 2.6.12 kernel or a vendor kernel?

That's a vanilla 2.6.12.5 from kernel.org
For obvious reasons, I only do bugreports on lkml for vanilla kernel.

> If it's an ftp.kernel.org kernel, please send the exact error messages
> you are seeing.
[...]

---- snip ----
ngc891@comet:/usr/src/linux-2.6.12.5$ make V=1 menuconfig
make -f scripts/Makefile.build obj=scripts/basic
gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/basic/fixdep
scripts/basic/fixdep.c
gcc -Wp,-MD,scripts/basic/.split-include.d -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -o scripts/basic/split-include
scripts/basic/split-include.c
gcc -Wp,-MD,scripts/basic/.docproc.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/basic/docproc
scripts/basic/docproc.c
if test ! /usr/src/linux-2.6.12.5 -ef /usr/src/linux-2.6.12.5; then \
/bin/sh /usr/src/linux-2.6.12.5/scripts/mkmakefile \
/usr/src/linux-2.6.12.5 /usr/src/linux-2.6.12.5 2 6 \
> /usr/src/linux-2.6.12.5/Makefile; \
echo ' GEN /usr/src/linux-2.6.12.5/Makefile'; \
fi
make -f scripts/Makefile.build obj=scripts/kconfig menuconfig
cat scripts/kconfig/zconf.tab.h_shipped > scripts/kconfig/zconf.tab.h
gcc -Wp,-MD,scripts/kconfig/.conf.o.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -c -o scripts/kconfig/conf.o
scripts/kconfig/conf.c
In file included from scripts/kconfig/conf.c:14:
scripts/kconfig/lkc.h:11:21: libintl.h: No such file or directory
scripts/kconfig/conf.c: In function `check_stdin':
scripts/kconfig/conf.c:59: warning: implicit declaration of function `gettext'
make[1]: *** [scripts/kconfig/conf.o] Error 1
make: *** [menuconfig] Error 2
---- snip ----

Actually, adding libintl.h in /usr/include didn't solve the issue in
my case. My gettext implementation is not exactly complete. Anyway the
script shouldn't failed at this step.

Segher Boessenkool, who had the same problem, sent me a way to compile
the kernel by modifying a bit the lkc.h and mconf.c files. I suggested
him to send this to lkml too.

The fix to do is really small but it needs to define a policy about
how kconfig should decide about using gettext or not. It could use a
configure script or a parameter from command line to choose whether or
not to look for a gettext implementation (something like "make NLS=0
menuconfig" maybe). This should be define prior to any patch attempt.

So I just wonder what Roman Zippel think about this.

Regards,

--
Jerome Pinot
ftp://ngc891.blogdns.net/pub
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/