[Pkg-pascal-devel] Bug#803984: doublecmd: FTBFS on arm64

Edmund Grimley Evans edmund.grimley.evans at gmail.com
Tue Nov 3 21:49:10 UTC 2015


Source: doublecmd
Version: 0.6.6-1

I tried to build this on arm64 with fpc 3.0.0 and got this error:

.../doublecmd-0.6.6/components/doublecmd/dcosutils.pas(240,24) Error: (5000) Identifier not found "syscall_nr_lchown"

On arm64, and other recent architectures, the lchown system call has
been replaced by fchownat. The easiest way to avoid such problems is
not to use system calls directly but instead to use wrapper functions
in standard libraries. If you can't do that and are happy for your
code only to work with recent Linux kernels then you could just
replace lchown with fchownat (with the extra arguments). If you want
your code to work with old kernels and with new architectures then you
have to somehow determine at build time which of lchown and fchownat
is available.



More information about the Pkg-pascal-devel mailing list