Control: retitle -1 extattr prototypes declared in kernel headers sys/extattr.h but not implemented by libc0.1 Control: reassign -1 libc0.1,kfreebsd-kernel-headers
On Tue, May 01, 2018 at 03:53:03PM +0200, Hilmar Preuße wrote: > Package: libc0.1-dev > Version: 2.27-3 > Severity: normal > > Dear Maintainer, > > I hope this is the right package to report on. > > I noticed that proftp v1.3.6 FTBFS on kfreebsd. James Clarke told me in > bug #897168 that libc0.1-dev exposes some system calls in header files, > which are not implement in any lib, hence the link stage fails. > > My impression is that functions, which do not exist should not be visible > in any header files. Consider to fix the header files. To clarify, kfreebsd-kernel-headers provides sys/extattr.h, which declare the BSD-ish extended attributes prototypes, but for which there is no corresponding implementation in libc0.1, not even stubs. Moreover, libc0.1-dev provides sys/xattr.h with the Linux-ish prototypes, but those are merely stubs in libc0.1 returning -1 with errno set to ENOSYS. It probably makes sense to use the BSD-ish ones given they are a slightly different interface and are OS-specific APIs, in which case libc0.1 should gain implementations for them, though alternatively the Linux-ish ones could be used and sys/extattr.h dropped for (non-libc) userspace. James

