编译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 去除再编译。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值