Title: Linking error for libplatform as of 24.11.1 · Issue #61102 · nodejs/node · GitHub
Open Graph Title: Linking error for libplatform as of 24.11.1 · Issue #61102 · nodejs/node
X Title: Linking error for libplatform as of 24.11.1 · Issue #61102 · nodejs/node
Description: Context: I am the upstream author of the libv8 bindings for the R language. For many years Fedora and Debian build libnode as a shared library, such that we can use the embedded libv8 engine in our language bindings. For this to work we ...
Open Graph Description: Context: I am the upstream author of the libv8 bindings for the R language. For many years Fedora and Debian build libnode as a shared library, such that we can use the embedded libv8 engine in our...
X Description: Context: I am the upstream author of the libv8 bindings for the R language. For many years Fedora and Debian build libnode as a shared library, such that we can use the embedded libv8 engine in our...
Opengraph URL: https://github.com/nodejs/node/issues/61102
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Linking error for libplatform as of 24.11.1","articleBody":"## Context:\n\nI am the upstream author of the libv8 bindings for the R language.\n\nFor many years Fedora and Debian build libnode as a shared library, such that we can use the embedded libv8 engine in our language bindings. For this to work we need to link both to `-lv8 -lv8_libplatform`. Below is a minimal example.\n\nSomething seems to have broken, I think between 24.11.0 and 24.11.1. I can reproduce the problem both on Debian and Fedora with the nodejs 24.11.1 package.\n\n### Version\n\nv24.11.1\n\n### Platform\n\n```text\nLinux\n```\n\n### What steps will reproduce the bug?\n\nCompile the minimal hello world:\n\n```cc\n#include \u003clibplatform/libplatform.h\u003e\n#include \u003cv8.h\u003e\nusing namespace v8;\n\nint main(){\n std::unique_ptr\u003cPlatform\u003e platform = platform::NewDefaultPlatform();\n V8::InitializePlatform(platform.get());\n V8::Initialize();\n}\n```\n\nCompile with:\n\n```sh\ng++ -std=gnu++20 test.cpp -I/usr/include/v8 -lv8 -lv8_libplatform\n```\n\nThis gives error:\n\n```\ntest.cpp:(.text+0x39): undefined reference to `v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::unique_ptr\u003cv8::TracingController, std::default_delete\u003cv8::TracingController\u003e \u003e, v8::platform::PriorityMode)'\ncollect2: error: ld returned 1 exit status\n```\n\nIt was working until 24.11.0\n\n","author":{"url":"https://github.com/jeroen","@type":"Person","name":"jeroen"},"datePublished":"2025-12-17T22:47:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/61102/node/issues/61102"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6f1c1da1-e4ce-8532-dbe3-9b7d08f2ffe0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDCA:2EFA45:189FADF:224D7B6:6A4C0FD9 |
| html-safe-nonce | 429675a9fbd88f6de5a042e937d129fed13b54841c09c40aa23a06ab7b3e0813 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRENBOjJFRkE0NToxODlGQURGOjIyNEQ3QjY6NkE0QzBGRDkiLCJ2aXNpdG9yX2lkIjoiNzQ4Mjk3OTU4ODk4NTM2NDA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99c3766a5cbe02bb41c5af62d9ce86e576b3e36e8bd3f9be2ca234ae6950ba86 |
| hovercard-subject-tag | issue:3740758352 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af6a775f750de9ca724618f85ec2d119af1afb2ef09a0b94edb8247f13b48269/nodejs/node/issues/61102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af6a775f750de9ca724618f85ec2d119af1afb2ef09a0b94edb8247f13b48269/nodejs/node/issues/61102 |
| og:image:alt | Context: I am the upstream author of the libv8 bindings for the R language. For many years Fedora and Debian build libnode as a shared library, such that we can use the embedded libv8 engine in our... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeroen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 18812876666a23a0912556e224383baa4c84cf8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width