Details
-
Bug
-
Resolution: Fixed
-
P4
-
19
-
b23
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8293025 | 17.0.6-oracle | Ryan Wallace | P4 | Resolved | Fixed | b01 |
JDK-8289102 | 17.0.5 | Sergey Bylokhov | P4 | Resolved | Fixed | b01 |
JDK-8293024 | 11.0.18-oracle | Ryan Wallace | P4 | Resolved | Fixed | b01 |
JDK-8289181 | 11.0.17 | Sergey Bylokhov | P4 | Resolved | Fixed | b01 |
JDK-8297093 | openjdk8u362 | Sergey Bylokhov | P4 | Resolved | Fixed | b04 |
Description
build errors:
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:276:9:
error: implicit declaration of function 'lseek' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:38:17: note:
expanded from macro 'LSEEK'
# define LSEEK lseek
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:276:9: note:
did you mean 'fseek'?
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:38:17: note:
expanded from macro 'LSEEK'
# define LSEEK lseek
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/stdio.h:162:6:
note: 'fseek' declared here
int fseek(FILE *, long, int);
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:282:24:
error: implicit declaration of function 'lseek' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:38:17: note:
expanded from macro 'LSEEK'
# define LSEEK lseek
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:383:9:
error: implicit declaration of function 'lseek' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:38:17: note:
expanded from macro 'LSEEK'
# define LSEEK lseek
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:424:15:
error: implicit declaration of function 'lseek' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:38:17: note:
expanded from macro 'LSEEK'
# define LSEEK lseek
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:520:14:
error: implicit declaration of function 'lseek' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
offset = LSEEK(state->fd, 0, SEEK_CUR);
^
/home/me/jdk/src/java.base/share/native/libzip/zlib/gzlib.c:38:17: note:
expanded from macro 'LSEEK'
# define LSEEK lseek
^
5 errors generated.
Attachments
Issue Links
- backported by
-
JDK-8289102 Build fails on macos aarch64 when using --with-zlib=bundled
- Resolved
-
JDK-8289181 Build fails on macos aarch64 when using --with-zlib=bundled
- Resolved
-
JDK-8293024 Build fails on macos aarch64 when using --with-zlib=bundled
- Resolved
-
JDK-8293025 Build fails on macos aarch64 when using --with-zlib=bundled
- Resolved
-
JDK-8297093 Build fails on macos aarch64 when using --with-zlib=bundled
- Resolved
- links to
-
Commit openjdk/jdk8u-dev/7ae002ca
-
Commit openjdk/jdk11u-dev/8363d9db
-
Commit openjdk/jdk17u-dev/6f0f8429
-
Commit openjdk/jdk/50d47de8
-
Review openjdk/jdk8u-dev/80
-
Review openjdk/jdk11u-dev/1177
-
Review openjdk/jdk17u-dev/493
-
Review openjdk/jdk18u/175
-
Review openjdk/jdk/8651