[Buildroot] Error while build grep when BR2_PACKAGE_LIBINTL is not set
Claus Klein
claus.klein at arcormail.de
Tue Jan 1 12:17:07 PST 2008
Claus Klein schrieb:
> Hi all,
>
> I get some Errors when compiling grep with current svn buildroot version.
> My config is without LIBINTL, but configure think all is ok:
>
> root at slax:/buildroot/build_i386/grep-2.5.1# head config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.53. Invocation command line was
>
> $ ./configure --target=i386-linux --host=i386-linux
> --build=i386-pc-linux-gnu --prefix=/usr --exec-prefix=/usr
> --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/lib
> --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share
> --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls
> --disable-largefile --disable-perl-regexp --without-included-regex
>
> ## --------- ##
> . . .
> configure:4276: checking libintl.h presence
> configure:4283:
> /mnt/hda1/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-cpp
> -Os -pipe -I/
> mnt/hda1/buildroot/build_i386/staging_dir/usr/include
> -I/mnt/hda1/buildroot/build_i386/staging_dir/incl
> ude --sysroot=/mnt/hda1/buildroot/build_i386/staging_dir/ -isysroot
> /mnt/hda1/buildroot/build_i386/stag
> ing_dir -mtune=i386 -march=i386 conftest.c
> configure:4289: $? = 0
> configure:4307: result: yes
> configure:4325: checking for libintl.h
> configure:4332: result: yes
> . . .
> #define HAVE_LIBINTL_H 1
>
> But this should not be defined!
>
> My question now: Is this a problem of the uclibc header or a problem of
> the grep package?
> When I #undef HAVE_LIBINTL_H in config.h, it works fine.
>
PS: As a quickfix, this solve my problem:
ck
svn diff package/grep/
Index: package/grep/grep.mk
===================================================================
--- package/grep/grep.mk (revision 20696)
+++ package/grep/grep.mk (working copy)
@@ -48,6 +48,9 @@
--disable-perl-regexp \
--without-included-regex \
)
+ifeq ($(BR2_ENABLE_LOCALE),)
+ sed -i.bak 's/#define HAVE_LIBINTL_H 1/#undef HAVE_LIBINTL_H/'
$(GNUGREP_DIR)/config.h
+endif
touch $(GNUGREP_DIR)/.configured
$(GNUGREP_DIR)/$(GNUGREP_BINARY): $(GNUGREP_DIR)/.configured
root at slax:/buildroot#
More information about the buildroot
mailing list