Daniel Stenberg <[EMAIL PROTECTED]> writes:

> On Wed, 28 Nov 2001, zefiro wrote:
> 
>> ld: Undefined symbol
>>    _memmove
>>
>> Do you have any suggestion ?
> 
> SunOS 4 is known to not have memmove.
> 
> May I suggest adding the following (or similiar) to a relevant wget source
> file:
[...]

Thanks for the suggestion and the code example.  Two points, though:

* Isn't it weird that the undefined symbol is _memmove, not memmove?
  It looks as if a header file is translating the symbol, thinking
  that _memmove exists.

* As a BSD offshoot, SunOS almost certainly has bcopy.  Could we make
  use of it?  I seem to remember reading that BSD bcopy is supposed to
  handle overlapping blocks, but I cannot find a confirmation right
  now.  If that were the case, we could simply use this:

#ifndef HAVE_MEMMOVE
# define memmove(to, from, len) bcopy(from, to, len)
#endif

Reply via email to