-
Notifications
You must be signed in to change notification settings - Fork 43
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
undefined reference to napi_...
issues
#209
Comments
Can you provide OS, Rust, and other information to debug this? |
Sorry 🤦 , of course @sehz :
Rust (I've tried with both of these:
I've tried compiling with node-bindgen 4.3 and 5 but get the same errors. |
@simlay Please take look at this |
Hmm. This looks to be related to how the nj-core is linked to node at completive. @jdoig What's your nodejs setup like? Like, I'm using Though, now that I look at the node repo, it looks like |
@simlay Typically I've node 14/16/18 installed and controlled via I've checked my And here's some "clutching-at-straws" steps I've taken 😆 :
But still the same problem. |
Please note that while we consider simplification of Node-API module registration and stopping use of |
Ok this is utterly embarrassing 😳 ... The function I was wanting to expose had it's
commented out. One interesting issue with this is: |
This is still causing problems:
So I can now build my node binary and it all seems to be working form inside a node session ... I just cant run my unit tests. Update: To rule out any weirdness in my local terminal session I started up a fresh Debian Docker container: apt installed nodejs and gcc, then installed rust through Update: I also have tried compiling the node-bindgen examples with the same issues. Update: I'm not sure if it's at all relevant but I've also tried compiling Neon examples and they compile fine and test fine with no linking issues. Update: Just had a colleague with an M2 Mac try this with similar results. Can
(he got the same error when he did pass the --lib flag too) |
I can confirm as I ran into the same issue:
Results in this error:
Removing/Uncommenting the |
getting the same issue on ubuntu 22.0.4 with nodejs 16.20.1 & rust 1.71.0, removing build.rs works |
I'm getting an error:
Could someone please advise me on what I need to do to get my project building?
The text was updated successfully, but these errors were encountered: