Alpine Linux 3.20 x86_64 compilation error:
.../src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c: In function 'Java_sun_nio_ch_FileDispatcherImpl_transferTo0':
.../src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c:117:9: error: implicit declaration of function 'sendfile64'; did you mean 'sendfile'? [-Werror=implicit-function-declaration]
117 | n = sendfile64(dstFD, srcFD, &offset, (size_t)count);
| ^~~~~~~~~~
| sendfile
cc1: all warnings being treated as errors
* For target support_native_java.base_libnio_LinuxNativeDispatcher.o:
In file included from .../src/java.base/share/native/libjava/jni_util.h:30,
from .../src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c:27:
.../src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c: In function 'Java_sun_nio_fs_LinuxNativeDispatcher_directCopy0':
.../src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c:214:21: error: implicit declaration of function 'sendfile64'; did you mean 'sendfile'? [-Werror=implicit-function-declaration]
214 | RESTARTABLE(sendfile64(dst, src, NULL, count), bytes_sent);
| ^~~~~~~~~~
.../src/java.base/unix/native/libjava/jni_util_md.h:31:15: note: in definition of macro 'RESTARTABLE'
31 | _result = _cmd; \
| ^~~~
cc1: all warnings being treated as errors
.../src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c: In function 'Java_sun_nio_ch_FileDispatcherImpl_transferTo0':
.../src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c:117:9: error: implicit declaration of function 'sendfile64'; did you mean 'sendfile'? [-Werror=implicit-function-declaration]
117 | n = sendfile64(dstFD, srcFD, &offset, (size_t)count);
| ^~~~~~~~~~
| sendfile
cc1: all warnings being treated as errors
* For target support_native_java.base_libnio_LinuxNativeDispatcher.o:
In file included from .../src/java.base/share/native/libjava/jni_util.h:30,
from .../src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c:27:
.../src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c: In function 'Java_sun_nio_fs_LinuxNativeDispatcher_directCopy0':
.../src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c:214:21: error: implicit declaration of function 'sendfile64'; did you mean 'sendfile'? [-Werror=implicit-function-declaration]
214 | RESTARTABLE(sendfile64(dst, src, NULL, count), bytes_sent);
| ^~~~~~~~~~
.../src/java.base/unix/native/libjava/jni_util_md.h:31:15: note: in definition of macro 'RESTARTABLE'
31 | _result = _cmd; \
| ^~~~
cc1: all warnings being treated as errors
- links to
-
Commit(master) openjdk/jdk/db168d9e
-
Review(master) openjdk/jdk/20295