Rob van Dam wrote:
> Brian Cheeseman wrote:
>   
>> 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.
>>     
> Hello Brian,
> I have put back a backup from tools and tried your patch. It worked 
> perfectly. I am however no programmer so I can't say whats the best 
> approach to this problem. Imho its the best to fix gettext, and send a 
> bug report to uClibc. Trying to fix uClibc could lead to other problems.
>
> Did you come any further with the "Perl problem"?
>
> Rob
>   
Rob,

I've just done some more research and found some chatter on one of the
uClibc mailing lists where they propose a couple of solutions which is
pretty much where we have already gotten to. ie patch gettext or patch
uClibc. I also found a patch on these mailing lists to re-enable the
allocation of the 4 bytes for the pointer in the uClibc codebase and
they seem happy enough about it.

Attached is the patch in question. it will work against 0.9.29. It
should be noted that if this patch is applied to uClibc that the
previous patch I sent around for gettext will not be needed as MUST NOT
be applied as they will conflict on the memory location of the variable.

Cheers,
Brian.



--- uClibc-0.9.29/libc/misc/error/error.c.orig  2007-07-19 20:44:03 +0000
+++ uClibc-0.9.29/libc/misc/error/error.c       2007-07-19 20:44:16 +0000
@@ -47,7 +47,7 @@
 /* If NULL, error will flush stdout, then print on stderr the program
    name, a colon and a space.  Otherwise, error will call this
    function without parameters instead.  */
-/* void (*error_print_progname) (void) = NULL; */
+void (*error_print_progname) (void) = NULL;
 
 extern __typeof(error) __error attribute_hidden;
 void __error (int status, int errnum, const char *message, ...)
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to