Skip to content

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

Description

@mikebollandajw

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions