|
osdir.com mailing list archive |
|
Subject: Re: gettext troubles [possible solution] - msg#00041List: linux.lfs.hardened> 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
Thread at a glance:
Previous Message by Date: (click to view message preview)please ignore my postHow lucky of me - hours before I subscribed the same issue was discussed... -- _______________________________________________ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page Next Message by Date: click to view message previewPerl Ch5.25 uClibc problem.All, Has anyone managed to compile the Perl utils in chapter 5? I keep getting errors compiling toke.c. Searches on the internet show the same error, but no solutions. The build output I keep seeing is below. hlfs:/mnt/hlfs/sources/perl-5.8.8$ make perl utilities `sh cflags "optimize='-O2'" perlmain.o` perlmain.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall `sh cflags "optimize='-O2'" perl.o` perl.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall perl.c: In function 'perl_parse': perl.c:1586: warning: passing argument 1 of 'time' from incompatible pointer type `sh cflags "optimize='-O2'" gv.o` gv.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall `sh cflags "optimize='-O2'" toke.o` toke.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall toke.c: In function 'S_scan_formline': toke.c:10542: error: invalid operands to binary + toke.c:10542: error: invalid lvalue in unary '&' toke.c:10542: error: invalid lvalue in unary '&' make: *** [toke.o] Error 1 I have also tested this build under Glibc and it compiles correctly. Any and all help appreciated. Regards, Brian. -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page Previous Message by Thread: click to view message previewRe: gettext troubles [solution for the sed problem]Rob van Dam schreef: > Perl failed to build, skipping Perl (because perl is only needed for > testing in the next paragraph), I ran into the next trouble. The > configure of texinfo failed with a lot of: "sed: -e expression #1, char > 13: Memory exhausted" errors. > > There is a patch available for the sed problem (for version 4.1.4), on the lfs patches site. This patch also works for version 4.1.5 Please take change the book to use this patch for version 4.1.5 Rob -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page Next Message by Thread: click to view message previewGettext doesn't compile (chapter 5 - uclibc - 2.6 book)Sorry if this is not the right list. I'm building a uclibc LFS, and as the hlfs book has good instructions, I used them for gcc, binutils and uclibc. I'm now in chapter 5, gettext. I haven't followed the book exactly, meaning haven't added all those security features. I did use that default config patch for this /tools uclibc. With Gettext (0.16.1) configure, make -C intl and make -C gnulib-lib work fine. But make -C src msgftm seizes with this error: 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 make: *** [plural-eval.lo] Error 1 As that happened with "vanilla" instructions, I experimented with CFLAGS, used only -O etc.. no change. Also tried adding configure options --with-included-gettext --disable-java --without-csharp but no effect. Google found only one match of this error, from buildroot bugs mailing list, and there were no answers.. Lauri -- _______________________________________________ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Web Hosting Reviews from OSDir.com Sister Site iBizWebHosting.com
|
|