hi:
The app source code have a misc.c.
In the file define : "static int strnlen(char_t *s, unsigned int n);"
but nios2-uclibc previous declaration it.
nios2-linux-uclibc-gcc -c -o ../misc.o -g -Wall -DWEBS -DUEMF -DOS="LINUX" -DLINUX -Dfork=vfork -D__uClinux__ -DUSER_MANAGEMENT_SUPPORT -DDIGEST_ACCESS_SUPPORT -I.. ../misc.c
../misc.c:61: error: conflicting types for 'strnlen'
/home/alex/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.5/../../../../nios2-linux-uclibc/sys-include/string.h:254: error: previous declaration of 'strnlen' was here
../misc.c:61: error: conflicting types for 'strnlen'
/home/alex/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.5/../../../../nios2-linux-uclibc/sys-include/string.h:254: error: previous declaration of 'strnlen' was here
make: *** [../misc.o] 错误 1
[alex@localhost LINUX]$
Then I commented the define and funcntion in misc.c
//static int strnlen(char_t *s, unsigned int n);
/******************************************************************************/
/*
* Return the length of a string limited by a given length
*/
//static int strnlen(char_t *s, unsigned int n)
//{
// unsigned int len;
// len = gstrlen(s);
// return min(len, n);
//}
Then I make again. Make success.
But I worry about I comment it is not correct.