Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] libintl.h: need a hint or two
@ 2010-05-16 22:03 Robert Urban
  2010-05-17  6:55 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Urban @ 2010-05-16 22:03 UTC (permalink / raw)
  To: buildroot

Hi Folks,

I'm trying to build a router/firewall system.  Thus I've chosen the ipsec-tools
and radvd packages.

These in turn have a dependency on flex.  The flex compile is failing with the
following error, when compiling "dfa.c":

In file included from flexdef.h:102,
                 from ccl.c:34:
gettext.h:26:22: error: libintl.h: No such file or directory

And it's right, there is no "libintl.h" under .../staging/usr/include/...

Please correct me if I'm wrong, but it seems I can only get libintl.h by turning
on first UCLIBC_MJN3_ONLY and then UCLIBC_HAS_GETTEXT_AWARENESS, but if
UCLIBC_MJN3_ONLY is enabled, I get slews of other errors...

I guess I'm doing something wrong.  Can someone help?

thanks,

Rob Urban

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

* [Buildroot] libintl.h: need a hint or two
  2010-05-16 22:03 [Buildroot] libintl.h: need a hint or two Robert Urban
@ 2010-05-17  6:55 ` Thomas Petazzoni
  2010-05-17 10:20   ` Robert Urban
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2010-05-17  6:55 UTC (permalink / raw)
  To: buildroot

On Mon, 17 May 2010 00:03:41 +0200
Robert Urban <urban@unix-beratung.de> wrote:

> I'm trying to build a router/firewall system.  Thus I've chosen the ipsec-tools
> and radvd packages.
> 
> These in turn have a dependency on flex.  The flex compile is failing with the
> following error, when compiling "dfa.c":
> 
> In file included from flexdef.h:102,
>                  from ccl.c:34:
> gettext.h:26:22: error: libintl.h: No such file or directory
> 
> And it's right, there is no "libintl.h" under .../staging/usr/include/...
> 
> Please correct me if I'm wrong, but it seems I can only get libintl.h by turning
> on first UCLIBC_MJN3_ONLY and then UCLIBC_HAS_GETTEXT_AWARENESS, but if
> UCLIBC_MJN3_ONLY is enabled, I get slews of other errors...
> 
> I guess I'm doing something wrong.  Can someone help?

Do you have the full build log available somewhere and the .config file
you are using ?

In general, when using a uClibc toolchain, gettext/libintl must be
compiled separatly from the C library by using the BR2_PACKAGE_GETTEXT
package of Buildroot. So, either flex should depend on it, or it's
because the configure cache has been loaded with incorrect
informations. Only the full build log can tell.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] libintl.h: need a hint or two
  2010-05-17  6:55 ` Thomas Petazzoni
@ 2010-05-17 10:20   ` Robert Urban
  2010-05-17 14:22     ` Robert Urban
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Urban @ 2010-05-17 10:20 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On 05/17/2010 08:55 AM, Thomas Petazzoni wrote:
> On Mon, 17 May 2010 00:03:41 +0200
> Robert Urban <urban@unix-beratung.de> wrote:
> 
>> I'm trying to build a router/firewall system.  Thus I've chosen the ipsec-tools
>> and radvd packages.
>>
>> These in turn have a dependency on flex.  The flex compile is failing with the
>> following error, when compiling "dfa.c":
>>
>> In file included from flexdef.h:102,
>>                  from ccl.c:34:
>> gettext.h:26:22: error: libintl.h: No such file or directory
>>
>> And it's right, there is no "libintl.h" under .../staging/usr/include/...
>>
>> Please correct me if I'm wrong, but it seems I can only get libintl.h by turning
>> on first UCLIBC_MJN3_ONLY and then UCLIBC_HAS_GETTEXT_AWARENESS, but if
>> UCLIBC_MJN3_ONLY is enabled, I get slews of other errors...
>>
>> I guess I'm doing something wrong.  Can someone help?
> 
> Do you have the full build log available somewhere and the .config file
> you are using ?
> 
> In general, when using a uClibc toolchain, gettext/libintl must be
> compiled separatly from the C library by using the BR2_PACKAGE_GETTEXT
> package of Buildroot. So, either flex should depend on it, or it's
> because the configure cache has been loaded with incorrect
> informations. Only the full build log can tell.

as you can see, gettext and libintl are auto-selected by my other choices:

(config-file):
BR2_PACKAGE_GETTEXT=y
BR2_PACKAGE_LIBINTL=y

The build log can be found at:
http://www.spielwiese.de/rob/Buildroot/build.log.gz

and the config at:
http://www.spielwiese.de/rob/Buildroot/config

After my last mail I thought I might have some problem with left-over files, so
I did a "make distclean" and did another build, but the result is the same.

I git cloned the buildroot environment on the 13th of May, and haven't updated
it since.

I would be grateful if you could have a look.

cheers,

Rob Urban

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

* [Buildroot] libintl.h: need a hint or two
  2010-05-17 10:20   ` Robert Urban
