Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BPF fails on Debian Linux Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux #115

Open
mikebollandajw opened this issue Aug 23, 2024 · 0 comments
Assignees

Comments

@mikebollandajw
Copy link

mikebollandajw commented Aug 23, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants