-
Notifications
You must be signed in to change notification settings - Fork 132
node v0.10.0 - Module version mismatch #119
Comments
I saw that node.js 0.10.0 was released but I have not yet had a chance to try it out. Apparently it doesn't work. I will try it out as soon as possible and make appropriate fixes. |
Now NodeJS current version is v0.10.1. when we might see the driver version that is compatible with it? |
I am also using node.js 0.10.x and ran into the same issue (module version mismatch). After download of source code, installing python and node-gyp I had an error during compiling because signature of uv_queue_work() changed. |
@CnApTaK has already submitted a pull request. I am waiting for approval to pull the request and merge it in. Thanks. |
Another change in 0.10.x : In include file uv.h : This make incompatible C++ add-on module between 0.8.x and 0.10.x |
Sounds like the issue is with node 0.10.* |
Anyone actually got this working yet with 0.10.x? |
For what it's worth we went with edge.js and have not looked back. |
Interesting, briefly looked at it but would have to roll our own a pi. Will look more into it, if you have any advice or pointers that would be great. |
Meant Api not pi! |
Had a look this morning and it seems promising - when I originally saw Edge.js it didn't have a SQL module, but now it does :) |
So, what needs to be done to get this working on 0.10.* |
Is this still a problem? Can the PR simply be ignored and the project owner go ahead and commit it themselves? That would be the best solution :-P |
I have now tried to compile this module on a variety of platforms, but simply cannot get it to build. Granted I'm new to Node (running v0.10.15). However, other modules compile and install just fine. So I guess my question is, has anyone else succeeded compiling this module? If so, would you mind sharing info re: platform, Node version, etc.? |
@mlanser What problems are you having compiling? Can you list the error messages? |
I recently accepted a pull request that allows the extension to build on node 0.10.x. Can you supply the error messages so that I can better assist? |
@jkint Apologies for the delayed reply .. I'm currently traveling. Anyway, I tried to compile again and got the same errors again: Connection.obj : error LNK2001: unresolved external symbol _SQLFreeHandle@8 [C: Btw, I get this error on both WinXP Pro and Win7. I did some further experimenting and downgraded NodeJS to v0.8.25 and at that point I'm able to compile/build the node-sqlserver module just fine. Tia, |
Interesting. There was another case similar to this reported here just a few days ago. I wonder if something changed in the node-gyp files for the 0.10.x releases. The easiest fix is to add odbc32.lib to the binding.gyp:
|
@jkint That did it! By adding the odbc32.lib to the binding.gyp I was able to compile/build this module on both WinXP and Win7 under NodeJS v0.10.15 Thanks for you help! |
Great! I need to add it to the repository in the near future. Closing this issue since we have merged in support for 0.10.x. |
I get to tray build.... C:\Users\DESARROLLO\Documents\SET_UPs\msnodesql_tobuild\msnodesql>node-gyp build -debug |
And tried this solution... http://blog.gluwer.com/2013/07/windows-azure-websites-and-nodejs-the-setup/ not get results |
Good article - it is very helpfull. What is the reason that odbc32.lib hasn't declared in binding.gyp yet? It is a barrier to use normal installation via npm. |
Did node v0.10 break some C++ APIs? The driver worked perfectly for me on node v.0.8x
C:\node_modules\msnodesql\lib\sqlserver.native.js:29
throw e;
^
Error: Module version mismatch. Expected 11, got 1.
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\node_modules\msnodesql\lib\sqlserver.native.js:21:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Relevant code from node is
https://github.com/joyent/node/blob/master/src/node.h#L204
The text was updated successfully, but these errors were encountered: