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 oauer
1 hour ago
Last post by scartwright
3 hours ago
Last post by jenkins.rodrick
30 minutes ago
Last post by xshanahan
1 hour ago
Last post by mayer.giovanni
3 hours ago
Last post by jwhite
25 minutes ago
Last post by cruz62
4 hours ago
Last post by leannon.amy
36 minutes ago
Last post by moises.mayert
2 hours ago
Last post by bbotsford
1 hour ago