santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
171 stars 127 forks source link

Unable to build on Mac OS X El Capitan #60

Closed guoway closed 8 years ago

guoway commented 8 years ago

Environment: OS : Mac OS X El Capitan Node.js version : v6.3.0 pcsclite version : 0.4.9

Situation : Following is the output when I was installing pcsclite. kens-MacBook-Pro:node-pcsclite-master Ken$ npm install npm WARN package.json pcsclite@0.4.9 license should be a valid SPDX license expression > pcsclite@0.4.9 install /Users/ken/Documents/workspace/workspace_nodejs/node-pcsclite-master > node-gyp rebuild

CXX(target) Release/obj.target/pcsclite/src/addon.o CXX(target) Release/obj.target/pcsclite/src/pcsclite.o ../src/pcsclite.cpp:286:20: warning: comparison of integers of different signs: 'LONG' (aka 'int') and 'unsigned int' [-Wsign-compare] if (result == SCARD_E_INSUFFICIENT_BUFFER) { ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. CXX(target) Release/obj.target/pcsclite/src/cardreader.o SOLINK_MODULE(target) Release/pcsclite.node

Can you help to solve it ? Thank you ~

santigimeno commented 8 years ago

@guoway are you sure it's failing, from the logs it seems like a warning and not an error. (of course the warning should be fixed)

guoway commented 8 years ago

Sorry about that, I'm new to node.js, so cannot figure it clearly, now I know that's just a warning but error, sorry to bother you ~

santigimeno commented 8 years ago

No problem. Thanks for the report though, I'll try to fix it asap