Rob van Dam wrote:
> In chapter 5.18 cLibc I got following error building gettext:
> In file included from plural-eval.c:36:
> ../../gettext-runtime/intl/eval-plural.h:28: error: conflicting types
> for 'plural_eval'
> ../../gettext-runtime/intl/plural-exp.h:115: error: previous
> declaration of 'plural_eval' was here
>
> Googling around I found a patch for uClibc to solve this problem. The 
> patch is here:
>
> http://uclibc.org/~aldot/uClibc/uClibc-0.9.29-fix-internal_function-definition.patch
>
> This indeed solved the problem form above.
>
> But......now I ran into the next problem:
>
> msgfmt-msgfmt.o: In function `main':
> /mnt/hlfs/sources/gettext-0.16.1/gettext-tools/src/msgfmt.c:214: 
> undefined reference to `error_print_progname'
> collect2: ld returned 1 exit status
> make: *** [msgfmt] Error 1
>
> any idea?
>
> Rob
>   
Hi all / Rob,

Attached is a patch I have created to allow gettext to compile under
uClibc in chapter 5.

I would be interested in feedback from all of you as to your beliefs on
whether we should use this patch or perhaps patch uClibc to allow it to
work for all packages.  Depending on the consensus of the group, I am
more than happy to determine the patch to be applied to the uClibc
package instead.

I look forward to your thoughts.

Kind Regards,
Brian.

--- gettext-0.16.1/gettext-tools/src/msgfmt.c   2006-11-27 17:02:08.000000000 
+0000
+++ gettext-0.16.1/gettext-tools/src/msgfmt.c   2007-07-18 20:12:58.000000000 
+0000
@@ -194,6 +194,7 @@
 static void read_catalog_file_msgfmt (char *filename,
                                      catalog_input_format_ty input_syntax);
 
+void (*error_print_progname) (void) = NULL;
 
 int
 main (int argc, char *argv[])
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to