编译MTK SDK 5020遇到的坑

编译MTK SDK 5020遇到的坑

1.samba 无法编译,报错如下:

smbd/chgpasswd.c: In function 'findpty':
smbd/chgpasswd.c:94:2: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c:99:17: warning: assignment makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c: In function 'expect':
smbd/chgpasswd.c:263:5: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c: In function 'talktochild':
smbd/chgpasswd.c:303:2: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c:317:4: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c:323:3: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c: In function 'chgpasswd':
smbd/chgpasswd.c:520:2: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c:521:2: warning: pointer/integer type mismatch in conditional expression [enabled by default]
smbd/chgpasswd.c:535:39: warning: comparison between pointer and integer [enabled by default]
smbd/chgpasswd.c:551:3: warning: passing argument 2 of 'chat_with_program' discards 'const' qualifier from pointer target type [enabled by default]
smbd/chgpasswd.c:331:13: note: expected 'struct passwd *' but argument is of type 'const struct passwd *'
smbd/chgpasswd.c: In function 'check_lanman_password':
smbd/chgpasswd.c:589:12: warning: assignment makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c: In function 'change_lanman_password':
smbd/chgpasswd.c:649:6: warning: assignment makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c: In function 'pass_oem_change':
smbd/chgpasswd.c:717:12: error: incompatible types when assigning to type 'NTSTATUS' from type 'int'
smbd/chgpasswd.c: In function 'check_oem_password':
smbd/chgpasswd.c:798:14: warning: assignment makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c:802:9: warning: assignment makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c: At top level:
smbd/chgpasswd.c:942:10: error: conflicting types for 'change_oem_password'
smbd/chgpasswd.c:717:14: note: previous implicit declaration of 'change_oem_password' was here
smbd/chgpasswd.c: In function 'change_oem_password':
smbd/chgpasswd.c:973:7: warning: assignment makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c:991:3: warning: passing argument 1 of 'chgpasswd' makes pointer from integer without a cast [enabled by default]
smbd/chgpasswd.c:445:6: note: expected 'const char *' but argument is of type 'int'

临时解决方案:先把samba 去除再编译。

你可能感兴趣的:(mtk)