Buildroot Archive on 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 08:28:07 +0100	[thread overview]
Message-ID: <4779EB87.2090400@arcormail.de> (raw)

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.

my toolchain:
root at slax:/buildroot/toolchain_build_i386# dir
autoconf-2.61/        ccache-2.4/         gdb-6.6/         
linux-2.6.21.5/           uClibc-0.9.29/
automake-1.10/        file-4.21-host/     gmp/             
module-init-tools-3.2.2/  uClibc_dev/
bin/                  gcc-4.2.1/          gmp-4.2.2/       mpfr/
binutils-2.18/        gcc-4.2.1-final/    gmp-4.2.2-host/  mpfr-2.3.0/
binutils-2.18-build/  gcc-4.2.1-initial/  linux/           mpfr-2.3.0-host/
root at slax:/buildroot/toolchain_build_i386#                  

claus



/mnt/hda1/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc 
-Os -pipe  -I/mnt/hda1/buildroot/build_i386/staging_dir/usr/include 
-I/mnt/hda1/buildroot/build_i386/staging_dir/include 
--sysroot=/mnt/hda1/buildroot/build_i386/staging_dir/ -isysroot 
/mnt/hda1/buildroot/build_i386/staging_dir -mtune=i386 -march=i386 
-DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib 
-DLOCALEDIR=\"/usr/share/locale\"    -g -O2 -c `test -f grepmat.c || 
echo './'`grepmat.c
/mnt/hda1/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc 
-Os -pipe  -I/mnt/hda1/buildroot/build_i386/staging_dir/usr/include 
-I/mnt/hda1/buildroot/build_i386/staging_dir/include 
--sysroot=/mnt/hda1/buildroot/build_i386/staging_dir/ -isysroot 
/mnt/hda1/buildroot/build_i386/staging_dir -mtune=i386 -march=i386  -g 
-O2   -o grep  grep.o dfa.o kwset.o search.o grepmat.o ../lib/libgreputils.a
dfa.o: In function `xmalloc':
/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/dfa.c:147: undefined 
reference to `libintl_gettext'
dfa.o: In function `xrealloc':
/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/dfa.c:158: undefined 
reference to `libintl_gettext'
dfa.o: In function `xcalloc':
/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/dfa.c:136: undefined 
reference to `libintl_gettext'
dfa.o: In function `parse_bracket_exp_mb':
/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/dfa.c:489: undefined 
reference to `libintl_gettext'
/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/dfa.c:604: undefined 
reference to `libintl_gettext'
dfa.o:/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/dfa.c:545: more 
undefined references to `libintl_gettext' follow
collect2: ld returned 1 exit status
make[3]: *** [grep] Error 1
make[3]: Leaving directory `/mnt/hda1/buildroot/build_i386/grep-2.5.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/hda1/buildroot/build_i386/grep-2.5.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/hda1/buildroot/build_i386/grep-2.5.1'
make: *** [/mnt/hda1/buildroot/build_i386/grep-2.5.1/src/grep] Error 2
root at slax:/buildroot#                                                                           

             reply	other threads:[~2008-01-01  7:28 UTC|newest]

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

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=4779EB87.2090400@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox