Source: lttngtop
Version: 0.2-2

It failed to build on arm64:

http://buildd.debian.org/status/package.php?p=lttngtop&suite=sid

The error was:

iostreamtop.c: In function 'add_file':
iostreamtop.c:60:22: error: '__NR_open' undeclared (first use in this function)
     tmp_file->flag = __NR_open;
                      ^

Newer architectures do not have the system call "open"; they just have
"openat", which is more general.

It looks as though lttngtop is not really using the system call but
just using __NR_open, __NR_close and others as an enumeration. If that
is true, perhaps they should all be replaced with a real enum.

Inserting this into src/iostreamtop.c just after the #includes seems
to allow the package to build but is not exactly neat:

#ifndef __NR_open
#define __NR_open __NR_openat
#endif


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to