DEBUG: Executing shell function do_compile
NOTE: make -j 10 -l 64 -e MAKEFLAGS= STRIP=true LF2= CF_NOOPT=-I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -f unix/Makefile generic
sh unix/configure "gcc " "-I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe" "bzip2"
Check C compiler operation
Ok
Check C compiler type (optimization options)
GNU C ()
Check for the C preprocessor
Check if we can use asm code
Check for ANSI options
Check for prototypes
Check the handling of const
Check for time_t
Check for size_t
Check for off_t
Check for Large File Support
-- yes we have Large File Support!
Check for wide char support
-- no Unicode (wchar_t) support
Check for setlocale support (needed for UNICODE Native check)
-- have setlocale, can check for charset type
-- - enabling UTF8-native support!
Check for gcc no-builtin flag
Check for fchmod
Check for fchown
Check for lchown
Check for nl_langinfo
Check for lchmod
conftest.c: In function ‘main’:
conftest.c:2:14: error: implicit declaration of function ‘lchmod’ [-Werror=implicit-function-declaration]
2 | int main() { lchmod("/tmp/unzip_test_1085568", 0666); }
| ^~~~~~
cc1: some warnings being treated as errors
Check for memset
Check for errno declaration
Check for directory libraries
Check for readlink
Check for directory include file
Check for non existent include files
Check for term I/O include file
Check for MBCS include files
Check for MBCS support
-- no MBCS support
Check for valloc
Check for /usr/local/bin and /usr/local/man
Checking for OS specialties
Check for symbolic links
Check bzip2 support
Check for bzip2 sources in unzip's bzip2 subdirectory
-- bzip2 sources not found - no bzip2 support
eval make -f unix/Makefile unzips ACONF_DEP=flags `cat flags`
make[1]: Entering directory 'TMPDIR/work/x86_64-linux/unzip-native/6.0/sources/unzip60'
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS unzip.c
In file included from unzip.h:719,
from unzip.c:68:
unzip.c: In function ‘usage’:
unzpriv.h:1009:45: warning: format ‘%c’ expects argument of type ‘int’, but argument 3 has type ‘char *’ [-Wformat=]
1009 | # define LoadFarString(x) (char *)(x)
| ^
unzpriv.h:2718:61: note: in definition of macro ‘Info’
2718 | (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
| ^~~~~~~~
unzip.c:2118:43: note: in expansion of macro ‘LoadFarString’
2118 | Info(slide, flag, ((char *)slide, LoadFarString(ZipInfoUsageLine3),
| ^~~~~~~~~~~~~
unzpriv.h:1009:45: warning: format ‘%c’ expects a matching ‘int’ argument [-Wformat=]
1009 | # define LoadFarString(x) (char *)(x)
| ^
unzpriv.h:2718:61: note: in definition of macro ‘Info’
2718 | (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
| ^~~~~~~~
unzip.c:2118:43: note: in expansion of macro ‘LoadFarString’
2118 | Info(slide, flag, ((char *)slide, LoadFarString(ZipInfoUsageLine3),
| ^~~~~~~~~~~~~
unzpriv.h:1009:45: warning: format ‘%c’ expects a matching ‘int’ argument [-Wformat=]
1009 | # define LoadFarString(x) (char *)(x)
| ^
unzpriv.h:2718:61: note: in definition of macro ‘Info’
2718 | (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
| ^~~~~~~~
unzip.c:2118:43: note: in expansion of macro ‘LoadFarString’
2118 | Info(slide, flag, ((char *)slide, LoadFarString(ZipInfoUsageLine3),
| ^~~~~~~~~~~~~
unzpriv.h:1009:45: warning: format ‘%c’ expects a matching ‘int’ argument [-Wformat=]
1009 | # define LoadFarString(x) (char *)(x)
| ^
unzpriv.h:2718:61: note: in definition of macro ‘Info’
2718 | (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
| ^~~~~~~~
unzip.c:2118:43: note: in expansion of macro ‘LoadFarString’
2118 | Info(slide, flag, ((char *)slide, LoadFarString(ZipInfoUsageLine3),
| ^~~~~~~~~~~~~
unzpriv.h:1009:45: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
1009 | # define LoadFarString(x) (char *)(x)
| ^
unzpriv.h:2718:61: note: in definition of macro ‘Info’
2718 | (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
| ^~~~~~~~
unzip.c:2118:43: note: in expansion of macro ‘LoadFarString’
2118 | Info(slide, flag, ((char *)slide, LoadFarString(ZipInfoUsageLine3),
| ^~~~~~~~~~~~~
In function ‘show_version_info’,
inlined from ‘uz_opts’ at unzip.c:1983:13:
unzpriv.h:2718:53: warning: ‘%s’ directive writing up to 74535 bytes into a region of size 65528 [-Wformat-overflow=]
2718 | (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
unzip.c:2587:9: note: in expansion of macro ‘Info’
2587 | Info(slide, 0, ((char *)slide, LoadFarString(CompileOptFormat),
| ^~~~
In file included from /usr/include/stdio.h:894,
from unzpriv.h:634:
In function ‘sprintf’,
inlined from ‘show_version_info’ at unzip.c:2587:9,
inlined from ‘uz_opts’ at unzip.c:1983:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 10 and 74545 bytes into a destination of size 65536
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS crc32.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS crypt.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS envargs.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS explode.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS extract.c
extract.c: In function ‘extract_or_test_files’:
extract.c:773:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
773 | read(G.zipfd, (char *)G.inbuf, INBUFSIZ); /* been here before... */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extract.c: In function ‘store_info’:
extract.c:1085:13: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1085 | fgets(G.answerbuf, sizeof(G.answerbuf), stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extract.c: In function ‘extract_or_test_entrylist’:
extract.c:1666:29: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1666 | fgets(G.filename, FILNAMSIZ, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS fileio.c
fileio.c: In function ‘disk_error’:
fileio.c:1225:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1225 | fgets(G.answerbuf, sizeof(G.answerbuf), stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS globals.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS inflate.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS list.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS match.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS process.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS ttyio.c
ttyio.c: In function ‘zgetch’:
ttyio.c:463:5: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
463 | read(f, &c, 1); /* read our character */
| ^~~~~~~~~~~~~~
ttyio.c: In function ‘getp’:
ttyio.c:631:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
631 | read(f, &c, 1);
| ^~~~~~~~~~~~~~
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS ubz2err.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS unreduce.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS unshrink.c
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS zipinfo.c
zipinfo.c: In function ‘zipinfo’:
zipinfo.c:2045:49: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
2045 | sprintf(&attribs[12], "%u.%u", hostver/10, hostver%10);
| ^
In file included from /usr/include/stdio.h:894,
from unzpriv.h:634,
from unzip.h:719,
from zipinfo.c:26:
In function ‘sprintf’,
inlined from ‘zi_short’ at zipinfo.c:2045:21,
inlined from ‘zipinfo’ at zipinfo.c:919:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 4 and 5 bytes into a destination of size 4
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
zipinfo.c: In function ‘zipinfo’:
zipinfo.c:2088:41: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
2088 | sprintf(&attribs[12], "%u.%u", hostver/10, hostver%10);
| ^
In function ‘sprintf’,
inlined from ‘zi_short’ at zipinfo.c:2088:13,
inlined from ‘zipinfo’ at zipinfo.c:919:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 4 and 5 bytes into a destination of size 4
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
zipinfo.c: In function ‘zipinfo’:
zipinfo.c:2063:41: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
2063 | sprintf(&attribs[12], "%u.%u", hostver/10, hostver%10);
| ^
In function ‘sprintf’,
inlined from ‘zi_short’ at zipinfo.c:2063:13,
inlined from ‘zipinfo’ at zipinfo.c:919:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 4 and 5 bytes into a destination of size 4
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
zipinfo.c: In function ‘zipinfo’:
zipinfo.c:2134:52: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
2134 | sprintf(attribs, ".r.-... %u.%u", hostver/10, hostver%10);
| ^
In function ‘sprintf’,
inlined from ‘zi_short’ at zipinfo.c:2134:17,
inlined from ‘zipinfo’ at zipinfo.c:919:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 16 and 17 bytes into a destination of size 16
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
zipinfo.c: In function ‘zipinfo’:
zipinfo.c:2190:41: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
2190 | sprintf(&attribs[12], "%u.%u", hostver/10, hostver%10);
| ^
In function ‘sprintf’,
inlined from ‘zi_short’ at zipinfo.c:2190:13,
inlined from ‘zipinfo’ at zipinfo.c:919:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 4 and 5 bytes into a destination of size 4
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
gcc -c -I. -Ibzip2 -DUNIX -isystemTMPDIR/work/x86_64-linux/unzip-native/6.0/recipe-sysroot-native/usr/include -O2 -pipe -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_FCHMOD -DNO_FCHOWN -DNO_LCHOWN -DNO_NL_LANGINFO -DNO_LCHMOD -DZMEM -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_MBCS unix/unix.c
unix/unix.c:135:14: error: conflicting types for ‘DIR’; have ‘FILE’
135 | typedef FILE DIR;
| ^~~
In file included from unix/unix.c:59:
/usr/include/dirent.h:127:28: note: previous declaration of ‘DIR’ with type ‘DIR’
127 | typedef struct __dirstream DIR;
| ^~~
unix/unix.c:139:6: error: expected ‘;’ before ‘DIR’
139 | } DIR
| ^
| ;
140 | DIR *opendir OF((ZCONST char *dirspec));
| ~~~
unix/unix.c:140:6: error: conflicting types for ‘opendir’; have ‘DIR *(const char *)’ {aka ‘FILE *(const char *)’}
140 | DIR *opendir OF((ZCONST char *dirspec));
| ^~~~~~~
/usr/include/dirent.h:134:13: note: previous declaration of ‘opendir’ with type ‘DIR *(const char *)’
134 | extern DIR *opendir (const char *__name) __nonnull ((1));
| ^~~~~~~
unix/unix.c:141:6: error: conflicting types for ‘closedir’; have ‘void(DIR *)’ {aka ‘void(FILE *)’}
141 | void closedir OF((DIR *dirp));
| ^~~~~~~~
/usr/include/dirent.h:149:12: note: previous declaration of ‘closedir’ with type ‘int(DIR *)’
149 | extern int closedir (DIR *__dirp) __nonnull ((1));
| ^~~~~~~~
unix/unix.c:142:16: error: conflicting types for ‘readdir’; have ‘struct dirent *(DIR *)’ {aka ‘struct dirent *(FILE *)’}
142 | struct dirent *readdir OF((DIR *dirp));
| ^~~~~~~
In file included from /usr/include/features.h:486,
from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from ./unix/unxcfg.h:53,
from ./unzpriv.h:561,
from ./unzip.h:719,
from unix/unix.c:31:
/usr/include/dirent.h:165:23: note: previous declaration of ‘readdir’ with type ‘struct dirent *(DIR *)’
165 | extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
| ^~~~~~~~~~
unix/unix.c:133:34: error: expected ‘)’ before string constant
133 | #define opendir(path) fopen(path,"r")
| ^~~
unix/unix.c:144:6: note: in expansion of macro ‘opendir’
144 | DIR *opendir(dirspec)
| ^~~~~~~
unix/unix.c:146:1: error: expected identifier or ‘(’ before ‘{’ token
146 | {
| ^
unix/unix.c:134:23: error: conflicting types for ‘fclose’; have ‘void()’
134 | #define closedir(dir) fclose(dir)
| ^~~~~~
unix/unix.c:158:6: note: in expansion of macro ‘closedir’
158 | void closedir(dirp)
| ^~~~~~~~
In file included from ./unzpriv.h:634:
/usr/include/stdio.h:178:12: note: previous declaration of ‘fclose’ with type ‘int(FILE *)’
178 | extern int fclose (FILE *__stream);
| ^~~~~~
unix/unix.c: In function ‘fclose’:
unix/unix.c:161:16: error: ‘DIR’ {aka ‘FILE’} has no member named ‘dirhandle’
161 | fclose(dirp->dirhandle);
| ^~
unix/unix.c: At top level:
unix/unix.c:169:16: error: conflicting types for ‘readdir’; have ‘struct dirent *(DIR *)’ {aka ‘struct dirent *(FILE *)’}
169 | struct dirent *readdir(dirp)
| ^~~~~~~
/usr/include/dirent.h:165:23: note: previous declaration of ‘readdir’ with type ‘struct dirent *(DIR *)’
165 | extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
| ^~~~~~~~~~
unix/unix.c: In function ‘readdir’:
unix/unix.c:170:10: error: argument ‘dirp’ doesn’t match prototype
170 | DIR *dirp;
| ^~~~
/usr/include/dirent.h:165:23: error: prototype declaration
165 | extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
| ^~~~~~~~~~
unix/unix.c:177:25: error: ‘DIR’ {aka ‘FILE’} has no member named ‘entry’
177 | if (fread(&(dirp->entry), sizeof (struct dirent), 1,
| ^~
unix/unix.c:178:23: error: ‘DIR’ {aka ‘FILE’} has no member named ‘dirhandle’
178 | dirp->dirhandle) == 0)
| ^~
unix/unix.c:180:23: error: ‘DIR’ {aka ‘FILE’} has no member named ‘entry’
180 | else if ((dirp->entry).d_ino)
| ^~
unix/unix.c:181:26: error: ‘DIR’ {aka ‘FILE’} has no member named ‘entry’
181 | return &(dirp->entry);
| ^~
make[1]: Leaving directory 'TMPDIR/work/x86_64-linux/unzip-native/6.0/sources/unzip60'
make[1]: *** [unix/Makefile:403: unix.o] Error 1
make: *** [unix/Makefile:544: generic] Error 2
ERROR: oe_runmake failed
WARNING: TMPDIR/work/x86_64-linux/unzip-native/6.0/temp/run.do_compile.1085438:168 exit 1 from 'exit 1'
WARNING: Backtrace (BB generated script):
#1: bbfatal_log, TMPDIR/work/x86_64-linux/unzip-native/6.0/temp/run.do_compile.1085438, line 168
#2: die, TMPDIR/work/x86_64-linux/unzip-native/6.0/temp/run.do_compile.1085438, line 152
#3: oe_runmake, TMPDIR/work/x86_64-linux/unzip-native/6.0/temp/run.do_compile.1085438, line 147
#4: do_compile, TMPDIR/work/x86_64-linux/unzip-native/6.0/temp/run.do_compile.1085438, line 142
#5: main, TMPDIR/work/x86_64-linux/unzip-native/6.0/temp/run.do_compile.1085438, line 181