Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] trouble building grep
@ 2008-04-22 17:59 hartleys
  2008-04-23  7:22 ` Guillaume Dargaud
  0 siblings, 1 reply; 4+ messages in thread
From: hartleys @ 2008-04-22 17:59 UTC (permalink / raw)
  To: buildroot

Hello all,

I'm trying to cross compile grep for an ARM processor and have a problem
I can't work out.

As far as I can tell the dependants (uclibc, gettext and libintl) are
being built with no problem. When the make runs for grep it appears to
get configured fine but during the actual build I get error messages
that I think are during the link of libgreputils.a. I get undefined
reference messages for libintl_gettext at various lines in the source
then the build stops. 

I'm kind of stuck. Any ideas what the problem could be? I already
checked my $(STAGING_DIR)/usr/lib directory and the libgettext and
libintl files are there.

Thanks,
Hartley

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] trouble building grep
  2008-04-22 17:59 [Buildroot] trouble building grep hartleys
@ 2008-04-23  7:22 ` Guillaume Dargaud
  2008-06-18 23:50   ` hartleys
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Dargaud @ 2008-04-23  7:22 UTC (permalink / raw)
  To: buildroot

> As far as I can tell the dependants (uclibc, gettext and libintl) are
> being built with no problem. When the make runs for grep it appears to
> get configured fine but during the actual build I get error messages
> that I think are during the link of libgreputils.a. I get undefined
> reference messages for libintl_gettext at various lines in the source
> then the build stops.
>
> I'm kind of stuck. Any ideas what the problem could be? I already
> checked my $(STAGING_DIR)/usr/lib directory and the libgettext and
> libintl files are there.

All I can offer is that the grep from busybox works fine, and doesn't need 
gettext.

I assume you have selected BR2_PACKAGE_GETTEXT in the main config of 
buildroot.

But I think the main problem is with locales (intl) and/or wchar 
dependencies missing from the uclibc config.
-- 
Guillaume Dargaud
http://www.gdargaud.net/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] trouble building grep
  2008-04-23  7:22 ` Guillaume Dargaud
@ 2008-06-18 23:50   ` hartleys
  2008-06-18 23:58     ` hartleys
  0 siblings, 1 reply; 4+ messages in thread
From: hartleys @ 2008-06-18 23:50 UTC (permalink / raw)
  To: buildroot

> > As far as I can tell the dependants (uclibc, gettext and libintl)
are 
> > being built with no problem. When the make runs for grep it appears
to 
> > get configured fine but during the actual build I get error messages

> > that I think are during the link of libgreputils.a. I get undefined 
> > reference messages for libintl_gettext at various lines in the
source 
> > then the build stops.
>
> All I can offer is that the grep from busybox works fine, and doesn't
> need gettext.
> 
> I assume you have selected BR2_PACKAGE_GETTEXT in the main config of
> buildroot.
>
> But I think the main problem is with locales (intl) and/or wchar
> dependencies missing from the uclibc config.

I've done some googling and "think" the problem has something to do with
the configure for grep.

http://www.haible.de/bruno/gettext-FAQ.html

During the configure it finds libintl.h and ends up defining
HAVE_LIBINTL_H in config.h. But none of the final links during the build
of grep include the option '-lintl' to link the library.

According to the website above, this has something to do with @INTLLIBS@
in Makefile.in but my knowledge of how the autoconf stuff works is
pretty limited so I'm not sure how to fix it.

Can anyone offer any help?

Thanks,
Hartley

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] trouble building grep
  2008-06-18 23:50   ` hartleys
@ 2008-06-18 23:58     ` hartleys
  0 siblings, 0 replies; 4+ messages in thread
From: hartleys @ 2008-06-18 23:58 UTC (permalink / raw)
  To: buildroot

> I've done some googling and "think" the problem has
> something to do with the configure for grep.
>
> http://www.haible.de/bruno/gettext-FAQ.html
>
> During the configure it finds libintl.h and ends up
> defining HAVE_LIBINTL_H in config.h. But none of the
> final links during the build of grep include the
> option '-lintl' to link the library.
>
> According to the website above, this has something to
> do with @INTLLIBS@ in Makefile.in but my knowledge of
> how the autoconf stuff works is pretty limited so I'm
> not sure how to fix it.

Looks like this is a known issue.

http://bugs.busybox.net/view.php?id=1549

Hartley

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-18 23:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22 17:59 [Buildroot] trouble building grep hartleys
2008-04-23  7:22 ` Guillaume Dargaud
2008-06-18 23:50   ` hartleys
2008-06-18 23:58     ` hartleys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox