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>\n#include \u003cv8.h>\nusing namespace v8;\n\nint main(){\n std::unique_ptr\u003cPlatform> 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> >, 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:56Z","url":"https://github.com/nodejs/node/issues/61102"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:ba76e41a-25aa-0599-615c-0eab7ee0ef3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B81A:2AB5E3:18FD00B:20D9692:6AED8A7A |
| html-safe-nonce | d9eaf001c306d2405fb1f3f1f70d6e04d086f1539cf07f86da713d5d070ac7ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODFBOjJBQjVFMzoxOEZEMDBCOjIwRDk2OTI6NkFFRDhBN0EiLCJ2aXNpdG9yX2lkIjoiODE4MDU2NzcyNzM3MDI0MjY4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b5a39579b28a735ee13e1cd0fb6f95c7d5aae0a3625930a03c1dd98720777ee |
| 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 | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width