Mike, 

I'm not using u-boot.  You meant to say "these functions 
exist based purely on how you've configured uClibc", right?  I just did a quick 
look into the source last night, and most of the 
architecture-specific areas of uClibc have definitions bcopy and bzero 
(x86_64 had them, but not i386).  But it was late last night when I 
discovered this, so I didn't really do a very thorough analysis...  it 
may actually just be a uClibc configuration problem (I am just using the 
default configuration).

I hit 3 utilities in the /user area that use the deprecated functions (bash, 
boa, and a 3rd one that I don't 
remember).   Maybe I just got unlucky and happen to have a system that 
uses a lot of the offenders.   I'll do a find when I get home tonight to see 
how many there actually are.

--Dave




----- Original Message ----
From: Mike Frysinger <vap...@gentoo.org>
To: uclinux-dev@uclinux.org
Cc: Dave Rensberger <drens...@yahoo.com>
Sent: Wed, March 24, 2010 4:42:26 PM
Subject: Re: [uClinux-dev] bzero and bcopy  in 20100315 with uClibc on i386

On Tuesday 23 March 2010 23:22:05 Dave Rensberger wrote:
> The biggest problem I've run into so far is that bzero and bcopy don't seem
> to be defined for i386 in uClibc.  Is there a known patch for this issue?

as David said, if they dont exist, it's a bug in your configuration.  these 
functions exist based purely on how you've configured u-boot.

> I know that these functions are deprecated and I could probably solve it by
> replacing all of the bzero() with memset() and bcopy() with memcpy()

so do it.  it's trivial to fix this with `sed`.

> but there are an awful lot of userland utilities that use them, so I'd
> rather not patch all of them.

are you sure about that ?  i rarely run into things using these functions 
anymore.
-mike



      
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to