implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]

I am getting an error while compiling AOSP source code of Android for Xperia device.

Error Statement :

Quote:

error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]

Error Details :

Quote:

hardware/qcom/wlan/qcwcn/wcnss-service/wcnss_service.c: In function 'find_full_path':

hardware/qcom/wlan/qcwcn/wcnss-service/wcnss_service.c:249:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
ALOGE("lstat failed %s", strerror(errno)); ^

hardware/qcom/wlan/qcwcn/wcnss-service/wcnss_service.c:253:5: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
if ((strcmp(dr->d_name, ".")) && ^

  • System : Ubuntu Linux 12.04
  • Gcc version : gcc (Ubuntu
  • 4.8.1-2ubuntu1~12.04) 4.8.1 AOSP Version : android-6.0.1_r17


Compilation Error Terminal Screenshot

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by vrosenbaum
4 hours ago
Last post by wbashirian
1 hour ago
Last post by iwest
3 hours ago
Last post by mcglynn.maegan
1 hour ago
Last post by domenica44
33 minutes ago
Unwanted ads
Started by enrique25
Last post by bell68
1 hour ago
Last post by wunsch.amalia
54 minutes ago