Skip to content

include missing header malloc.h#63921

Closed
peppergrayxyz wants to merge 1 commit into
nodejs:mainfrom
peppergrayxyz:format_malloc_h
Closed

include missing header malloc.h#63921
peppergrayxyz wants to merge 1 commit into
nodejs:mainfrom
peppergrayxyz:format_malloc_h

Conversation

@peppergrayxyz

Copy link
Copy Markdown

building using musl fails due to missing header:

../../deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h:747:28: error: use of undeclared identifier 'malloc'
  747 |     T* p = static_cast<T*>(malloc(n * sizeof(T)));
      |                            ^~~~~~
../../deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h:752:35: error: call to function 'free' that is neither visible in the template definition nor found by argument-dependent lookup
  752 |   void deallocate(T* p, size_t) { free(p); }
      |                                   ^

see-also: https://bugs.gentoo.org/977458
fix: #63920

building using musl fails due to missing header:
```
../../deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h:747:28: error: use of undeclared identifier 'malloc'
  747 |     T* p = static_cast<T*>(malloc(n * sizeof(T)));
      |                            ^~~~~~
../../deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h:752:35: error: call to function 'free' that is neither visible in the template definition nor found by argument-dependent lookup
  752 |   void deallocate(T* p, size_t) { free(p); }
      |                                   ^
```

see-also: https://bugs.gentoo.org/977458
fix: nodejs#63920
Signed-off-by: Pepper Gray <hello@peppergray.xyz>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg
  • @nodejs/single-executable

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: format.h:747:28: error: use of undeclared identifier 'malloc'

2 participants