Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: symbol lookup error with Node.JS 0.8.0 #76

Open
violet-athena opened this issue Jun 27, 2012 · 16 comments
Open

node: symbol lookup error with Node.JS 0.8.0 #76

violet-athena opened this issue Jun 27, 2012 · 16 comments

Comments

@violet-athena
Copy link

When I tried to start my program it exited with this error:
"node: symbol lookup error: /usr/lib/node_modules/db-mysql/build/Release/mysql_bindings.node: undefined symbol: _ZNK2v85Value11IsUndefinedEv"

I'm using Ubuntu 12.04LTS and Node.JS installed via "n".

I tried reinstating the module and it compiled fine, but the error persists.

The same code works fine with Node.JS version 0.6.19

@cptroot
Copy link

cptroot commented Jun 29, 2012

Same here, using a Mac under OS 10.7.4, node.js v0.8.0. Also had it working fine before I updated.
If it helps, here is the full debug trace.

dyld: lazy symbol binding failed: Symbol not found: __ZNK2v85Value11IsUndefinedEv
Referenced from: /Users/evan/FreeFlow/Merge Convert/node_modules/db-mysql/build/Release/mysql_bindings.node
Expected in: flat namespace

dyld: Symbol not found: __ZNK2v85Value11IsUndefinedEv
Referenced from: /Users/evan/FreeFlow/Merge Convert/node_modules/db-mysql/build/Release/mysql_bindings.node
Expected in: flat namespace

Trace/BPT trap: 5

This looks like a linker error to me...

@cptroot
Copy link

cptroot commented Jun 29, 2012

For me it happens when I try to create a new database.
Also breaks on 0.8.1

@vanng822
Copy link

vanng822 commented Jul 2, 2012

would be nice if this is fixed. Want to upgrade to 0.8 but got this issue (Mac).

@kmulvey
Copy link

kmulvey commented Jul 11, 2012

+1 happens on node 0.8.2 (Fedora 17)

@Selvatico
Copy link

the same. i think author leaved development.

@mariano
Copy link
Owner

mariano commented Aug 8, 2012

@Selvatico i did not leave development, if I were to leave I would make a clear announcement, and look for someone to take it over. Development is at a slower pace than usual because of my many responsibilities, though. I would love to see some pull requests coming ;)

@Selvatico
Copy link

@mariano sorry. i saw that last commit was 9 month ago... I would have helped but have no idea what this error means. I assuming that it occurs in all who upgrade to version 0.8.x. Maybe you will do small fix for new node version, because i choose you lib for stability and speed, but i can't upgrade my app becuase this error... I do not want to change the library. but if the decision will not be found will have to rewrite lots of code to a different lib. Thanks for fast reply.

@qraynaud
Copy link

I believe it is just that your module was compiled on 0.6. Simply npm remove & npm install again. It might solve the issue. The module is working fine on >0.8 for me.

@Percepter
Copy link

I installed db-mysql on my ubuntu 12.04 (with node-v0.8.8 on it) everything worked yesterday, and today (i made no changes on the system or my code) when i started node i got " transfer: node: symbol lookup error: /home/nodejs/node_modules/db-mysql/build/Release/mysql_bindings.node: undefined symbol: _ZNK2v85Value11IsUndefinedEv "

@qraynaud
Copy link

Have you tried to npm remove & npm install again ? Might solve your issue. Be attentive to any compilation error you might get.

@Percepter
Copy link

yes, error is this there.

@qraynaud
Copy link

I was talking about a compilation error (during install) and not a runtime error there. Please try to uninstall / reinstall node-db-mysql & copy paste here the installation output if it is still doing the same.

@Percepter
Copy link

I reinstalled it and there where no errors, so i reinstalled also the the mysql_config and specify the mysql_configenvironment variable (export MYSQL_CONFIG=/usr/local/mysql/bin/mysql_config)
and startet it with sudo node 'yourJsFile.js' and now it's running again.

@qraynaud
Copy link

Happy you found a solution. It didn't looked like a node-db-mysql bug. It looked like a linking issue. That's cool you found what was happening.

@Selvatico
Copy link

@Percepter thnx. your guide helps.

@himanshurobo
Copy link

I updated my ubuntu version 16.04 , It stop working . Previously, It was working with 14.04 version.
someone could help me whats the issue ?? and how to resolve it ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants