On Tue, Nov 8, 2022 at 6:06 PM Pavel Odintsov <pavel.odint...@gmail.com> wrote:
>
> Hello!
>
> I think I have one more question.
>
> For most of the platforms we support libbpf 1.0.1 works fine but I noticed 
> issues with Debian 11 and Ubuntu 20 about enum declarations:

Can you please give me the steps to reproduce this enum error. libbpf
1.0.1 is not available in Debian-11, so I built a backport package for
libbpf/1.0.1 and then tried building fastnetmon with the backported
libbpf in a Bullseye chroot. I did not see the enum issue, but I got a
different error:

/<<PKGBUILDDIR>>/src/fastnetmon.cpp: In function ‘int main(int, char**)’:
/<<PKGBUILDDIR>>/src/fastnetmon.cpp:1540:14: error: ‘std::filesystem’
has not been declared
 1540 |     if (std::filesystem::exists(backtrace_path)) {
      |              ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/fastnetmon.cpp:1550:14: error: ‘std::filesystem’
has not been declared
 1550 |         std::filesystem::remove(backtrace_path);
      |              ^~~~~~~~~~
make[3]: *** [CMakeFiles/fastnetmon.dir/build.make:85:
CMakeFiles/fastnetmon.dir/fastnetmon.cpp.o] Error 1

Note: I saw that you have commented on the upstream issue about the
enum problem and noticed you are using "latest C++ compiler (not from
Linux distro) and C++ 2022."

-- 
Regards
Sudip

Reply via email to