Open flokli opened 6 years ago
I can still reproduce this on 0.13.70 when building with make:
-- The C compiler identification is GNU 9.3.0
-- Check for working C compiler: /nix/store/x9vxn05bn19wn2mzn6d4h56glbd02pyr-gcc-wrapper-9.3.0/bin/gcc
-- Check for working C compiler: /nix/store/x9vxn05bn19wn2mzn6d4h56glbd02pyr-gcc-wrapper-9.3.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found UnixCommands: /nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash
-- Looking for include file byteswap.h
-- Looking for include file byteswap.h - found
-- Looking for include file direct.h
-- Looking for include file direct.h - not found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file fnmatch.h
-- Looking for include file fnmatch.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file io.h
-- Looking for include file io.h - not found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file ndir.h
-- Looking for include file ndir.h - not found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for include file sys/dir.h
-- Looking for include file sys/dir.h - found
-- Looking for include file sys/int_types.h
-- Looking for include file sys/int_types.h - not found
-- Looking for include file sys/mman.h
-- Looking for include file sys/mman.h - found
-- Looking for include file sys/ndir.h
-- Looking for include file sys/ndir.h - not found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file winbase.h
-- Looking for include file winbase.h - not found
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Looking for include file winnt.h
-- Looking for include file winnt.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of off_t_32
-- Check size of off_t_32 - done
-- Check size of off_t_64
-- Check size of off_t_64 - done
-- Check size of off64_t
-- Check size of off64_t - done
-- found sizeof(off_t/32)=8 and sizeof(off_t/64)=8
-- Found ZLIB: /nix/store/zsr1dksfh97yvb49k3rni00q5lppd9pd-zlib-1.2.11/lib/libz.so (found version "1.2.11")
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'zzip'
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'sdl2'
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found PythonInterp: /nix/store/vs4vj1yzqj1bkcqkf3b6sxm6jfy1gb4j-python3-3.7.7/bin/python (found version "3.7.7")
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_CXX_COMPILER
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_POLICY_DEFAULT_CMP0025
-- Build files have been written to: /build/zziplib-0.13.70/build
cmake: enabled parallel building
building
build flags: -j4 -l4 SHELL=/nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash
Scanning dependencies of target pkgconfig
Scanning dependencies of target compat
Scanning dependencies of target libzzipfseeko
Scanning dependencies of target libzzip
[ 2%] Generating zziplib.pc
[ 2%] Generating compat/zzip.h
[ 4%] Building C object zzip/CMakeFiles/libzzipfseeko.dir/fseeko.c.o
[ 5%] Building C object zzip/CMakeFiles/libzzip.dir/dir.c.o
[ 5%] Built target pkgconfig
[ 5%] Built target compat
[ 7%] Building C object zzip/CMakeFiles/libzzip.dir/err.c.o
Scanning dependencies of target libzzipmmapped
[ 8%] Building C object zzip/CMakeFiles/libzzipmmapped.dir/mmapped.c.o
[ 10%] Building C object zzip/CMakeFiles/libzzip.dir/file.c.o
[ 11%] Building C object zzip/CMakeFiles/libzzipmmapped.dir/memdisk.c.o
[ 13%] Building C object zzip/CMakeFiles/libzzipfseeko.dir/fetch.c.o
[ 14%] Building C object zzip/CMakeFiles/libzzipmmapped.dir/fetch.c.o
[ 15%] Linking C shared library libzzipfseeko-0.so
[ 17%] Building C object zzip/CMakeFiles/libzzip.dir/info.c.o
[ 18%] Linking C shared library libzzipmmapped-0.so
[ 18%] Built target libzzipfseeko
[ 20%] Building C object zzip/CMakeFiles/libzzip.dir/plugin.c.o
Scanning dependencies of target pkgconfigs
[ 21%] Generating zzipwrap.pc
[ 21%] Built target libzzipmmapped
[ 23%] Building C object zzip/CMakeFiles/libzzip.dir/stat.c.o
Scanning dependencies of target unzzip-big
[ 23%] Built target pkgconfigs
Scanning dependencies of target testzips
[ 24%] Building C object bins/CMakeFiles/unzzip-big.dir/unzzip.c.o
[ 26%] Generating test0.zip
adding: README (deflated 49%)
[ 27%] Building C object zzip/CMakeFiles/libzzip.dir/write.c.o
[ 27%] Built target testzips
[ 28%] Building C object zzip/CMakeFiles/libzzip.dir/zip.c.o
In file included from /build/zziplib-0.13.70/bins/unzzip.c:13:
/build/zziplib-0.13.70/zzip/file.h:24:2: warning: #warning zzip/file.h is an internal header, do not use it freely [-Wcpp]
24 | #warning zzip/file.h is an internal header, do not use it freely
| ^~~~~~~
[ 30%] Building C object zzip/CMakeFiles/libzzip.dir/fetch.c.o
[ 31%] Building C object bins/CMakeFiles/unzzip-big.dir/unzzipcat-big.c.o
[ 33%] Building C object bins/CMakeFiles/unzzip-big.dir/unzzipdir-big.c.o
Scanning dependencies of target unzip-mem
[ 34%] Building C object bins/CMakeFiles/unzip-mem.dir/unzip-mem.c.o
Scanning dependencies of target unzzip-mem
[ 36%] Linking C shared library libzzip-0.so
[ 37%] Building C object bins/CMakeFiles/unzzip-mem.dir/unzzip.c.o
[ 39%] Linking C executable unzzip-big
In file included from /build/zziplib-0.13.70/bins/unzzip.c:13:
/build/zziplib-0.13.70/zzip/file.h:24:2: warning: #warning zzip/file.h is an internal header, do not use it freely [-Wcpp]
24 | #warning zzip/file.h is an internal header, do not use it freely
| ^~~~~~~
[ 39%] Built target libzzip
[ 39%] Built target unzzip-big
Scanning dependencies of target libzzipwrap
[ 40%] Building C object zzipwrap/CMakeFiles/libzzipwrap.dir/wrap.c.o
Scanning dependencies of target zzxorcopy
[ 42%] Building C object bins/CMakeFiles/zzxorcopy.dir/zzxorcopy.c.o
[ 43%] Linking C executable unzip-mem
[ 44%] Building C object bins/CMakeFiles/unzzip-mem.dir/unzzipcat-mem.c.o
[ 44%] Built target unzip-mem
[ 46%] Linking C shared library libzzipwrap-0.so
Scanning dependencies of target zzxorcat
[ 47%] Linking C executable zzxorcopy
[ 49%] Building C object bins/CMakeFiles/zzxorcat.dir/zzxorcat.c.o
[ 50%] Building C object bins/CMakeFiles/unzzip-mem.dir/unzzipdir-mem.c.o
/build/zziplib-0.13.70/bins/zzxorcat.c: In function 'main':
/build/zziplib-0.13.70/bins/zzxorcat.c:95:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
95 | write (STDOUT_FILENO, buf, n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 50%] Built target zzxorcopy
[ 50%] Built target libzzipwrap
Scanning dependencies of target unzzip-mix
[ 52%] Building C object bins/CMakeFiles/unzzip-mix.dir/unzzip.c.o
Scanning dependencies of target zzcat
[ 53%] Linking C executable zzxorcat
[ 55%] Building C object bins/CMakeFiles/zzcat.dir/zzcat.c.o
In file included from /build/zziplib-0.13.70/bins/unzzip.c:13:
/build/zziplib-0.13.70/zzip/file.h:24:2: warning: #warning zzip/file.h is an internal header, do not use it freely [-Wcpp]
24 | #warning zzip/file.h is an internal header, do not use it freely
| ^~~~~~~
[ 56%] Linking C executable unzzip-mem
[ 56%] Built target zzxorcat
[ 57%] Linking C executable zzcat
Scanning dependencies of target zziptest
[ 59%] Building C object bins/CMakeFiles/zziptest.dir/zziptest.c.o
[ 59%] Built target unzzip-mem
[ 60%] Building C object bins/CMakeFiles/unzzip-mix.dir/unzzipcat-mix.c.o
Scanning dependencies of target zzxordir
[ 62%] Building C object bins/CMakeFiles/zzxordir.dir/zzxordir.c.o
[ 62%] Built target zzcat
Scanning dependencies of target zzip
[ 63%] Building C object bins/CMakeFiles/zzip.dir/zzip.c.o
[ 65%] Linking C executable zziptest
[ 66%] Building C object bins/CMakeFiles/unzzip-mix.dir/unzzipdir-mix.c.o
[ 68%] Building C object bins/CMakeFiles/zzip.dir/zzipmake-zip.c.o
[ 69%] Linking C executable zzxordir
[ 69%] Built target zziptest
Scanning dependencies of target zzdir
[ 71%] Building C object bins/CMakeFiles/zzdir.dir/zzdir.c.o
[ 72%] Linking C executable zzip
[ 73%] Linking C executable unzzip-mix
[ 73%] Built target zzxordir
Scanning dependencies of target zzobfuscated
[ 75%] Linking C executable zzdir
[ 76%] Building C object bins/CMakeFiles/zzobfuscated.dir/zzobfuscated.c.o
[ 76%] Built target zzip
Scanning dependencies of target unzzip
[ 76%] Built target unzzip-mix
[ 78%] Building C object bins/CMakeFiles/unzzip.dir/unzzip.c.o
Scanning dependencies of target zzipsetstub
/build/zziplib-0.13.70/bins/zzobfuscated.c: In function 'main':
/build/zziplib-0.13.70/bins/zzobfuscated.c:137:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
137 | write (STDOUT_FILENO, buf, n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 79%] Building C object test/CMakeFiles/zzipsetstub.dir/zzipsetstub.c.o
[ 79%] Built target zzdir
In file included from /build/zziplib-0.13.70/bins/unzzip.c:13:
/build/zziplib-0.13.70/zzip/file.h:24:2: warning: #warning zzip/file.h is an internal header, do not use it freely [-Wcpp]
24 | #warning zzip/file.h is an internal header, do not use it freely
| ^~~~~~~
[ 81%] Building C object bins/CMakeFiles/unzzip.dir/unzzipcat-zip.c.o
[ 82%] Linking C executable zzobfuscated
[ 84%] Linking C executable zzipsetstub
Scanning dependencies of target zzipself
[ 85%] Building C object test/CMakeFiles/zzipself.dir/zzipself.c.o
[ 86%] Building C object bins/CMakeFiles/unzzip.dir/unzzipdir-zip.c.o
[ 86%] Built target zzobfuscated
Scanning dependencies of target manpages
[ 88%] Generating zzipfseeko.xml
[ 89%] Linking C executable zzipself
[ 89%] Built target zzipsetstub
[ 91%] Generating zziplib.xml
[ 92%] Linking C executable unzzip
[ 92%] Built target zzipself
Scanning dependencies of target zzipwrap
[ 94%] Building C object zzipwrap/CMakeFiles/zzipwrap.dir/zzipwrap.c.o
[ 94%] Built target unzzip
writing 'zzipfseeko.html'
writing 'zzipfseeko.docbook'
Scanning dependencies of target sfx
writing 'zziplib.html'
not found in anchors: ['zlib', '_open', 'ZZIP_FILE', 'ZZIP_DIR', 'buf32k', 'inflateInit', 'EOF', '__zzip_find_disk_trailer']
[ 95%] Generating zzipshowme
[ 97%] Generating zzipmmapped.xml
writing 'zziplib.docbook'
adding: zzipself (stored 0%)
adding: README (deflated 49%)
cp: cannot stat 'test2.zip': No such file or directory
./zzipsetstub: error while loading shared libraries: libzzip-0.so.13: cannot open shared object file: No such file or directory
make[2]: *** [test/CMakeFiles/sfx.dir/build.make:68: test/zzipshowme] Error 127
make[2]: *** Deleting file 'test/zzipshowme'
make[1]: *** [CMakeFiles/Makefile2:851: test/CMakeFiles/sfx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] Linking C executable zzipwrap
[ 98%] Built target zzipwrap
writing 'zzipmmapped.html'
not found in anchors: ['munmap', 'zzip_file_header_to_data']
writing 'zzipmmapped.docbook'
[100%] Generating manpages.tar
[100%] Built target manpages
make: *** [Makefile:130: all] Error 2
It works fine with ninja.
Looks like leftovers, similar to #20.