Hello,

I am trying to build openSSH and one of its modules, openssh-4.5p1
/openbsd-compat/port-tun.c, can't reference bcopy().  I have found
declarations of bcopy() in both string.h and strings.h, however when I write
a simple program such as:

#include <strings.h>

int main()
{
 char src[10], dst[10];

 bcopy( src, dst, sizeof(dst) );
}

and I compile it with 'i686-pc-linux-uclibc-gcc' I get the following error:

bcopy_test.c: In function 'main':
bcopy_test.c:9: warning: incompatible implicit declaration of built-in
function 'bcopy'
/tmp/ccivinM5.o: In function `main':
bcopy_test.c:(.text+0x27): undefined reference to `bcopy'
collect2: ld returned 1 exit status

And yes, I tried the same including "string.h".  The error was the same.

I followed the instructions in the CLFS-Embedded book to build the GCC
compiler.  Is there something I am missing?

Dave
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to