BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001300 [buildroot] Other minor always 04-04-07 06:50 06-25-07 11:02
Reporter fv View Status public  
Assigned To buildroot
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0001300: 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

Additional Information

Attached Files  gettext-plural-exp.patch [^] (547 bytes) 04-13-07 07:11

- Relationships

- Notes
(0002311)
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
 
(0002312)
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
 
(0002508)
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
06-25-07 11:02 bernhardf Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker