All of lore.kernel.org
 help / color / mirror / Atom feed
From: Claus Klein <claus.klein@arcormail.de>
To: buildroot@busybox.net
Subject: [Buildroot] Error while build grep when BR2_PACKAGE_LIBINTL is not	set
Date: Tue, 01 Jan 2008 21:17:07 +0100	[thread overview]
Message-ID: <477A9FC3.6080108@arcormail.de> (raw)
In-Reply-To: <4779EB87.2090400@arcormail.de>

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#

      reply	other threads:[~2008-01-01 20:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-01  7:28 [Buildroot] Error while build grep when BR2_PACKAGE_LIBINTL is not set Claus Klein
2008-01-01 20:17 ` Claus Klein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=477A9FC3.6080108@arcormail.de \
    --to=claus.klein@arcormail.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.