2011-01-07 01:21:10     error:implicit declaration of function ‘strncmp’?

Document created by Aaronwu Employee on Aug 25, 2013
Version 1Show Document
  • View in full screen mode

2011-01-07 01:21:10     error:implicit declaration of function ‘strncmp’?

zhang zhihua (CHINA)

Message: 97239   

 

Hi,

 

     After update to the 2010R1,it found error that:

 

In file included from include/linux/bitmap.h:8,

                 from include/linux/nodemask.h:93,

                 from include/linux/mmzone.h:16,

                 from include/linux/gfp.h:4,

                 from include/linux/kmod.h:22,

                 from include/linux/module.h:13,

                 from arch/blackfin/lib/strncmp.c:13:

include/linux/string.h: In function ‘strstarts’:

include/linux/string.h:143: error: implicit declaration of function ‘strncmp’

make[2]: *** [arch/blackfin/lib/strncmp.o] Error 1

make[1]: *** [arch/blackfin/lib] Error 2

make[1]: Leaving directory `/home/uClinux-dist/linux-2.6.x'

make: *** [linux] Error 1

 

How to do?

TranslateQuoteReplyEditDelete

 

 

2011-01-07 11:48:32     Re: error:implicit declaration of function ‘strncmp’?

Mike Frysinger (UNITED STATES)

Message: 97253   

 

how exactly did you upgrade ?  did you just unpack 2010R1 onto an existing source tree ?

QuoteReplyEditDelete

 

 

2011-01-09 20:55:49     Re: error:implicit declaration of function ‘strncmp’?

zhang zhihua (CHINA)

Message: 97285   

 

Hi,Mike,

 

    Maybe I only update the linux_kernel to the 2010R1 but don't update the uClinux-dist,I will update the uclinux-dist and try again!

Attachments

    Outcomes