@ 2010-05-17 14:22     ` Robert Urban
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Urban @ 2010-05-17 14:22 UTC (permalink / raw)
  To: buildroot

I'll answer my own question...


adding

	FLEX_DEPENDENCIES:=gettext libintl

to .../package/flex/flex.mk  seems to have fixed my problem.

cheers,

Rob Urban

On 05/17/2010 12:20 PM, Robert Urban wrote:
> Hi Thomas,
> 
> On 05/17/2010 08:55 AM, Thomas Petazzoni wrote:
>> On Mon, 17 May 2010 00:03:41 +0200
>> Robert Urban <urban@unix-beratung.de> wrote:
>>
>>> I'm trying to build a router/firewall system.  Thus I've chosen the ipsec-tools
>>> and radvd packages.
>>>
>>> These in turn have a dependency on flex.  The flex compile is failing with the
>>> following error, when compiling "dfa.c":
>>>
>>> In file included from flexdef.h:102,
>>>                  from ccl.c:34:
>>> gettext.h:26:22: error: libintl.h: No such file or directory
>>>
>>> And it's right, there is no "libintl.h" under .../staging/usr/include/...
>>>
>>> Please correct me if I'm wrong, but it seems I can only get libintl.h by turning
>>> on first UCLIBC_MJN3_ONLY and then UCLIBC_HAS_GETTEXT_AWARENESS, but if
>>> UCLIBC_MJN3_ONLY is enabled, I get slews of other errors...
>>>
>>> I guess I'm doing something wrong.  Can someone help?
>>
>> Do you have the full build log available somewhere and the .config file
>> you are using ?
>>
>> In general, when using a uClibc toolchain, gettext/libintl must be
>> compiled separatly from the C library by using the BR2_PACKAGE_GETTEXT
>> package of Buildroot. So, either flex should depend on it, or it's
>> because the configure cache has been loaded with incorrect
>> informations. Only the full build log can tell.
> 
> as you can see, gettext and libintl are auto-selected by my other choices:
> 
> (config-file):
> BR2_PACKAGE_GETTEXT=y
> BR2_PACKAGE_LIBINTL=y
> 
> The build log can be found at:
> http://www.spielwiese.de/rob/Buildroot/build.log.gz
> 
> and the config at:
> http://www.spielwiese.de/rob/Buildroot/config
> 
> After my last mail I thought I might have some problem with left-over files, so
> I did a "make distclean" and did another build, but the result is the same.
> 
> I git cloned the buildroot environment on the 13th of May, and haven't updated
> it since.
> 
> I would be grateful if you could have a look.
> 
> cheers,
> 
> Rob Urban
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

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

end of thread, other threads:[~2010-05-17 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-16 22:03 [Buildroot] libintl.h: need a hint or two Robert Urban
2010-05-17  6:55 ` Thomas Petazzoni
2010-05-17 10:20   ` Robert Urban
2010-05-17 14:22     ` Robert Urban

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