On AIX 7.3 (machine: cfarm119.cfarm.net, compiler: gcc,
configure options: --with-openssl=no), the build fails due to a
compilation error:

  CC       src/yes.o
../src/yes.c: In function 'splice_write':
../src/yes.c:150:62: error: 'SPLICE_F_GIFT' undeclared (first use in this 
function)
  150 |           unsigned int flags = iov.iov_len % page_size ? 0 : 
SPLICE_F_GIFT;
      |                                                              
^~~~~~~~~~~~~
../src/yes.c:150:62: note: each undeclared identifier is reported only once for 
each function it appears in
../src/yes.c:151:23: warning: implicit declaration of function 'vmsplice' 
[-Wimplicit-function-declaration]
  151 |           ssize_t n = vmsplice (vmsplice_fd, &iov, 1, flags);
      |                       ^~~~~~~~
../src/yes.c:166:27: warning: implicit declaration of function 'splice' 
[-Wimplicit-function-declaration]
  166 |               ssize_t s = splice (pipefd[0], NULL, STDOUT_FILENO, NULL,
      |                           ^~~~~~
../src/yes.c:167:46: error: 'SPLICE_F_MOVE' undeclared (first use in this 
function)
  167 |                                   remaining, SPLICE_F_MOVE);
      |                                              ^~~~~~~~~~~~~
gmake[2]: *** [Makefile:13598: src/yes.o] Error 1

I guess the configuration needs to be tweaked. It found:

  checking for splice... yes

and thus defined

  $ grep -i splice config.status 
  D["HAVE_SPLICE"]=" 1"





Reply via email to