Sannis / node-mysql-libmysqlclient

Asynchronous MySQL binding for Node.js
http://sannis.github.com/node-mysql-libmysqlclient
Other
229 stars 47 forks source link

Warning generated when building mysql_bindings.node #166

Closed feelinc closed 11 years ago

feelinc commented 11 years ago

Hi,

I'm having another problem in another mountain lion machine, i'm getting 1 warning when executing "npm install" / "node-gyp build". mysql_bindings.node created, but I cannot connect to MySQL with following error :

MysqlConnectionQueued.prototype = new bindings.MysqlConnection(); ^ TypeError: Cannot read property 'MysqlConnection' of null

The console log when building the mysql_bindings.node :

localhost:mysql-libmysqlclient Me$ npm install

mysql-libmysqlclient@1.5.1 install /Users/Me/Sites/app/node_modules/mysql-libmysqlclient node-gyp rebuild

CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings.o ../src/mysql_bindings.cc:8:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined

define BUILDING_NODE_EXTENSION

    ^

:4:9: note: previous definition is here

define BUILDING_NODE_EXTENSION 1

    ^

1 warning generated. CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_connection.o CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_result.o CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_statement.o SOLINK_MODULE(target) Release/mysql_bindings.node SOLINK_MODULE(target) Release/mysql_bindings.node: Finished

Hope you can tell what I need to do to solving this. Thanks.

twss commented 11 years ago

I'm having this problem too.

Sannis commented 11 years ago

What node version are you using?

Sannis commented 11 years ago
CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings.o
../src/mysql_bindings.cc:8:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined
#define BUILDING_NODE_EXTENSION

This warning was fixed. The first problem with TypeError: Cannot read property 'MysqlConnection' of null is related to #162.