Implicit function declaration 'gss_acquire_cred_impersonate_name' invalid in C99

I am trying to learn Node.js version 4.2.1, and when I tried to install mongoose in the project, a warning message appeared, as shown below, this on github does not provide an osx solution. apt-get install libkrb5-devdoesn't seem to apply to the osx environment. Btw I am running os x ei capitan. How to solve this problem?

> 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
+4
mongodb macos
source share

No one has answered this question yet.

See related questions:

25
GCC Warning: Implicit "puts" function declaration invalid in C99
12
npm install jsdom error in windows?
5
Problem installing mongodb module with npm
4
Nodejs with Express - errors when adding mongoDB and mongoose to package.json and running npm install
2
Fatal error installing mongodb using NodeJS
1
Error trying to install mongoose
0
ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see the call)
0
respond to an initial initialization error in a postinstally node
0
Do I need kerberos when trying npm to install mongodb on node.js
0
Error installing with node.js

Source: https://habr.com/ru/post/1612824/


All Articles