microsoft / microsoft/ProcMon-for-Linux
BPF fails on Debian Linux Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
Open
@MarioHewardt is already working on this.
Since Dec 19, 2024.
investigate
- Dominant language
- C
- Stars
- 4.7k
- Forks
- 295
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 9
Description
After install apt-get install SysinternalsEBPF
[ 48%] Building CXX object CMakeFiles/procmon.dir/src/procmon.cpp.o
In file included from /home/writeback/ProcMon-for-Linux-main/src/configuration/../tracer/ebpf/ebpf_tracer_engine.h:25,
from /home/writeback/ProcMon-for-Linux-main/src/configuration/procmon_configuration.h:34,
from /home/writeback/ProcMon-for-Linux-main/src/procmon.cpp:21:
/home/writeback/ProcMon-for-Linux-main/src/configuration/../tracer/ebpf/syscall_schema.h: In static member function ‘static std::vector<SyscallSchema> Utils::CollectSyscallSchema()’:
/home/writeback/ProcMon-for-Linux-main/src/configuration/../tracer/ebpf/syscall_schema.h:85:26: error: ‘strcpy’ is not a member of ‘std’; did you mean ‘strcpy’?
85 | std::strcpy(schema.syscallName, syscall.name.c_str());
| ^~~~~~
In file included from /home/writeback/ProcMon-for-Linux-main/src/configuration/../storage/../common/telemetry.h:21,
from /home/writeback/ProcMon-for-Linux-main/src/configuration/../storage/storage_engine.h:24,
from /home/writeback/ProcMon-for-Linux-main/src/configuration/../storage/mock_storage_engine.h:25,
from /home/writeback/ProcMon-for-Linux-main/src/configuration/procmon_configuration.h:29:
/usr/include/string.h:141:14: note: ‘strcpy’ declared here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^~~~~~
/home/writeback/ProcMon-for-Linux-main/src/configuration/../tracer/ebpf/syscall_schema.h:109:34: error: ‘strcpy’ is not a member of ‘std’; did you mean ‘strcpy’?
109 | std::strcpy(schema.argNames[argCount], argName.c_str());
| ^~~~~~
/usr/include/string.h:141:14: note: ‘strcpy’ declared here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^~~~~~
make[2]: *** [CMakeFiles/procmon.dir/build.make:156: CMakeFiles/procmon.dir/src/procmon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:225: CMakeFiles/procmon.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.