隐含的函数声明' gss_acquire_cred_impersonate_name'在C99中无效

时间:2015-10-22 19:17:35

标签: node.js macos mongodb

我正在尝试学习Node.js版本4.2.1,当我尝试将mongoose安装到项目上时,会出现如下警告消息,但是,github上的this无法提供解决方案在osx上。 apt-get install libkrb5-dev似乎不适用于osx环境。顺便说一句,我正在运行os x El Capitan。如何解决这个问题?

> kerberos@0.0.15 install /Users/caoyang/WebstormProjects/Nodejs/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
../lib/kerberosgss.c:509:13: warning: implicit declaration of function
      'gss_acquire_cred_impersonate_name' is invalid in C99
      [-Wimplicit-function-declaration]
        maj_stat = gss_acquire_cred_impersonate_name(&min_stat,
                   ^
1 warning generated.
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/kerberos.node

0 个答案:

没有答案