David Whitney wrote:
>
> 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?
The error you're looking at is a linker error, not a compiler error. The 
symbol is found in the header. The object apparently compiles fine. I'm 
not that familiar with uclibc but because it's so modular I bet it's 
built without bcopy support. (I can only speculate here, I have nothing 
to test). A quick browse through the source code shows me that bcopy 
will exist if __UCLIBC_SUSV3_LEGACY__ is defined.

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

Reply via email to