Fix builds with recent C compilers#7
Open
nabijaczleweli wants to merge 1 commit intosheyll:masterfrom
Open
Conversation
nabijaczleweli
commented
Dec 3, 2025
nabijaczleweli@tarta:~/work/bsontest$ iex -S mix
Erlang/OTP 25 [erts-13.1.5] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]
===> Fetching pc v1.15.0
===> Analyzing applications...
===> Compiling pc
===> Compiling /home/nabijaczleweli/work/bsontest/deps/inotify/c_src/erl_comm.c
===> /home/nabijaczleweli/work/bsontest/deps/inotify/c_src/erl_comm.c:49:5: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
49 | memset(*pbuf, 0, len - (*size));
| ^
/home/nabijaczleweli/work/bsontest/deps/inotify/c_src/erl_comm.c:49:5: note: include the header <string.h> or explicitly provide a declaration for 'memset'
1 error generated.
** (Mix) Could not compile dependency :inotify, "/home/nabijaczleweli/.mix/elixir/1-17/rebar3 bare compile --paths /home/nabijaczleweli/work/bsontest/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile inotify --force", update it with "mix deps.update inotify" or clean it with "mix deps.clean inotify"
Sponsored-by: https://beaverlabs.net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.