On Mon, 26 Jan 2026, Paolo Vincenzo Olivo wrote:

In the process of updating net/inetutils, which correctly uses
orcmd() on NetBSD, I discovered that unistd.h (on 10.1_STABLE) lacks
function prototypes for both orcmd() and orcmd_af().

With gcc14, the build fails due to implicit function declaration of
orcmd_af. Am I missing something?


I think upstream should just use rcmd(3)/rcmd_af(3) on NetBSD too. On NetBSD,
rcmd(3) can be run by any program--not just by setuid ones--because it runs
/bin/rmcd (which is setuid). (And, /bin/rcmd is the only user of orcmd_af(3)
in the tree.)

Tell upstream to just delete all the orcmd code and configure tests.

If you don't wan't to patch inetutils that extensively for pkgsrc, just add the
prototypes for the missing funcs. to `libinetutils/libinetutils.h'

-RVP

Reply via email to