Skip to contentSkip to conversation

: gettext building problem.

Buildroot bugs at busybox.net 1 participant 1 message Jun 25, 2007

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=1300
======================================================================

Reported By:                fv
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   1300
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             04-04-2007 06:50 PDT
Last Modified:              06-25-2007 11:02 PDT

======================================================================
Summary: gettext building problem.
Description:
Gettext build fail in -snapshot version (of today). There is a multiple definition of 'plural_eval(...)' function.

from:
build_i686/gettext-0.14.6/gettext-runtime/intl/eval-plural.h:28 build_i686/gettext-0.14.6/gettext-runtime/intl/plural-exp.h:115

from eval-plural.h:

/* Evaluate the plural expression and return an index value. */ STATIC
unsigned long int
internal_function
plural_eval (struct expression *pexp, unsigned long int n)

{

from plural-exp.h:

        #if !defined (_LIBC) && !defined (IN_LIBINTL)                     
                                                                      
        extern unsigned long int plural_eval (struct expression *pexp,
                              unsigned long int n);
        #endif

Seems like a condition has to be added ( eg. !defined(_BUILDROOT) ) in plural-exp.h

My LANG environment variable is set to "fr_FR.UTF-8". Strangely, changing it to LANG=C and re-launching the build seems to solve the problem

Cheers,
Francois Visconte

======================================================================

----------------------------------------------------------------------
fv - 04-13-07 07:10
----------------------------------------------------------------------
In fact doing "export LANG=C" does not solve the problem.

The attached patch solves the problem.
Put it into packages/gettext and build will work

Cheers,
Fran?ois Visconte

----------------------------------------------------------------------
fv - 04-13-07 07:13
----------------------------------------------------------------------
Sorry for the error, the good patch is :

--- gettext-0.14.6/gettext-runtime/intl/plural-exp.h.old 2005-05-20
23:03:38.000000000 +0200
+++ gettext-0.14.6/gettext-runtime/intl/plural-exp.h 2007-04-13
15:54:54.000000000 +0200
@@ -110,7 +110,7 @@
unsigned long int *npluralsp)
internal_function;

-#if !defined (_LIBC) && !defined (IN_LIBINTL)
+#if !defined (__UCLIBC__) && !defined (_LIBC) && !defined (IN_LIBINTL)
extern unsigned long int plural_eval (struct expression *pexp,

                              unsigned long int n);

#endif

----------------------------------------------------------------------
bernhardf - 06-25-07 11:02
----------------------------------------------------------------------
The patch is wrong. This was fixed properly in svn by now.

Issue History
Date Modified Username Field Change
======================================================================

04-04-07 06:50  fv             New Issue                                    
04-04-07 06:50  fv             Status                   new => assigned     
04-04-07 06:50  fv             Assigned To               => buildroot       
04-13-07 07:10  fv             Note Added: 0002311                          
04-13-07 07:11  fv             File Added: gettext-plural-exp.patch             
04-13-07 07:13  fv             Note Added: 0002312                          
06-25-07 11:02  bernhardf      Status                   assigned => closed  
06-25-07 11:02  bernhardf      Note Added: 0002508                          

======================================================================