The system is: Linux - 4.19.27-gentoo-r1 - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc Build flags: -O2;-I/mnt/gold/openwrt/lede/staging_dir/host/include;-I/mnt/gold/openwrt/lede/staging_dir/host/usr/include; Id flags: The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/3.7.1/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ Build flags: -O2;-I/mnt/gold/openwrt/lede/staging_dir/host/include;-I/mnt/gold/openwrt/lede/staging_dir/host/usr/include; Id flags: The output was: 0 Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is GNU, found in "/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/3.7.1/CompilerIdCXX/a.out" Determining if the C compiler works passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d9ef4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d9ef4.dir/build.make CMakeFiles/cmTC_d9ef4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d9ef4.dir/testCCompiler.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_d9ef4.dir/testCCompiler.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_d9ef4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d9ef4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d9ef4.dir/testCCompiler.c.o -o cmTC_d9ef4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Detecting C compiler ABI info compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4ffdb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4ffdb.dir/build.make CMakeFiles/cmTC_4ffdb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CMakeCCompilerABI.c Linking C executable cmTC_4ffdb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4ffdb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -v CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o -o cmTC_4ffdb -rdynamic Using built-in specs. COLLECT_GCC=/mnt/gold/openwrt/lede/staging_dir/host/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 8.2.0-r6 p1.7' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libmpx --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7) COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-O2' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/include' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/usr/include' '-L/mnt/gold/openwrt/lede/staging_dir/host/lib' '-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib' '-v' '-o' 'cmTC_4ffdb' '-rdynamic' '-mtune=generic' '-march=x86-64' /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2 -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper -plugin-opt=-fresolution=/mnt/gold/openwrt/lede/tmp/cc9dvFZ7.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_4ffdb /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o COLLECT_GCC_OPTIONS='-O2' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/include' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/usr/include' '-L/mnt/gold/openwrt/lede/staging_dir/host/lib' '-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib' '-v' '-o' 'cmTC_4ffdb' '-rdynamic' '-mtune=generic' '-march=x86-64' gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Parsed C implicit link information from above output: link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp] ignore line: [] ignore line: [Run Build Command:"/usr/bin/gmake" "cmTC_4ffdb/fast"] ignore line: [gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp'] ignore line: [gmake -f CMakeFiles/cmTC_4ffdb.dir/build.make CMakeFiles/cmTC_4ffdb.dir/build] ignore line: [gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp'] ignore line: [Building C object CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o] ignore line: [/mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CMakeCCompilerABI.c] ignore line: [Linking C executable cmTC_4ffdb] ignore line: [/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4ffdb.dir/link.txt --verbose=1] ignore line: [/mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -v CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o -o cmTC_4ffdb -rdynamic ] ignore line: [Using built-in specs.] ignore line: [COLLECT_GCC=/mnt/gold/openwrt/lede/staging_dir/host/bin/gcc] ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper] ignore line: [Target: x86_64-pc-linux-gnu] ignore line: [Configured with: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 8.2.0-r6 p1.7' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libmpx --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp] ignore line: [Thread model: posix] ignore line: [gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7) ] ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/] ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../:/lib/:/usr/lib/] ignore line: [COLLECT_GCC_OPTIONS='-O2' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/include' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/usr/include' '-L/mnt/gold/openwrt/lede/staging_dir/host/lib' '-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib' '-v' '-o' 'cmTC_4ffdb' '-rdynamic' '-mtune=generic' '-march=x86-64'] link line: [ /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2 -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper -plugin-opt=-fresolution=/mnt/gold/openwrt/lede/tmp/cc9dvFZ7.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_4ffdb /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o] arg [/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2] ==> ignore arg [-plugin] ==> ignore arg [/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so] ==> ignore arg [-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper] ==> ignore arg [-plugin-opt=-fresolution=/mnt/gold/openwrt/lede/tmp/cc9dvFZ7.res] ==> ignore arg [-plugin-opt=-pass-through=-lgcc] ==> ignore arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore arg [-plugin-opt=-pass-through=-lc] ==> ignore arg [-plugin-opt=-pass-through=-lgcc] ==> ignore arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore arg [--eh-frame-hdr] ==> ignore arg [-m] ==> ignore arg [elf_x86_64] ==> ignore arg [-export-dynamic] ==> ignore arg [-dynamic-linker] ==> ignore arg [/lib64/ld-linux-x86-64.so.2] ==> ignore arg [-pie] ==> ignore arg [-o] ==> ignore arg [cmTC_4ffdb] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/Scrt1.o] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o] ==> ignore arg [-L/mnt/gold/openwrt/lede/staging_dir/host/lib] ==> dir [/mnt/gold/openwrt/lede/staging_dir/host/lib] arg [-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] ==> dir [/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64] arg [-L/lib/../lib64] ==> dir [/lib/../lib64] arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../..] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../..] arg [CMakeFiles/cmTC_4ffdb.dir/CMakeCCompilerABI.c.o] ==> ignore arg [-lgcc] ==> lib [gcc] arg [--as-needed] ==> ignore arg [-lgcc_s] ==> lib [gcc_s] arg [--no-as-needed] ==> ignore arg [-lc] ==> lib [c] arg [-lgcc] ==> lib [gcc] arg [--as-needed] ==> ignore arg [-lgcc_s] ==> lib [gcc_s] arg [--no-as-needed] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o] ==> ignore remove lib [gcc] remove lib [gcc_s] remove lib [gcc] remove lib [gcc_s] collapse library dir [/mnt/gold/openwrt/lede/staging_dir/host/lib] ==> [/mnt/gold/openwrt/lede/staging_dir/host/lib] collapse library dir [/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] ==> [/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] ==> [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64] ==> [/usr/lib64] collapse library dir [/lib/../lib64] ==> [/lib64] collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib] ==> [/usr/x86_64-pc-linux-gnu/lib] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../..] ==> [/usr/lib] implicit libs: [c] implicit dirs: [/mnt/gold/openwrt/lede/staging_dir/host/lib;/mnt/gold/openwrt/lede/staging_dir/host/usr/lib;/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0;/usr/lib64;/lib64;/usr/x86_64-pc-linux-gnu/lib;/usr/lib] implicit fwks: [] Detecting C [-std=c11] compiler features compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_832fb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_832fb.dir/build.make CMakeFiles/cmTC_832fb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_832fb.dir/feature_tests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=c11 -o CMakeFiles/cmTC_832fb.dir/feature_tests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/feature_tests.c Linking C executable cmTC_832fb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_832fb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_832fb.dir/feature_tests.c.o -o cmTC_832fb -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_restrict Feature record: C_FEATURE:1c_static_assert Feature record: C_FEATURE:1c_variadic_macros Detecting C [-std=c99] compiler features compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3436a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3436a.dir/build.make CMakeFiles/cmTC_3436a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3436a.dir/feature_tests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=c99 -o CMakeFiles/cmTC_3436a.dir/feature_tests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/feature_tests.c Linking C executable cmTC_3436a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3436a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3436a.dir/feature_tests.c.o -o cmTC_3436a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_restrict Feature record: C_FEATURE:0c_static_assert Feature record: C_FEATURE:1c_variadic_macros Detecting C [-std=c90] compiler features compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1a472/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1a472.dir/build.make CMakeFiles/cmTC_1a472.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1a472.dir/feature_tests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=c90 -o CMakeFiles/cmTC_1a472.dir/feature_tests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/feature_tests.c Linking C executable cmTC_1a472 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1a472.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1a472.dir/feature_tests.c.o -o cmTC_1a472 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:0c_restrict Feature record: C_FEATURE:0c_static_assert Feature record: C_FEATURE:0c_variadic_macros Determining if the CXX compiler works passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_cfcbc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_cfcbc.dir/build.make CMakeFiles/cmTC_cfcbc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_cfcbc.dir/testCXXCompiler.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_cfcbc.dir/testCXXCompiler.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_cfcbc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cfcbc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_cfcbc.dir/testCXXCompiler.cxx.o -o cmTC_cfcbc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Detecting CXX compiler ABI info compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f9a90/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f9a90.dir/build.make CMakeFiles/cmTC_f9a90.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CMakeCXXCompilerABI.cpp Linking CXX executable cmTC_f9a90 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f9a90.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -v CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_f9a90 -rdynamic Using built-in specs. COLLECT_GCC=/mnt/gold/openwrt/lede/staging_dir/host/bin/g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 8.2.0-r6 p1.7' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libmpx --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7) COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-O2' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/include' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/usr/include' '-L/mnt/gold/openwrt/lede/staging_dir/host/lib' '-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib' '-v' '-o' 'cmTC_f9a90' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2 -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper -plugin-opt=-fresolution=/mnt/gold/openwrt/lede/tmp/cct5DtAz.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_f9a90 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o COLLECT_GCC_OPTIONS='-O2' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/include' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/usr/include' '-L/mnt/gold/openwrt/lede/staging_dir/host/lib' '-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib' '-v' '-o' 'cmTC_f9a90' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64' gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Parsed CXX implicit link information from above output: link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp] ignore line: [] ignore line: [Run Build Command:"/usr/bin/gmake" "cmTC_f9a90/fast"] ignore line: [gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp'] ignore line: [gmake -f CMakeFiles/cmTC_f9a90.dir/build.make CMakeFiles/cmTC_f9a90.dir/build] ignore line: [gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp'] ignore line: [Building CXX object CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o] ignore line: [/mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CMakeCXXCompilerABI.cpp] ignore line: [Linking CXX executable cmTC_f9a90] ignore line: [/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f9a90.dir/link.txt --verbose=1] ignore line: [/mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -v CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_f9a90 -rdynamic ] ignore line: [Using built-in specs.] ignore line: [COLLECT_GCC=/mnt/gold/openwrt/lede/staging_dir/host/bin/g++] ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper] ignore line: [Target: x86_64-pc-linux-gnu] ignore line: [Configured with: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/8.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 8.2.0-r6 p1.7' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libmpx --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp] ignore line: [Thread model: posix] ignore line: [gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7) ] ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/] ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../:/lib/:/usr/lib/] ignore line: [COLLECT_GCC_OPTIONS='-O2' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/include' '-I' '/mnt/gold/openwrt/lede/staging_dir/host/usr/include' '-L/mnt/gold/openwrt/lede/staging_dir/host/lib' '-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib' '-v' '-o' 'cmTC_f9a90' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] link line: [ /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2 -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper -plugin-opt=-fresolution=/mnt/gold/openwrt/lede/tmp/cct5DtAz.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_f9a90 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o] arg [/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2] ==> ignore arg [-plugin] ==> ignore arg [/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so] ==> ignore arg [-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper] ==> ignore arg [-plugin-opt=-fresolution=/mnt/gold/openwrt/lede/tmp/cct5DtAz.res] ==> ignore arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore arg [-plugin-opt=-pass-through=-lgcc] ==> ignore arg [-plugin-opt=-pass-through=-lc] ==> ignore arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore arg [-plugin-opt=-pass-through=-lgcc] ==> ignore arg [--eh-frame-hdr] ==> ignore arg [-m] ==> ignore arg [elf_x86_64] ==> ignore arg [-export-dynamic] ==> ignore arg [-dynamic-linker] ==> ignore arg [/lib64/ld-linux-x86-64.so.2] ==> ignore arg [-pie] ==> ignore arg [-o] ==> ignore arg [cmTC_f9a90] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/Scrt1.o] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o] ==> ignore arg [-L/mnt/gold/openwrt/lede/staging_dir/host/lib] ==> dir [/mnt/gold/openwrt/lede/staging_dir/host/lib] arg [-L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] ==> dir [/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64] arg [-L/lib/../lib64] ==> dir [/lib/../lib64] arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib] arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../..] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../..] arg [CMakeFiles/cmTC_f9a90.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore arg [-lstdc++] ==> lib [stdc++] arg [-lm] ==> lib [m] arg [-lgcc_s] ==> lib [gcc_s] arg [-lgcc] ==> lib [gcc] arg [-lc] ==> lib [c] arg [-lgcc_s] ==> lib [gcc_s] arg [-lgcc] ==> lib [gcc] arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o] ==> ignore arg [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o] ==> ignore remove lib [gcc_s] remove lib [gcc] remove lib [gcc_s] remove lib [gcc] collapse library dir [/mnt/gold/openwrt/lede/staging_dir/host/lib] ==> [/mnt/gold/openwrt/lede/staging_dir/host/lib] collapse library dir [/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] ==> [/mnt/gold/openwrt/lede/staging_dir/host/usr/lib] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] ==> [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64] ==> [/usr/lib64] collapse library dir [/lib/../lib64] ==> [/lib64] collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib] ==> [/usr/x86_64-pc-linux-gnu/lib] collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../..] ==> [/usr/lib] implicit libs: [stdc++;m;c] implicit dirs: [/mnt/gold/openwrt/lede/staging_dir/host/lib;/mnt/gold/openwrt/lede/staging_dir/host/usr/lib;/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0;/usr/lib64;/lib64;/usr/x86_64-pc-linux-gnu/lib;/usr/lib] implicit fwks: [] Detecting CXX [-std=c++14] compiler features compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a8b8e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a8b8e.dir/build.make CMakeFiles/cmTC_a8b8e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a8b8e.dir/feature_tests.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=c++14 -o CMakeFiles/cmTC_a8b8e.dir/feature_tests.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/feature_tests.cxx Linking CXX executable cmTC_a8b8e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a8b8e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a8b8e.dir/feature_tests.cxx.o -o cmTC_a8b8e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers Feature record: CXX_FEATURE:1cxx_alias_templates Feature record: CXX_FEATURE:1cxx_alignas Feature record: CXX_FEATURE:1cxx_alignof Feature record: CXX_FEATURE:1cxx_attributes Feature record: CXX_FEATURE:1cxx_attribute_deprecated Feature record: CXX_FEATURE:1cxx_auto_type Feature record: CXX_FEATURE:1cxx_binary_literals Feature record: CXX_FEATURE:1cxx_constexpr Feature record: CXX_FEATURE:1cxx_contextual_conversions Feature record: CXX_FEATURE:1cxx_decltype Feature record: CXX_FEATURE:1cxx_decltype_auto Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types Feature record: CXX_FEATURE:1cxx_default_function_template_args Feature record: CXX_FEATURE:1cxx_defaulted_functions Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers Feature record: CXX_FEATURE:1cxx_delegating_constructors Feature record: CXX_FEATURE:1cxx_deleted_functions Feature record: CXX_FEATURE:1cxx_digit_separators Feature record: CXX_FEATURE:1cxx_enum_forward_declarations Feature record: CXX_FEATURE:1cxx_explicit_conversions Feature record: CXX_FEATURE:1cxx_extended_friend_declarations Feature record: CXX_FEATURE:1cxx_extern_templates Feature record: CXX_FEATURE:1cxx_final Feature record: CXX_FEATURE:1cxx_func_identifier Feature record: CXX_FEATURE:1cxx_generalized_initializers Feature record: CXX_FEATURE:1cxx_generic_lambdas Feature record: CXX_FEATURE:1cxx_inheriting_constructors Feature record: CXX_FEATURE:1cxx_inline_namespaces Feature record: CXX_FEATURE:1cxx_lambdas Feature record: CXX_FEATURE:1cxx_lambda_init_captures Feature record: CXX_FEATURE:1cxx_local_type_template_args Feature record: CXX_FEATURE:1cxx_long_long_type Feature record: CXX_FEATURE:1cxx_noexcept Feature record: CXX_FEATURE:1cxx_nonstatic_member_init Feature record: CXX_FEATURE:1cxx_nullptr Feature record: CXX_FEATURE:1cxx_override Feature record: CXX_FEATURE:1cxx_range_for Feature record: CXX_FEATURE:1cxx_raw_string_literals Feature record: CXX_FEATURE:1cxx_reference_qualified_functions Feature record: CXX_FEATURE:1cxx_relaxed_constexpr Feature record: CXX_FEATURE:1cxx_return_type_deduction Feature record: CXX_FEATURE:1cxx_right_angle_brackets Feature record: CXX_FEATURE:1cxx_rvalue_references Feature record: CXX_FEATURE:1cxx_sizeof_member Feature record: CXX_FEATURE:1cxx_static_assert Feature record: CXX_FEATURE:1cxx_strong_enums Feature record: CXX_FEATURE:1cxx_template_template_parameters Feature record: CXX_FEATURE:1cxx_thread_local Feature record: CXX_FEATURE:1cxx_trailing_return_types Feature record: CXX_FEATURE:1cxx_unicode_literals Feature record: CXX_FEATURE:1cxx_uniform_initialization Feature record: CXX_FEATURE:1cxx_unrestricted_unions Feature record: CXX_FEATURE:1cxx_user_literals Feature record: CXX_FEATURE:1cxx_variable_templates Feature record: CXX_FEATURE:1cxx_variadic_macros Feature record: CXX_FEATURE:1cxx_variadic_templates Detecting CXX [-std=c++11] compiler features compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3566a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3566a.dir/build.make CMakeFiles/cmTC_3566a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_3566a.dir/feature_tests.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=c++11 -o CMakeFiles/cmTC_3566a.dir/feature_tests.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/feature_tests.cxx Linking CXX executable cmTC_3566a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3566a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3566a.dir/feature_tests.cxx.o -o cmTC_3566a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers Feature record: CXX_FEATURE:1cxx_alias_templates Feature record: CXX_FEATURE:1cxx_alignas Feature record: CXX_FEATURE:1cxx_alignof Feature record: CXX_FEATURE:1cxx_attributes Feature record: CXX_FEATURE:0cxx_attribute_deprecated Feature record: CXX_FEATURE:1cxx_auto_type Feature record: CXX_FEATURE:0cxx_binary_literals Feature record: CXX_FEATURE:1cxx_constexpr Feature record: CXX_FEATURE:0cxx_contextual_conversions Feature record: CXX_FEATURE:1cxx_decltype Feature record: CXX_FEATURE:0cxx_decltype_auto Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types Feature record: CXX_FEATURE:1cxx_default_function_template_args Feature record: CXX_FEATURE:1cxx_defaulted_functions Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers Feature record: CXX_FEATURE:1cxx_delegating_constructors Feature record: CXX_FEATURE:1cxx_deleted_functions Feature record: CXX_FEATURE:0cxx_digit_separators Feature record: CXX_FEATURE:1cxx_enum_forward_declarations Feature record: CXX_FEATURE:1cxx_explicit_conversions Feature record: CXX_FEATURE:1cxx_extended_friend_declarations Feature record: CXX_FEATURE:1cxx_extern_templates Feature record: CXX_FEATURE:1cxx_final Feature record: CXX_FEATURE:1cxx_func_identifier Feature record: CXX_FEATURE:1cxx_generalized_initializers Feature record: CXX_FEATURE:0cxx_generic_lambdas Feature record: CXX_FEATURE:1cxx_inheriting_constructors Feature record: CXX_FEATURE:1cxx_inline_namespaces Feature record: CXX_FEATURE:1cxx_lambdas Feature record: CXX_FEATURE:0cxx_lambda_init_captures Feature record: CXX_FEATURE:1cxx_local_type_template_args Feature record: CXX_FEATURE:1cxx_long_long_type Feature record: CXX_FEATURE:1cxx_noexcept Feature record: CXX_FEATURE:1cxx_nonstatic_member_init Feature record: CXX_FEATURE:1cxx_nullptr Feature record: CXX_FEATURE:1cxx_override Feature record: CXX_FEATURE:1cxx_range_for Feature record: CXX_FEATURE:1cxx_raw_string_literals Feature record: CXX_FEATURE:1cxx_reference_qualified_functions Feature record: CXX_FEATURE:0cxx_relaxed_constexpr Feature record: CXX_FEATURE:0cxx_return_type_deduction Feature record: CXX_FEATURE:1cxx_right_angle_brackets Feature record: CXX_FEATURE:1cxx_rvalue_references Feature record: CXX_FEATURE:1cxx_sizeof_member Feature record: CXX_FEATURE:1cxx_static_assert Feature record: CXX_FEATURE:1cxx_strong_enums Feature record: CXX_FEATURE:1cxx_template_template_parameters Feature record: CXX_FEATURE:1cxx_thread_local Feature record: CXX_FEATURE:1cxx_trailing_return_types Feature record: CXX_FEATURE:1cxx_unicode_literals Feature record: CXX_FEATURE:1cxx_uniform_initialization Feature record: CXX_FEATURE:1cxx_unrestricted_unions Feature record: CXX_FEATURE:1cxx_user_literals Feature record: CXX_FEATURE:0cxx_variable_templates Feature record: CXX_FEATURE:1cxx_variadic_macros Feature record: CXX_FEATURE:1cxx_variadic_templates Detecting CXX [-std=c++98] compiler features compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_22659/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_22659.dir/build.make CMakeFiles/cmTC_22659.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_22659.dir/feature_tests.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=c++98 -o CMakeFiles/cmTC_22659.dir/feature_tests.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/feature_tests.cxx Linking CXX executable cmTC_22659 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_22659.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_22659.dir/feature_tests.cxx.o -o cmTC_22659 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers Feature record: CXX_FEATURE:0cxx_alias_templates Feature record: CXX_FEATURE:0cxx_alignas Feature record: CXX_FEATURE:0cxx_alignof Feature record: CXX_FEATURE:0cxx_attributes Feature record: CXX_FEATURE:0cxx_attribute_deprecated Feature record: CXX_FEATURE:0cxx_auto_type Feature record: CXX_FEATURE:0cxx_binary_literals Feature record: CXX_FEATURE:0cxx_constexpr Feature record: CXX_FEATURE:0cxx_contextual_conversions Feature record: CXX_FEATURE:0cxx_decltype Feature record: CXX_FEATURE:0cxx_decltype_auto Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types Feature record: CXX_FEATURE:0cxx_default_function_template_args Feature record: CXX_FEATURE:0cxx_defaulted_functions Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers Feature record: CXX_FEATURE:0cxx_delegating_constructors Feature record: CXX_FEATURE:0cxx_deleted_functions Feature record: CXX_FEATURE:0cxx_digit_separators Feature record: CXX_FEATURE:0cxx_enum_forward_declarations Feature record: CXX_FEATURE:0cxx_explicit_conversions Feature record: CXX_FEATURE:0cxx_extended_friend_declarations Feature record: CXX_FEATURE:0cxx_extern_templates Feature record: CXX_FEATURE:0cxx_final Feature record: CXX_FEATURE:0cxx_func_identifier Feature record: CXX_FEATURE:0cxx_generalized_initializers Feature record: CXX_FEATURE:0cxx_generic_lambdas Feature record: CXX_FEATURE:0cxx_inheriting_constructors Feature record: CXX_FEATURE:0cxx_inline_namespaces Feature record: CXX_FEATURE:0cxx_lambdas Feature record: CXX_FEATURE:0cxx_lambda_init_captures Feature record: CXX_FEATURE:0cxx_local_type_template_args Feature record: CXX_FEATURE:0cxx_long_long_type Feature record: CXX_FEATURE:0cxx_noexcept Feature record: CXX_FEATURE:0cxx_nonstatic_member_init Feature record: CXX_FEATURE:0cxx_nullptr Feature record: CXX_FEATURE:0cxx_override Feature record: CXX_FEATURE:0cxx_range_for Feature record: CXX_FEATURE:0cxx_raw_string_literals Feature record: CXX_FEATURE:0cxx_reference_qualified_functions Feature record: CXX_FEATURE:0cxx_relaxed_constexpr Feature record: CXX_FEATURE:0cxx_return_type_deduction Feature record: CXX_FEATURE:0cxx_right_angle_brackets Feature record: CXX_FEATURE:0cxx_rvalue_references Feature record: CXX_FEATURE:0cxx_sizeof_member Feature record: CXX_FEATURE:0cxx_static_assert Feature record: CXX_FEATURE:0cxx_strong_enums Feature record: CXX_FEATURE:1cxx_template_template_parameters Feature record: CXX_FEATURE:0cxx_thread_local Feature record: CXX_FEATURE:0cxx_trailing_return_types Feature record: CXX_FEATURE:0cxx_unicode_literals Feature record: CXX_FEATURE:0cxx_uniform_initialization Feature record: CXX_FEATURE:0cxx_unrestricted_unions Feature record: CXX_FEATURE:0cxx_user_literals Feature record: CXX_FEATURE:0cxx_variable_templates Feature record: CXX_FEATURE:0cxx_variadic_macros Feature record: CXX_FEATURE:0cxx_variadic_templates Determining if compiler supports C11 _Thread_local passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d2d34/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d2d34.dir/build.make CMakeFiles/cmTC_d2d34.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d2d34.dir/cm_c11_thread_local.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu11 -o CMakeFiles/cmTC_d2d34.dir/cm_c11_thread_local.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_c11_thread_local.c Linking C executable cmTC_d2d34 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d2d34.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d2d34.dir/cm_c11_thread_local.c.o -o cmTC_d2d34 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if compiler supports C++14 cstdio passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7be9e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7be9e.dir/build.make CMakeFiles/cmTC_7be9e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_7be9e.dir/cm_cxx14_cstdio.cpp.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu++14 -o CMakeFiles/cmTC_7be9e.dir/cm_cxx14_cstdio.cpp.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_cxx14_cstdio.cpp Linking CXX executable cmTC_7be9e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7be9e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7be9e.dir/cm_cxx14_cstdio.cpp.o -o cmTC_7be9e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if compiler supports C++ make_unique passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1a517/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1a517.dir/build.make CMakeFiles/cmTC_1a517.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_1a517.dir/cm_cxx_make_unique.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu++14 -o CMakeFiles/cmTC_1a517.dir/cm_cxx_make_unique.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_cxx_make_unique.cxx Linking CXX executable cmTC_1a517 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1a517.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1a517.dir/cm_cxx_make_unique.cxx.o -o cmTC_1a517 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if compiler supports C++ nullptr passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7c3dc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7c3dc.dir/build.make CMakeFiles/cmTC_7c3dc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_7c3dc.dir/cm_cxx_nullptr.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu++14 -o CMakeFiles/cmTC_7c3dc.dir/cm_cxx_nullptr.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_cxx_nullptr.cxx Linking CXX executable cmTC_7c3dc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7c3dc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7c3dc.dir/cm_cxx_nullptr.cxx.o -o cmTC_7c3dc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if compiler supports C++ override passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_662fd/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_662fd.dir/build.make CMakeFiles/cmTC_662fd.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_662fd.dir/cm_cxx_override.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu++14 -o CMakeFiles/cmTC_662fd.dir/cm_cxx_override.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_cxx_override.cxx Linking CXX executable cmTC_662fd /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_662fd.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_662fd.dir/cm_cxx_override.cxx.o -o cmTC_662fd -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if compiler supports C++ unordered_map passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8cd96/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8cd96.dir/build.make CMakeFiles/cmTC_8cd96.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_8cd96.dir/cm_cxx_unordered_map.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu++14 -o CMakeFiles/cmTC_8cd96.dir/cm_cxx_unordered_map.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_cxx_unordered_map.cxx Linking CXX executable cmTC_8cd96 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8cd96.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8cd96.dir/cm_cxx_unordered_map.cxx.o -o cmTC_8cd96 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if compiler supports C++ unordered_set passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4e1f0/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4e1f0.dir/build.make CMakeFiles/cmTC_4e1f0.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_4e1f0.dir/cm_cxx_unordered_set.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -std=gnu++14 -o CMakeFiles/cmTC_4e1f0.dir/cm_cxx_unordered_set.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/Checks/cm_cxx_unordered_set.cxx Linking CXX executable cmTC_4e1f0 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4e1f0.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4e1f0.dir/cm_cxx_unordered_set.cxx.o -o cmTC_4e1f0 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the unsetenv exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b016f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b016f.dir/build.make CMakeFiles/cmTC_b016f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b016f.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_b016f.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b016f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b016f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b016f.dir/CheckSymbolExists.c.o -o cmTC_b016f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef unsetenv return ((int*)(&unsetenv))[argc]; #else (void)argc; return 0; #endif } Checking whether header cstdio is available compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f7f78/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f7f78.dir/build.make CMakeFiles/cmTC_f7f78.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_f7f78.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_CSTDIO -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f7f78.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_f7f78 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f7f78.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f7f78.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_f7f78 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking for Large File Support compiled and ran with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0d4cd/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0d4cd.dir/build.make CMakeFiles/cmTC_0d4cd.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_0d4cd.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DKWSYS_CXX_HAS_CSTDIO=1 -DTEST_KWSYS_LFS_WORKS -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_0d4cd.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_0d4cd /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0d4cd.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0d4cd.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_0d4cd -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether C++ compiler has 'long long' compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c742d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c742d.dir/build.make CMakeFiles/cmTC_c742d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c742d.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_LONG_LONG -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_c742d.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_c742d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c742d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c742d.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_c742d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether wstring is available compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_dc8e9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_dc8e9.dir/build.make CMakeFiles/cmTC_dc8e9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_dc8e9.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_STL_HAS_WSTRING -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_dc8e9.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_dc8e9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_dc8e9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_dc8e9.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_dc8e9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking if istream supports long long compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a65fe/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a65fe.dir/build.make CMakeFiles/cmTC_a65fe.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a65fe.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_IOS_HAS_ISTREAM_LONG_LONG -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_a65fe.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_a65fe /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a65fe.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a65fe.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_a65fe -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking if ostream supports long long compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2189e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2189e.dir/build.make CMakeFiles/cmTC_2189e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_2189e.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_IOS_HAS_OSTREAM_LONG_LONG -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_2189e.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_2189e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2189e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2189e.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_2189e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether C compiler has ptrdiff_t in stddef.h compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_97c39/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_97c39.dir/build.make CMakeFiles/cmTC_97c39.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_97c39.dir/kwsysPlatformTestsC.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -DTEST_KWSYS_C_HAS_PTRDIFF_T -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_97c39.dir/kwsysPlatformTestsC.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsC.c Linking C executable cmTC_97c39 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_97c39.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_97c39.dir/kwsysPlatformTestsC.c.o -o cmTC_97c39 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether C compiler has ssize_t in unistd.h compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_bad4a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_bad4a.dir/build.make CMakeFiles/cmTC_bad4a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bad4a.dir/kwsysPlatformTestsC.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -DTEST_KWSYS_C_HAS_SSIZE_T -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_bad4a.dir/kwsysPlatformTestsC.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsC.c Linking C executable cmTC_bad4a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bad4a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_bad4a.dir/kwsysPlatformTestsC.c.o -o cmTC_bad4a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has setenv compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_acfe7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_acfe7.dir/build.make CMakeFiles/cmTC_acfe7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_acfe7.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_SETENV -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_acfe7.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_acfe7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_acfe7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_acfe7.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_acfe7 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has unsetenv compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a1718/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a1718.dir/build.make CMakeFiles/cmTC_a1718.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a1718.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_UNSETENV -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_a1718.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_a1718 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a1718.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a1718.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_a1718 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has utimes compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8960a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8960a.dir/build.make CMakeFiles/cmTC_8960a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_8960a.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_UTIMES -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_8960a.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_8960a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8960a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8960a.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_8960a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has utimensat compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b8caf/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b8caf.dir/build.make CMakeFiles/cmTC_b8caf.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_b8caf.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_UTIMENSAT -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_b8caf.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_b8caf /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b8caf.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b8caf.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_b8caf -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler struct stat has st_mtim member compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f9631/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f9631.dir/build.make CMakeFiles/cmTC_f9631.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_f9631.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_STAT_HAS_ST_MTIM -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f9631.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_f9631 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f9631.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f9631.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_f9631 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ifaddrs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_26afe/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_26afe.dir/build.make CMakeFiles/cmTC_26afe.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_26afe.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_26afe.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_26afe /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_26afe.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_26afe.dir/CheckIncludeFiles.c.o -o cmTC_26afe -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Checking whether CXX compiler has rlimit64 compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7cc9b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7cc9b.dir/build.make CMakeFiles/cmTC_7cc9b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_7cc9b.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DKWSYS_HAS_LFS=1 -DTEST_KWSYS_CXX_HAS_RLIMIT64 -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_7cc9b.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_7cc9b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7cc9b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7cc9b.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_7cc9b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has atol compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7598a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7598a.dir/build.make CMakeFiles/cmTC_7598a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_7598a.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_ATOL -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_7598a.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_7598a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7598a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7598a.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_7598a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has atoll compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2cb65/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2cb65.dir/build.make CMakeFiles/cmTC_2cb65.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_2cb65.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_ATOLL -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_2cb65.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_2cb65 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2cb65.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2cb65.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_2cb65 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Determining if the include file execinfo.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_dc7c1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_dc7c1.dir/build.make CMakeFiles/cmTC_dc7c1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_dc7c1.dir/CheckIncludeFile.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_dc7c1.dir/CheckIncludeFile.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx Linking CXX executable cmTC_dc7c1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_dc7c1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_dc7c1.dir/CheckIncludeFile.cxx.o -o cmTC_dc7c1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Checking whether backtrace works with this C++ compiler compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b4424/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b4424.dir/build.make CMakeFiles/cmTC_b4424.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_b4424.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_BACKTRACE -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_b4424.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_b4424 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b4424.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b4424.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_b4424 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Determining if the include file dlfcn.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f7258/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f7258.dir/build.make CMakeFiles/cmTC_f7258.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_f7258.dir/CheckIncludeFile.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f7258.dir/CheckIncludeFile.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx Linking CXX executable cmTC_f7258 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f7258.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f7258.dir/CheckIncludeFile.cxx.o -o cmTC_f7258 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Checking whether dladdr works with this C++ compiler compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c93dd/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c93dd.dir/build.make CMakeFiles/cmTC_c93dd.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c93dd.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_DLADDR -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_c93dd.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_c93dd /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c93dd.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c93dd.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_c93dd -rdynamic -ldl gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Determining if the include file cxxabi.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a8ac8/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a8ac8.dir/build.make CMakeFiles/cmTC_a8ac8.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a8ac8.dir/CheckIncludeFile.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_a8ac8.dir/CheckIncludeFile.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx Linking CXX executable cmTC_a8ac8 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a8ac8.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a8ac8.dir/CheckIncludeFile.cxx.o -o cmTC_a8ac8 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Checking whether cxxabi works with this C++ compiler compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_84b6c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_84b6c.dir/build.make CMakeFiles/cmTC_84b6c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_84b6c.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_CXXABI -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_84b6c.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_84b6c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_84b6c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_84b6c.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_84b6c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether CXX compiler has getloadavg compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e1217/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e1217.dir/build.make CMakeFiles/cmTC_e1217.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_e1217.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_GETLOADAVG -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_e1217.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_e1217 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e1217.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e1217.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_e1217 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Checking whether is available compiled with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_695b6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_695b6.dir/build.make CMakeFiles/cmTC_695b6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_695b6.dir/kwsysPlatformTestsCXX.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -DTEST_KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_695b6.dir/kwsysPlatformTestsCXX.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/kwsysPlatformTestsCXX.cxx Linking CXX executable cmTC_695b6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_695b6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_695b6.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_695b6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Source/kwsys/CMakeFiles/CMakeTmp' Determining if the function gethostbyname exists in the c passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0f8c7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0f8c7.dir/build.make CMakeFiles/cmTC_0f8c7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0f8c7.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=gethostbyname -o CMakeFiles/cmTC_0f8c7.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_0f8c7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0f8c7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=gethostbyname -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0f8c7.dir/CheckFunctionExists.c.o -o cmTC_0f8c7 -rdynamic -lc gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function gethostname exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8f186/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8f186.dir/build.make CMakeFiles/cmTC_8f186.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8f186.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=gethostname -o CMakeFiles/cmTC_8f186.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_8f186 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8f186.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=gethostname -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8f186.dir/CheckFunctionExists.c.o -o cmTC_8f186 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function clock_gettime exists in the rt passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1e6b7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1e6b7.dir/build.make CMakeFiles/cmTC_1e6b7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1e6b7.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=clock_gettime -o CMakeFiles/cmTC_1e6b7.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_1e6b7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1e6b7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=clock_gettime -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1e6b7.dir/CheckFunctionExists.c.o -o cmTC_1e6b7 -rdynamic -lrt gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/crypto.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_eec97/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_eec97.dir/build.make CMakeFiles/cmTC_eec97.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_eec97.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_eec97.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_eec97 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eec97.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_eec97.dir/CheckIncludeFile.c.o -o cmTC_eec97 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/engine.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_99d9d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_99d9d.dir/build.make CMakeFiles/cmTC_99d9d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_99d9d.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_99d9d.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_99d9d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_99d9d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_99d9d.dir/CheckIncludeFile.c.o -o cmTC_99d9d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/err.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6a9d2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6a9d2.dir/build.make CMakeFiles/cmTC_6a9d2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6a9d2.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6a9d2.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_6a9d2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6a9d2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6a9d2.dir/CheckIncludeFile.c.o -o cmTC_6a9d2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/pem.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_cd6ae/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_cd6ae.dir/build.make CMakeFiles/cmTC_cd6ae.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cd6ae.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_cd6ae.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_cd6ae /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cd6ae.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_cd6ae.dir/CheckIncludeFile.c.o -o cmTC_cd6ae -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/pkcs12.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_98248/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_98248.dir/build.make CMakeFiles/cmTC_98248.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_98248.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_98248.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_98248 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_98248.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_98248.dir/CheckIncludeFile.c.o -o cmTC_98248 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/rsa.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_df57f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_df57f.dir/build.make CMakeFiles/cmTC_df57f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_df57f.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_df57f.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_df57f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_df57f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_df57f.dir/CheckIncludeFile.c.o -o cmTC_df57f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/ssl.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5ed41/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_5ed41.dir/build.make CMakeFiles/cmTC_5ed41.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5ed41.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_5ed41.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_5ed41 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5ed41.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_5ed41.dir/CheckIncludeFile.c.o -o cmTC_5ed41 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/x509.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3c5c9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3c5c9.dir/build.make CMakeFiles/cmTC_3c5c9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3c5c9.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_3c5c9.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_3c5c9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3c5c9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3c5c9.dir/CheckIncludeFile.c.o -o cmTC_3c5c9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file openssl/rand.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7ef7a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7ef7a.dir/build.make CMakeFiles/cmTC_7ef7a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7ef7a.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_7ef7a.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_7ef7a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7ef7a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7ef7a.dir/CheckIncludeFile.c.o -o cmTC_7ef7a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function idna_to_ascii_lz exists in the idn;dl;/mnt/gold/openwrt/lede/staging_dir/host/lib64/libssl.a;/mnt/gold/openwrt/lede/staging_dir/host/lib64/libcrypto.a;rt passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_96cee/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_96cee.dir/build.make CMakeFiles/cmTC_96cee.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_96cee.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=idna_to_ascii_lz -o CMakeFiles/cmTC_96cee.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_96cee /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_96cee.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=idna_to_ascii_lz -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_96cee.dir/CheckFunctionExists.c.o -o cmTC_96cee -rdynamic -lidn -ldl /mnt/gold/openwrt/lede/staging_dir/host/lib64/libssl.a /mnt/gold/openwrt/lede/staging_dir/host/lib64/libcrypto.a -lrt gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function dlopen exists in the idn;dl;/mnt/gold/openwrt/lede/staging_dir/host/lib64/libssl.a;/mnt/gold/openwrt/lede/staging_dir/host/lib64/libcrypto.a;rt passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_08cb6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_08cb6.dir/build.make CMakeFiles/cmTC_08cb6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_08cb6.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=dlopen -o CMakeFiles/cmTC_08cb6.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_08cb6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_08cb6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=dlopen -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_08cb6.dir/CheckFunctionExists.c.o -o cmTC_08cb6 -rdynamic -lidn -ldl /mnt/gold/openwrt/lede/staging_dir/host/lib64/libssl.a /mnt/gold/openwrt/lede/staging_dir/host/lib64/libcrypto.a -lrt gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files ;stdio.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_387f9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_387f9.dir/build.make CMakeFiles/cmTC_387f9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_387f9.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_387f9.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_387f9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_387f9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_387f9.dir/CheckIncludeFiles.c.o -o cmTC_387f9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_97388/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_97388.dir/build.make CMakeFiles/cmTC_97388.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_97388.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_97388.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_97388 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_97388.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_97388.dir/CheckIncludeFiles.c.o -o cmTC_97388 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6ef90/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6ef90.dir/build.make CMakeFiles/cmTC_6ef90.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6ef90.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6ef90.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_6ef90 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6ef90.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6ef90.dir/CheckIncludeFiles.c.o -o cmTC_6ef90 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_179de/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_179de.dir/build.make CMakeFiles/cmTC_179de.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_179de.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_179de.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_179de /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_179de.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_179de.dir/CheckIncludeFiles.c.o -o cmTC_179de -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a94fc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a94fc.dir/build.make CMakeFiles/cmTC_a94fc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a94fc.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_a94fc.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_a94fc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a94fc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a94fc.dir/CheckIncludeFiles.c.o -o cmTC_a94fc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6d909/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6d909.dir/build.make CMakeFiles/cmTC_6d909.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6d909.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6d909.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_6d909 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6d909.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6d909.dir/CheckIncludeFiles.c.o -o cmTC_6d909 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b8b84/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b8b84.dir/build.make CMakeFiles/cmTC_b8b84.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b8b84.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b8b84.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_b8b84 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b8b84.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b8b84.dir/CheckIncludeFiles.c.o -o cmTC_b8b84 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3ed3b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3ed3b.dir/build.make CMakeFiles/cmTC_3ed3b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3ed3b.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_3ed3b.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_3ed3b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3ed3b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3ed3b.dir/CheckIncludeFiles.c.o -o cmTC_3ed3b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_21001/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_21001.dir/build.make CMakeFiles/cmTC_21001.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_21001.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_21001.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_21001 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_21001.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_21001.dir/CheckIncludeFiles.c.o -o cmTC_21001 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_402a4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_402a4.dir/build.make CMakeFiles/cmTC_402a4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_402a4.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_402a4.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_402a4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_402a4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_402a4.dir/CheckIncludeFiles.c.o -o cmTC_402a4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_63570/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_63570.dir/build.make CMakeFiles/cmTC_63570.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_63570.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_63570.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_63570 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_63570.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_63570.dir/CheckIncludeFiles.c.o -o cmTC_63570 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4a953/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4a953.dir/build.make CMakeFiles/cmTC_4a953.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4a953.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_4a953.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_4a953 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4a953.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4a953.dir/CheckIncludeFiles.c.o -o cmTC_4a953 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2a272/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2a272.dir/build.make CMakeFiles/cmTC_2a272.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2a272.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_2a272.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_2a272 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2a272.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2a272.dir/CheckIncludeFiles.c.o -o cmTC_2a272 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_cc1e1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_cc1e1.dir/build.make CMakeFiles/cmTC_cc1e1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cc1e1.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_cc1e1.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_cc1e1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cc1e1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_cc1e1.dir/CheckIncludeFiles.c.o -o cmTC_cc1e1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_32c1a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_32c1a.dir/build.make CMakeFiles/cmTC_32c1a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_32c1a.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_32c1a.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_32c1a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_32c1a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_32c1a.dir/CheckIncludeFiles.c.o -o cmTC_32c1a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4a5e6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4a5e6.dir/build.make CMakeFiles/cmTC_4a5e6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4a5e6.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_4a5e6.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_4a5e6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4a5e6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4a5e6.dir/CheckIncludeFiles.c.o -o cmTC_4a5e6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8e592/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8e592.dir/build.make CMakeFiles/cmTC_8e592.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8e592.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_8e592.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_8e592 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8e592.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8e592.dir/CheckIncludeFiles.c.o -o cmTC_8e592 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ba4c9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ba4c9.dir/build.make CMakeFiles/cmTC_ba4c9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ba4c9.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ba4c9.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_ba4c9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ba4c9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ba4c9.dir/CheckIncludeFiles.c.o -o cmTC_ba4c9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_37e0b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_37e0b.dir/build.make CMakeFiles/cmTC_37e0b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_37e0b.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_37e0b.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_37e0b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_37e0b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_37e0b.dir/CheckIncludeFiles.c.o -o cmTC_37e0b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7e683/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7e683.dir/build.make CMakeFiles/cmTC_7e683.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7e683.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_7e683.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_7e683 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7e683.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7e683.dir/CheckIncludeFiles.c.o -o cmTC_7e683 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7d754/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7d754.dir/build.make CMakeFiles/cmTC_7d754.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7d754.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_7d754.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_7d754 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7d754.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7d754.dir/CheckIncludeFiles.c.o -o cmTC_7d754 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7e8ee/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7e8ee.dir/build.make CMakeFiles/cmTC_7e8ee.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7e8ee.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_7e8ee.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_7e8ee /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7e8ee.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7e8ee.dir/CheckIncludeFiles.c.o -o cmTC_7e8ee -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a9937/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a9937.dir/build.make CMakeFiles/cmTC_a9937.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a9937.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_a9937.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_a9937 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a9937.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a9937.dir/CheckIncludeFiles.c.o -o cmTC_a9937 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9e6f3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9e6f3.dir/build.make CMakeFiles/cmTC_9e6f3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9e6f3.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9e6f3.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_9e6f3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9e6f3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9e6f3.dir/CheckIncludeFiles.c.o -o cmTC_9e6f3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a1d9d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a1d9d.dir/build.make CMakeFiles/cmTC_a1d9d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a1d9d.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_a1d9d.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_a1d9d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a1d9d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a1d9d.dir/CheckIncludeFiles.c.o -o cmTC_a1d9d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2202c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2202c.dir/build.make CMakeFiles/cmTC_2202c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2202c.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_2202c.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_2202c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2202c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2202c.dir/CheckIncludeFiles.c.o -o cmTC_2202c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ebb98/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ebb98.dir/build.make CMakeFiles/cmTC_ebb98.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ebb98.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ebb98.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_ebb98 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ebb98.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ebb98.dir/CheckIncludeFiles.c.o -o cmTC_ebb98 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_eaeea/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_eaeea.dir/build.make CMakeFiles/cmTC_eaeea.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_eaeea.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_eaeea.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_eaeea /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eaeea.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_eaeea.dir/CheckIncludeFiles.c.o -o cmTC_eaeea -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_bfde3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_bfde3.dir/build.make CMakeFiles/cmTC_bfde3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bfde3.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_bfde3.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_bfde3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bfde3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_bfde3.dir/CheckIncludeFiles.c.o -o cmTC_bfde3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_abb17/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_abb17.dir/build.make CMakeFiles/cmTC_abb17.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_abb17.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_abb17.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_abb17 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_abb17.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_abb17.dir/CheckIncludeFiles.c.o -o cmTC_abb17 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_90af0/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_90af0.dir/build.make CMakeFiles/cmTC_90af0.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_90af0.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_90af0.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_90af0 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_90af0.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_90af0.dir/CheckIncludeFiles.c.o -o cmTC_90af0 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7d819/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7d819.dir/build.make CMakeFiles/cmTC_7d819.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7d819.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_7d819.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_7d819 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7d819.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7d819.dir/CheckIncludeFiles.c.o -o cmTC_7d819 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_56323/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_56323.dir/build.make CMakeFiles/cmTC_56323.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_56323.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_56323.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_56323 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_56323.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_56323.dir/CheckIncludeFiles.c.o -o cmTC_56323 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f8f1e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f8f1e.dir/build.make CMakeFiles/cmTC_f8f1e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f8f1e.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_f8f1e.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_f8f1e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f8f1e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f8f1e.dir/CheckIncludeFiles.c.o -o cmTC_f8f1e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2daa4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2daa4.dir/build.make CMakeFiles/cmTC_2daa4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2daa4.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_2daa4.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_2daa4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2daa4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2daa4.dir/CheckIncludeFiles.c.o -o cmTC_2daa4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c2c19/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c2c19.dir/build.make CMakeFiles/cmTC_c2c19.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c2c19.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c2c19.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_c2c19 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c2c19.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c2c19.dir/CheckIncludeFiles.c.o -o cmTC_c2c19 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_dbb7b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_dbb7b.dir/build.make CMakeFiles/cmTC_dbb7b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_dbb7b.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_dbb7b.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_dbb7b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_dbb7b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_dbb7b.dir/CheckIncludeFiles.c.o -o cmTC_dbb7b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ca476/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ca476.dir/build.make CMakeFiles/cmTC_ca476.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ca476.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ca476.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_ca476 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ca476.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ca476.dir/CheckIncludeFiles.c.o -o cmTC_ca476 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8de00/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8de00.dir/build.make CMakeFiles/cmTC_8de00.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8de00.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_8de00.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_8de00 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8de00.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8de00.dir/CheckIncludeFiles.c.o -o cmTC_8de00 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c04d3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c04d3.dir/build.make CMakeFiles/cmTC_c04d3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c04d3.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c04d3.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_c04d3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c04d3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c04d3.dir/CheckIncludeFiles.c.o -o cmTC_c04d3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_15595/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_15595.dir/build.make CMakeFiles/cmTC_15595.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_15595.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_15595.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_15595 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_15595.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_15595.dir/CheckIncludeFiles.c.o -o cmTC_15595 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d2f10/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d2f10.dir/build.make CMakeFiles/cmTC_d2f10.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d2f10.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_d2f10.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_d2f10 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d2f10.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d2f10.dir/CheckIncludeFiles.c.o -o cmTC_d2f10 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fb048/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fb048.dir/build.make CMakeFiles/cmTC_fb048.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fb048.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_fb048.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_fb048 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fb048.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fb048.dir/CheckIncludeFiles.c.o -o cmTC_fb048 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_bd6cc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_bd6cc.dir/build.make CMakeFiles/cmTC_bd6cc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bd6cc.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_bd6cc.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_bd6cc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bd6cc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_bd6cc.dir/CheckIncludeFiles.c.o -o cmTC_bd6cc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6a112/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6a112.dir/build.make CMakeFiles/cmTC_6a112.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6a112.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6a112.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_6a112 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6a112.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6a112.dir/CheckIncludeFiles.c.o -o cmTC_6a112 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_33dbc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_33dbc.dir/build.make CMakeFiles/cmTC_33dbc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_33dbc.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_33dbc.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_33dbc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_33dbc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_33dbc.dir/CheckIncludeFiles.c.o -o cmTC_33dbc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f19df/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f19df.dir/build.make CMakeFiles/cmTC_f19df.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f19df.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_f19df.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_f19df /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f19df.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f19df.dir/CheckIncludeFiles.c.o -o cmTC_f19df -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h;dlfcn.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9cd84/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9cd84.dir/build.make CMakeFiles/cmTC_9cd84.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9cd84.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9cd84.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_9cd84 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9cd84.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9cd84.dir/CheckIncludeFiles.c.o -o cmTC_9cd84 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b4a2a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b4a2a.dir/build.make CMakeFiles/cmTC_b4a2a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b4a2a.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b4a2a.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_b4a2a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b4a2a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b4a2a.dir/CheckIncludeFiles.c.o -o cmTC_b4a2a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9af3d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9af3d.dir/build.make CMakeFiles/cmTC_9af3d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9af3d.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9af3d.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_9af3d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9af3d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9af3d.dir/CheckIncludeFiles.c.o -o cmTC_9af3d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h;netinet/if_ether.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1d3ff/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1d3ff.dir/build.make CMakeFiles/cmTC_1d3ff.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1d3ff.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_1d3ff.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_1d3ff /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1d3ff.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1d3ff.dir/CheckIncludeFiles.c.o -o cmTC_1d3ff -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h;netinet/if_ether.h;stdint.h;sys/utsname.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d73a6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d73a6.dir/build.make CMakeFiles/cmTC_d73a6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d73a6.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_d73a6.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_d73a6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d73a6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d73a6.dir/CheckIncludeFiles.c.o -o cmTC_d73a6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;idn-free.h;ifaddrs.h;libgen.h;limits.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;tld.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h;netinet/if_ether.h;stdint.h;sys/utsname.h;idna.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c38f3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c38f3.dir/build.make CMakeFiles/cmTC_c38f3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c38f3.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c38f3.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_c38f3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c38f3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c38f3.dir/CheckIncludeFiles.c.o -o cmTC_c38f3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of size_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5878f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_5878f.dir/build.make CMakeFiles/cmTC_5878f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5878f.dir/SIZEOF_SIZE_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_5878f.dir/SIZEOF_SIZE_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_SIZE_T.c Linking C executable cmTC_5878f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5878f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_5878f.dir/SIZEOF_SIZE_T.c.o -o cmTC_5878f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of ssize_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ef341/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ef341.dir/build.make CMakeFiles/cmTC_ef341.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ef341.dir/SIZEOF_SSIZE_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ef341.dir/SIZEOF_SSIZE_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_SSIZE_T.c Linking C executable cmTC_ef341 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ef341.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ef341.dir/SIZEOF_SSIZE_T.c.o -o cmTC_ef341 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of long long passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_49a2e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_49a2e.dir/build.make CMakeFiles/cmTC_49a2e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_49a2e.dir/SIZEOF_LONG_LONG.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_49a2e.dir/SIZEOF_LONG_LONG.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_LONG_LONG.c Linking C executable cmTC_49a2e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_49a2e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_49a2e.dir/SIZEOF_LONG_LONG.c.o -o cmTC_49a2e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of long passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6a368/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6a368.dir/build.make CMakeFiles/cmTC_6a368.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6a368.dir/SIZEOF_LONG.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6a368.dir/SIZEOF_LONG.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_LONG.c Linking C executable cmTC_6a368 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6a368.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6a368.dir/SIZEOF_LONG.c.o -o cmTC_6a368 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of short passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8deae/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8deae.dir/build.make CMakeFiles/cmTC_8deae.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8deae.dir/SIZEOF_SHORT.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_8deae.dir/SIZEOF_SHORT.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_SHORT.c Linking C executable cmTC_8deae /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8deae.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8deae.dir/SIZEOF_SHORT.c.o -o cmTC_8deae -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of int passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6dc64/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6dc64.dir/build.make CMakeFiles/cmTC_6dc64.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6dc64.dir/SIZEOF_INT.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6dc64.dir/SIZEOF_INT.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_INT.c Linking C executable cmTC_6dc64 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6dc64.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6dc64.dir/SIZEOF_INT.c.o -o cmTC_6dc64 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of time_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6fb9f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6fb9f.dir/build.make CMakeFiles/cmTC_6fb9f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6fb9f.dir/SIZEOF_TIME_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6fb9f.dir/SIZEOF_TIME_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_TIME_T.c Linking C executable cmTC_6fb9f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6fb9f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6fb9f.dir/SIZEOF_TIME_T.c.o -o cmTC_6fb9f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of off_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8021d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8021d.dir/build.make CMakeFiles/cmTC_8021d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8021d.dir/SIZEOF_OFF_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_8021d.dir/SIZEOF_OFF_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_OFF_T.c Linking C executable cmTC_8021d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8021d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8021d.dir/SIZEOF_OFF_T.c.o -o cmTC_8021d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the basename exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c7122/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c7122.dir/build.make CMakeFiles/cmTC_c7122.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c7122.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c7122.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c7122 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c7122.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c7122.dir/CheckSymbolExists.c.o -o cmTC_c7122 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef basename return ((int*)(&basename))[argc]; #else (void)argc; return 0; #endif } Determining if the socket exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_93bdc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_93bdc.dir/build.make CMakeFiles/cmTC_93bdc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_93bdc.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_93bdc.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_93bdc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_93bdc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_93bdc.dir/CheckSymbolExists.c.o -o cmTC_93bdc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef socket return ((int*)(&socket))[argc]; #else (void)argc; return 0; #endif } Determining if the poll exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4179b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4179b.dir/build.make CMakeFiles/cmTC_4179b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4179b.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_4179b.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_4179b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4179b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4179b.dir/CheckSymbolExists.c.o -o cmTC_4179b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef poll return ((int*)(&poll))[argc]; #else (void)argc; return 0; #endif } Determining if the select exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0ecf6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0ecf6.dir/build.make CMakeFiles/cmTC_0ecf6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0ecf6.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_0ecf6.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_0ecf6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0ecf6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0ecf6.dir/CheckSymbolExists.c.o -o cmTC_0ecf6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef select return ((int*)(&select))[argc]; #else (void)argc; return 0; #endif } Determining if the strdup exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_24cab/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_24cab.dir/build.make CMakeFiles/cmTC_24cab.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_24cab.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_24cab.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_24cab /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_24cab.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_24cab.dir/CheckSymbolExists.c.o -o cmTC_24cab -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strdup return ((int*)(&strdup))[argc]; #else (void)argc; return 0; #endif } Determining if the strstr exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3ffe1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3ffe1.dir/build.make CMakeFiles/cmTC_3ffe1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3ffe1.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_3ffe1.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_3ffe1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3ffe1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3ffe1.dir/CheckSymbolExists.c.o -o cmTC_3ffe1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strstr return ((int*)(&strstr))[argc]; #else (void)argc; return 0; #endif } Determining if the strtok_r exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a7a94/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a7a94.dir/build.make CMakeFiles/cmTC_a7a94.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a7a94.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_a7a94.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_a7a94 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a7a94.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a7a94.dir/CheckSymbolExists.c.o -o cmTC_a7a94 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strtok_r return ((int*)(&strtok_r))[argc]; #else (void)argc; return 0; #endif } Determining if the strftime exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a4a51/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a4a51.dir/build.make CMakeFiles/cmTC_a4a51.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a4a51.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_a4a51.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_a4a51 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a4a51.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a4a51.dir/CheckSymbolExists.c.o -o cmTC_a4a51 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strftime return ((int*)(&strftime))[argc]; #else (void)argc; return 0; #endif } Determining if the uname exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_462c7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_462c7.dir/build.make CMakeFiles/cmTC_462c7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_462c7.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_462c7.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_462c7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_462c7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_462c7.dir/CheckSymbolExists.c.o -o cmTC_462c7 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef uname return ((int*)(&uname))[argc]; #else (void)argc; return 0; #endif } Determining if the strcasecmp exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_091d4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_091d4.dir/build.make CMakeFiles/cmTC_091d4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_091d4.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_091d4.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_091d4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_091d4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_091d4.dir/CheckSymbolExists.c.o -o cmTC_091d4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strcasecmp return ((int*)(&strcasecmp))[argc]; #else (void)argc; return 0; #endif } Determining if the alarm exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_41577/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_41577.dir/build.make CMakeFiles/cmTC_41577.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_41577.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_41577.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_41577 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_41577.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_41577.dir/CheckSymbolExists.c.o -o cmTC_41577 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef alarm return ((int*)(&alarm))[argc]; #else (void)argc; return 0; #endif } Determining if the gethostbyaddr exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ff8f9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ff8f9.dir/build.make CMakeFiles/cmTC_ff8f9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ff8f9.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ff8f9.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_ff8f9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ff8f9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ff8f9.dir/CheckSymbolExists.c.o -o cmTC_ff8f9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef gethostbyaddr return ((int*)(&gethostbyaddr))[argc]; #else (void)argc; return 0; #endif } Determining if the gethostbyaddr_r exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b4ab5/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b4ab5.dir/build.make CMakeFiles/cmTC_b4ab5.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b4ab5.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b4ab5.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b4ab5 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b4ab5.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b4ab5.dir/CheckSymbolExists.c.o -o cmTC_b4ab5 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef gethostbyaddr_r return ((int*)(&gethostbyaddr_r))[argc]; #else (void)argc; return 0; #endif } Determining if the gettimeofday exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_40b52/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_40b52.dir/build.make CMakeFiles/cmTC_40b52.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_40b52.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_40b52.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_40b52 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_40b52.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_40b52.dir/CheckSymbolExists.c.o -o cmTC_40b52 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef gettimeofday return ((int*)(&gettimeofday))[argc]; #else (void)argc; return 0; #endif } Determining if the inet_addr exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1374c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1374c.dir/build.make CMakeFiles/cmTC_1374c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1374c.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_1374c.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_1374c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1374c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1374c.dir/CheckSymbolExists.c.o -o cmTC_1374c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef inet_addr return ((int*)(&inet_addr))[argc]; #else (void)argc; return 0; #endif } Determining if the inet_ntoa exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e9386/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e9386.dir/build.make CMakeFiles/cmTC_e9386.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e9386.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_e9386.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_e9386 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e9386.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e9386.dir/CheckSymbolExists.c.o -o cmTC_e9386 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef inet_ntoa return ((int*)(&inet_ntoa))[argc]; #else (void)argc; return 0; #endif } Determining if the tcsetattr exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b56e9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b56e9.dir/build.make CMakeFiles/cmTC_b56e9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b56e9.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b56e9.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b56e9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b56e9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b56e9.dir/CheckSymbolExists.c.o -o cmTC_b56e9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef tcsetattr return ((int*)(&tcsetattr))[argc]; #else (void)argc; return 0; #endif } Determining if the tcgetattr exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_315c2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_315c2.dir/build.make CMakeFiles/cmTC_315c2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_315c2.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_315c2.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_315c2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_315c2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_315c2.dir/CheckSymbolExists.c.o -o cmTC_315c2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef tcgetattr return ((int*)(&tcgetattr))[argc]; #else (void)argc; return 0; #endif } Determining if the perror exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f5257/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f5257.dir/build.make CMakeFiles/cmTC_f5257.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f5257.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_f5257.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_f5257 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f5257.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f5257.dir/CheckSymbolExists.c.o -o cmTC_f5257 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef perror return ((int*)(&perror))[argc]; #else (void)argc; return 0; #endif } Determining if the setvbuf exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fb38b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fb38b.dir/build.make CMakeFiles/cmTC_fb38b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fb38b.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_fb38b.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_fb38b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fb38b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fb38b.dir/CheckSymbolExists.c.o -o cmTC_fb38b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef setvbuf return ((int*)(&setvbuf))[argc]; #else (void)argc; return 0; #endif } Determining if the sigsetjmp exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_50965/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_50965.dir/build.make CMakeFiles/cmTC_50965.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_50965.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_50965.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_50965 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_50965.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_50965.dir/CheckSymbolExists.c.o -o cmTC_50965 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef sigsetjmp return ((int*)(&sigsetjmp))[argc]; #else (void)argc; return 0; #endif } Determining if the getpwuid exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b44b1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b44b1.dir/build.make CMakeFiles/cmTC_b44b1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b44b1.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b44b1.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b44b1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b44b1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b44b1.dir/CheckSymbolExists.c.o -o cmTC_b44b1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef getpwuid return ((int*)(&getpwuid))[argc]; #else (void)argc; return 0; #endif } Determining if the geteuid exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b9876/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b9876.dir/build.make CMakeFiles/cmTC_b9876.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b9876.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b9876.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b9876 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b9876.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b9876.dir/CheckSymbolExists.c.o -o cmTC_b9876 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef geteuid return ((int*)(&geteuid))[argc]; #else (void)argc; return 0; #endif } Determining if the utime exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_60900/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_60900.dir/build.make CMakeFiles/cmTC_60900.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_60900.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_60900.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_60900 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_60900.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_60900.dir/CheckSymbolExists.c.o -o cmTC_60900 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef utime return ((int*)(&utime))[argc]; #else (void)argc; return 0; #endif } Determining if the gmtime_r exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_33db9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_33db9.dir/build.make CMakeFiles/cmTC_33db9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_33db9.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_33db9.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_33db9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_33db9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_33db9.dir/CheckSymbolExists.c.o -o cmTC_33db9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef gmtime_r return ((int*)(&gmtime_r))[argc]; #else (void)argc; return 0; #endif } Determining if the localtime_r exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_35e96/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_35e96.dir/build.make CMakeFiles/cmTC_35e96.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_35e96.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_35e96.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_35e96 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_35e96.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_35e96.dir/CheckSymbolExists.c.o -o cmTC_35e96 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef localtime_r return ((int*)(&localtime_r))[argc]; #else (void)argc; return 0; #endif } Determining if the gethostbyname exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3a8a5/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3a8a5.dir/build.make CMakeFiles/cmTC_3a8a5.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3a8a5.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_3a8a5.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_3a8a5 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3a8a5.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3a8a5.dir/CheckSymbolExists.c.o -o cmTC_3a8a5 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef gethostbyname return ((int*)(&gethostbyname))[argc]; #else (void)argc; return 0; #endif } Determining if the gethostbyname_r exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_89135/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_89135.dir/build.make CMakeFiles/cmTC_89135.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_89135.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_89135.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_89135 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_89135.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_89135.dir/CheckSymbolExists.c.o -o cmTC_89135 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef gethostbyname_r return ((int*)(&gethostbyname_r))[argc]; #else (void)argc; return 0; #endif } Determining if the signal exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6287e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6287e.dir/build.make CMakeFiles/cmTC_6287e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6287e.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6287e.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_6287e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6287e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6287e.dir/CheckSymbolExists.c.o -o cmTC_6287e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef signal return ((int*)(&signal))[argc]; #else (void)argc; return 0; #endif } Determining if the SIGALRM exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f443c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f443c.dir/build.make CMakeFiles/cmTC_f443c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f443c.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_f443c.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_f443c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f443c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f443c.dir/CheckSymbolExists.c.o -o cmTC_f443c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef SIGALRM return ((int*)(&SIGALRM))[argc]; #else (void)argc; return 0; #endif } Determining if the strtoll exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9e0ac/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9e0ac.dir/build.make CMakeFiles/cmTC_9e0ac.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9e0ac.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9e0ac.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_9e0ac /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9e0ac.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9e0ac.dir/CheckSymbolExists.c.o -o cmTC_9e0ac -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strtoll return ((int*)(&strtoll))[argc]; #else (void)argc; return 0; #endif } Determining if the strerror_r exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e3a84/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e3a84.dir/build.make CMakeFiles/cmTC_e3a84.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e3a84.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_e3a84.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_e3a84 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e3a84.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e3a84.dir/CheckSymbolExists.c.o -o cmTC_e3a84 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef strerror_r return ((int*)(&strerror_r))[argc]; #else (void)argc; return 0; #endif } Determining if the siginterrupt exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ae7d7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ae7d7.dir/build.make CMakeFiles/cmTC_ae7d7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ae7d7.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ae7d7.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_ae7d7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ae7d7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ae7d7.dir/CheckSymbolExists.c.o -o cmTC_ae7d7 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef siginterrupt return ((int*)(&siginterrupt))[argc]; #else (void)argc; return 0; #endif } Determining if the fork exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8e3aa/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8e3aa.dir/build.make CMakeFiles/cmTC_8e3aa.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8e3aa.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_8e3aa.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_8e3aa /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8e3aa.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8e3aa.dir/CheckSymbolExists.c.o -o cmTC_8e3aa -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef fork return ((int*)(&fork))[argc]; #else (void)argc; return 0; #endif } Determining if the getaddrinfo exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7069d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7069d.dir/build.make CMakeFiles/cmTC_7069d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7069d.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_7069d.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_7069d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7069d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7069d.dir/CheckSymbolExists.c.o -o cmTC_7069d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef getaddrinfo return ((int*)(&getaddrinfo))[argc]; #else (void)argc; return 0; #endif } Determining if the freeaddrinfo exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c1525/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c1525.dir/build.make CMakeFiles/cmTC_c1525.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c1525.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c1525.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c1525 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c1525.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c1525.dir/CheckSymbolExists.c.o -o cmTC_c1525 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef freeaddrinfo return ((int*)(&freeaddrinfo))[argc]; #else (void)argc; return 0; #endif } Determining if the freeifaddrs exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b8f53/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b8f53.dir/build.make CMakeFiles/cmTC_b8f53.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b8f53.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b8f53.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b8f53 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b8f53.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b8f53.dir/CheckSymbolExists.c.o -o cmTC_b8f53 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef freeifaddrs return ((int*)(&freeifaddrs))[argc]; #else (void)argc; return 0; #endif } Determining if the pipe exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b7ae7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b7ae7.dir/build.make CMakeFiles/cmTC_b7ae7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b7ae7.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b7ae7.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b7ae7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b7ae7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b7ae7.dir/CheckSymbolExists.c.o -o cmTC_b7ae7 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef pipe return ((int*)(&pipe))[argc]; #else (void)argc; return 0; #endif } Determining if the ftruncate exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9debc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9debc.dir/build.make CMakeFiles/cmTC_9debc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9debc.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9debc.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_9debc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9debc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9debc.dir/CheckSymbolExists.c.o -o cmTC_9debc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef ftruncate return ((int*)(&ftruncate))[argc]; #else (void)argc; return 0; #endif } Determining if the getprotobyname exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_eae1a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_eae1a.dir/build.make CMakeFiles/cmTC_eae1a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_eae1a.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_eae1a.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_eae1a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eae1a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_eae1a.dir/CheckSymbolExists.c.o -o cmTC_eae1a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef getprotobyname return ((int*)(&getprotobyname))[argc]; #else (void)argc; return 0; #endif } Determining if the getrlimit exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_af3ac/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_af3ac.dir/build.make CMakeFiles/cmTC_af3ac.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_af3ac.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_af3ac.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_af3ac /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_af3ac.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_af3ac.dir/CheckSymbolExists.c.o -o cmTC_af3ac -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef getrlimit return ((int*)(&getrlimit))[argc]; #else (void)argc; return 0; #endif } Determining if the setlocale exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_29ccb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_29ccb.dir/build.make CMakeFiles/cmTC_29ccb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_29ccb.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_29ccb.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_29ccb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_29ccb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_29ccb.dir/CheckSymbolExists.c.o -o cmTC_29ccb -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef setlocale return ((int*)(&setlocale))[argc]; #else (void)argc; return 0; #endif } Determining if the setrlimit exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c8422/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c8422.dir/build.make CMakeFiles/cmTC_c8422.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c8422.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c8422.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c8422 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c8422.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c8422.dir/CheckSymbolExists.c.o -o cmTC_c8422 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef setrlimit return ((int*)(&setrlimit))[argc]; #else (void)argc; return 0; #endif } Determining if the fcntl exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c2fdb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c2fdb.dir/build.make CMakeFiles/cmTC_c2fdb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c2fdb.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c2fdb.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c2fdb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c2fdb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c2fdb.dir/CheckSymbolExists.c.o -o cmTC_c2fdb -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef fcntl return ((int*)(&fcntl))[argc]; #else (void)argc; return 0; #endif } Determining if the ioctl exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2a549/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2a549.dir/build.make CMakeFiles/cmTC_2a549.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2a549.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_2a549.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_2a549 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2a549.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2a549.dir/CheckSymbolExists.c.o -o cmTC_2a549 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef ioctl return ((int*)(&ioctl))[argc]; #else (void)argc; return 0; #endif } Determining if the setsockopt exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6fc1e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6fc1e.dir/build.make CMakeFiles/cmTC_6fc1e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6fc1e.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6fc1e.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_6fc1e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6fc1e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6fc1e.dir/CheckSymbolExists.c.o -o cmTC_6fc1e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef setsockopt return ((int*)(&setsockopt))[argc]; #else (void)argc; return 0; #endif } Determining if the function inet_pton exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0a807/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0a807.dir/build.make CMakeFiles/cmTC_0a807.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0a807.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=inet_pton -o CMakeFiles/cmTC_0a807.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_0a807 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0a807.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=inet_pton -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0a807.dir/CheckFunctionExists.c.o -o cmTC_0a807 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the sigaction exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e162a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e162a.dir/build.make CMakeFiles/cmTC_e162a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e162a.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_e162a.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_e162a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e162a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e162a.dir/CheckSymbolExists.c.o -o cmTC_e162a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef sigaction return ((int*)(&sigaction))[argc]; #else (void)argc; return 0; #endif } Performing Curl Test HAVE_FCNTL_O_NONBLOCK passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fdf4b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fdf4b.dir/build.make CMakeFiles/cmTC_fdf4b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fdf4b.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_FCNTL_O_NONBLOCK -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_fdf4b.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_fdf4b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fdf4b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_FCNTL_O_NONBLOCK -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fdf4b.dir/CurlTests.c.o -o cmTC_fdf4b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_IOCTL_FIONBIO passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_993a2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_993a2.dir/build.make CMakeFiles/cmTC_993a2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_993a2.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_IOCTL_FIONBIO -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_993a2.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_993a2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_993a2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_IOCTL_FIONBIO -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_993a2.dir/CurlTests.c.o -o cmTC_993a2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_IOCTL_SIOCGIFADDR passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f5a67/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f5a67.dir/build.make CMakeFiles/cmTC_f5a67.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f5a67.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_IOCTL_SIOCGIFADDR -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_f5a67.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_f5a67 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f5a67.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_IOCTL_SIOCGIFADDR -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f5a67.dir/CurlTests.c.o -o cmTC_f5a67 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test TIME_WITH_SYS_TIME passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f7414/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f7414.dir/build.make CMakeFiles/cmTC_f7414.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f7414.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DTIME_WITH_SYS_TIME -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_f7414.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_f7414 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f7414.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DTIME_WITH_SYS_TIME -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f7414.dir/CurlTests.c.o -o cmTC_f7414 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_GETHOSTBYADDR_R_8 passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9e851/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9e851.dir/build.make CMakeFiles/cmTC_9e851.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9e851.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYADDR_R_8 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_9e851.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_9e851 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9e851.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYADDR_R_8 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9e851.dir/CurlTests.c.o -o cmTC_9e851 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_GETHOSTBYADDR_R_8_REENTRANT passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_87abf/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_87abf.dir/build.make CMakeFiles/cmTC_87abf.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_87abf.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYADDR_R_8_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_87abf.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_87abf /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_87abf.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYADDR_R_8_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_87abf.dir/CurlTests.c.o -o cmTC_87abf -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_GETHOSTBYNAME_R_6 passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_cebf6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_cebf6.dir/build.make CMakeFiles/cmTC_cebf6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cebf6.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYNAME_R_6 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_cebf6.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_cebf6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cebf6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYNAME_R_6 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_cebf6.dir/CurlTests.c.o -o cmTC_cebf6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_GETHOSTBYNAME_R_6_REENTRANT passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4e3f3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4e3f3.dir/build.make CMakeFiles/cmTC_4e3f3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4e3f3.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYNAME_R_6_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_4e3f3.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_4e3f3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4e3f3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_GETHOSTBYNAME_R_6_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4e3f3.dir/CurlTests.c.o -o cmTC_4e3f3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_SOCKLEN_T passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3da3e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3da3e.dir/build.make CMakeFiles/cmTC_3da3e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3da3e.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SOCKLEN_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_3da3e.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_3da3e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3da3e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SOCKLEN_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3da3e.dir/CurlTests.c.o -o cmTC_3da3e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_IN_ADDR_T passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8d0a6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8d0a6.dir/build.make CMakeFiles/cmTC_8d0a6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8d0a6.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_IN_ADDR_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_8d0a6.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_8d0a6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8d0a6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_IN_ADDR_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8d0a6.dir/CurlTests.c.o -o cmTC_8d0a6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_BOOL_T passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_82d24/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_82d24.dir/build.make CMakeFiles/cmTC_82d24.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_82d24.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_BOOL_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_82d24.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_82d24 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_82d24.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_BOOL_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_82d24.dir/CurlTests.c.o -o cmTC_82d24 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test STDC_HEADERS passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ddafa/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ddafa.dir/build.make CMakeFiles/cmTC_ddafa.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ddafa.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DSTDC_HEADERS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_ddafa.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_ddafa /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ddafa.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DSTDC_HEADERS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ddafa.dir/CurlTests.c.o -o cmTC_ddafa -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test RETSIGTYPE_TEST passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6058e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6058e.dir/build.make CMakeFiles/cmTC_6058e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6058e.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DRETSIGTYPE_TEST -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_6058e.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_6058e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6058e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DRETSIGTYPE_TEST -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6058e.dir/CurlTests.c.o -o cmTC_6058e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing Curl Test HAVE_FILE_OFFSET_BITS passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_83d7b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_83d7b.dir/build.make CMakeFiles/cmTC_83d7b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_83d7b.dir/CurlTests.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_FILE_OFFSET_BITS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -o CMakeFiles/cmTC_83d7b.dir/CurlTests.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmcurl/CMake/CurlTests.c Linking C executable cmTC_83d7b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_83d7b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_FILE_OFFSET_BITS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IDN_FREE_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_TLD_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -DHAVE_IDNA_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_83d7b.dir/CurlTests.c.o -o cmTC_83d7b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of socklen_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_bdc21/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_bdc21.dir/build.make CMakeFiles/cmTC_bdc21.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bdc21.dir/CURL_SIZEOF_CURL_SOCKLEN_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_bdc21.dir/CURL_SIZEOF_CURL_SOCKLEN_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/CURL_SIZEOF_CURL_SOCKLEN_T.c Linking C executable cmTC_bdc21 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bdc21.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_bdc21.dir/CURL_SIZEOF_CURL_SOCKLEN_T.c.o -o cmTC_bdc21 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test curl_cv_recv succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9af42/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9af42.dir/build.make CMakeFiles/cmTC_9af42.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9af42.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_recv -o CMakeFiles/cmTC_9af42.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_9af42 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9af42.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_recv -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9af42.dir/src.c.o -o cmTC_9af42 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #undef inline #include #include int main(void) { recv(0, 0, 0, 0); return 0; } Performing C SOURCE FILE Test curl_cv_func_recv_test succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_20c27/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_20c27.dir/build.make CMakeFiles/cmTC_20c27.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_20c27.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_func_recv_test -o CMakeFiles/cmTC_20c27.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_20c27 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_20c27.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_func_recv_test -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_20c27.dir/src.c.o -o cmTC_20c27 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #undef inline #include #include extern ssize_t recv(int, void *, size_t, int); int main(void) { int s=0; void * buf=0; size_t len=0; int flags=0; ssize_t res = recv(s, buf, len, flags); (void) res; return 0; } Performing C SOURCE FILE Test curl_cv_send succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_70c27/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_70c27.dir/build.make CMakeFiles/cmTC_70c27.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_70c27.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_send -o CMakeFiles/cmTC_70c27.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_70c27 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_70c27.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_send -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_70c27.dir/src.c.o -o cmTC_70c27 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #undef inline #include #include int main(void) { send(0, 0, 0, 0); return 0; } Performing C SOURCE FILE Test curl_cv_func_send_test succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_084e9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_084e9.dir/build.make CMakeFiles/cmTC_084e9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_084e9.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_func_send_test -o CMakeFiles/cmTC_084e9.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_084e9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_084e9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -Dcurl_cv_func_send_test -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_084e9.dir/src.c.o -o cmTC_084e9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #undef inline #include #include extern ssize_t send(int, const void *, size_t, int); int main(void) { int s=0; const void * buf=0; size_t len=0; int flags=0; ssize_t res = send(s, buf, len, flags); (void) res; return 0; } Performing C SOURCE FILE Test HAVE_MSG_NOSIGNAL succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_76784/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_76784.dir/build.make CMakeFiles/cmTC_76784.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_76784.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_MSG_NOSIGNAL -o CMakeFiles/cmTC_76784.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_76784 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_76784.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_MSG_NOSIGNAL -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_76784.dir/src.c.o -o cmTC_76784 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #undef inline #include #include int main(void) { int flag = MSG_NOSIGNAL; (void)flag; return 0; } Performing C SOURCE FILE Test HAVE_STRUCT_TIMEVAL succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e856c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e856c.dir/build.make CMakeFiles/cmTC_e856c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e856c.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_TIMEVAL -o CMakeFiles/cmTC_e856c.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_e856c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e856c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_TIMEVAL -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e856c.dir/src.c.o -o cmTC_e856c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #undef inline #include #include #include #include #include int main(void) { struct timeval ts; ts.tv_sec = 0; ts.tv_usec = 0; (void)ts; return 0; } Performing C SOURCE FILE Test HAVE_POLL_FINE succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e338a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e338a.dir/build.make CMakeFiles/cmTC_e338a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e338a.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_POLL_FINE -DHAVE_SYS_POLL_H -o CMakeFiles/cmTC_e338a.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_e338a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e338a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_POLL_FINE -DHAVE_SYS_POLL_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e338a.dir/src.c.o -o cmTC_e338a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Return value: 1 Source file was: #ifdef HAVE_SYS_POLL_H # include #endif int main(void) { return poll((void *)0, 0, 10 /*ms*/); } Determining size of sig_atomic_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7f668/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7f668.dir/build.make CMakeFiles/cmTC_7f668.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7f668.dir/SIZEOF_SIG_ATOMIC_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SIGNAL_H -o CMakeFiles/cmTC_7f668.dir/SIZEOF_SIG_ATOMIC_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_SIG_ATOMIC_T.c Linking C executable cmTC_7f668 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7f668.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SIGNAL_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7f668.dir/SIZEOF_SIG_ATOMIC_T.c.o -o cmTC_7f668 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test HAVE_SIG_ATOMIC_T_NOT_VOLATILE succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9de34/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9de34.dir/build.make CMakeFiles/cmTC_9de34.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9de34.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SIG_ATOMIC_T_NOT_VOLATILE -DHAVE_SIGNAL_H -o CMakeFiles/cmTC_9de34.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_9de34 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9de34.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SIG_ATOMIC_T_NOT_VOLATILE -DHAVE_SIGNAL_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9de34.dir/src.c.o -o cmTC_9de34 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #ifdef HAVE_SIGNAL_H # include #endif int main(void) { static volatile sig_atomic_t dummy = 0; (void)dummy; return 0; } Determining size of struct sockaddr_storage passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9eed0/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9eed0.dir/build.make CMakeFiles/cmTC_9eed0.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9eed0.dir/SIZEOF_STRUCT_SOCKADDR_STORAGE.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/staging_dir/host/include -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SIGNAL_H -o CMakeFiles/cmTC_9eed0.dir/SIZEOF_STRUCT_SOCKADDR_STORAGE.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_STRUCT_SOCKADDR_STORAGE.c Linking C executable cmTC_9eed0 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9eed0.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_SIGNAL_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9eed0.dir/SIZEOF_STRUCT_SOCKADDR_STORAGE.c.o -o cmTC_9eed0 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test HAVE_RESTRICT succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d8e68/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d8e68.dir/build.make CMakeFiles/cmTC_d8e68.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d8e68.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_RESTRICT -o CMakeFiles/cmTC_d8e68.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_d8e68 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d8e68.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_RESTRICT -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d8e68.dir/src.c.o -o cmTC_d8e68 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: int test (void *restrict x); int main (void) {return 0;} Performing C SOURCE FILE Test HAVE___RESTRICT succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c334d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c334d.dir/build.make CMakeFiles/cmTC_c334d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c334d.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE___RESTRICT -o CMakeFiles/cmTC_c334d.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_c334d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c334d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE___RESTRICT -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c334d.dir/src.c.o -o cmTC_c334d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: typedef struct abc *d; int test (d __restrict x); int main (void) {return 0;} Performing C SOURCE FILE Test HAVE_INLINE succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0af9f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0af9f.dir/build.make CMakeFiles/cmTC_0af9f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0af9f.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_INLINE -o CMakeFiles/cmTC_0af9f.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_0af9f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0af9f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_INLINE -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0af9f.dir/src.c.o -o cmTC_0af9f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: inline int test (void) {return 0;} int main (void) {return test();} Performing C SOURCE FILE Test HAVE___INLINE succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_21ed2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_21ed2.dir/build.make CMakeFiles/cmTC_21ed2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_21ed2.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE___INLINE -o CMakeFiles/cmTC_21ed2.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_21ed2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_21ed2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE___INLINE -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_21ed2.dir/src.c.o -o cmTC_21ed2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: __inline int test (void) {return 0;} int main (void) {return test();} Determining if the include file byteswap.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fb341/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fb341.dir/build.make CMakeFiles/cmTC_fb341.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fb341.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_fb341.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_fb341 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fb341.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fb341.dir/CheckIncludeFile.c.o -o cmTC_fb341 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file sys/sysctl.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_eb767/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_eb767.dir/build.make CMakeFiles/cmTC_eb767.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_eb767.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_eb767.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_eb767 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eb767.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_eb767.dir/CheckIncludeFile.c.o -o cmTC_eb767 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test HAVE_BSWAP_16 succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_50f03/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_50f03.dir/build.make CMakeFiles/cmTC_50f03.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_50f03.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_BSWAP_16 -o CMakeFiles/cmTC_50f03.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_50f03 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_50f03.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_BSWAP_16 -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_50f03.dir/src.c.o -o cmTC_50f03 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main(void){bswap_16(0);return 0;} Performing C SOURCE FILE Test HAVE_BSWAP_32 succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e0339/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e0339.dir/build.make CMakeFiles/cmTC_e0339.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e0339.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_BSWAP_32 -o CMakeFiles/cmTC_e0339.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_e0339 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e0339.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_BSWAP_32 -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e0339.dir/src.c.o -o cmTC_e0339 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main(void){bswap_32(0);return 0;} Performing C SOURCE FILE Test HAVE_BSWAP_64 succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_910df/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_910df.dir/build.make CMakeFiles/cmTC_910df.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_910df.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_BSWAP_64 -o CMakeFiles/cmTC_910df.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_910df /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_910df.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DHAVE_BSWAP_64 -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_910df.dir/src.c.o -o cmTC_910df -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main(void){bswap_64(0);return 0;} Determining size of unsigned short passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f6ee7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f6ee7.dir/build.make CMakeFiles/cmTC_f6ee7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f6ee7.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f6ee7.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.c Linking C executable cmTC_f6ee7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f6ee7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f6ee7.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o -o cmTC_f6ee7 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the system is big endian passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1b08a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1b08a.dir/build.make CMakeFiles/cmTC_1b08a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1b08a.dir/TestEndianess.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_1b08a.dir/TestEndianess.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/TestEndianess.c Linking C executable cmTC_1b08a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1b08a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1b08a.dir/TestEndianess.c.o -o cmTC_1b08a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' TestEndianess.c: /* A 16 bit integer is required. */ typedef unsigned short cmakeint16; /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN." On a big endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000}; /* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN." On a little endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000}; #ifdef __CLASSIC_C__ int main(argc, argv) int argc; char *argv[]; #else int main(int argc, char *argv[]) #endif { int require = 0; require += info_little[argc]; require += info_big[argc]; (void)argv; return require; } Determining size of int16_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_13a4b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_13a4b.dir/build.make CMakeFiles/cmTC_13a4b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_13a4b.dir/INT16_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_13a4b.dir/INT16_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/INT16_T.c Linking C executable cmTC_13a4b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_13a4b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_13a4b.dir/INT16_T.c.o -o cmTC_13a4b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of int32_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2d858/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2d858.dir/build.make CMakeFiles/cmTC_2d858.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2d858.dir/INT32_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_2d858.dir/INT32_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/INT32_T.c Linking C executable cmTC_2d858 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2d858.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2d858.dir/INT32_T.c.o -o cmTC_2d858 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of int64_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7f1b1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7f1b1.dir/build.make CMakeFiles/cmTC_7f1b1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7f1b1.dir/INT64_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_7f1b1.dir/INT64_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/INT64_T.c Linking C executable cmTC_7f1b1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7f1b1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7f1b1.dir/INT64_T.c.o -o cmTC_7f1b1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of intmax_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0a368/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0a368.dir/build.make CMakeFiles/cmTC_0a368.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0a368.dir/INTMAX_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_0a368.dir/INTMAX_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/INTMAX_T.c Linking C executable cmTC_0a368 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0a368.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0a368.dir/INTMAX_T.c.o -o cmTC_0a368 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uint8_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_65fb8/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_65fb8.dir/build.make CMakeFiles/cmTC_65fb8.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_65fb8.dir/UINT8_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_65fb8.dir/UINT8_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UINT8_T.c Linking C executable cmTC_65fb8 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_65fb8.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_65fb8.dir/UINT8_T.c.o -o cmTC_65fb8 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uint16_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_45f0a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_45f0a.dir/build.make CMakeFiles/cmTC_45f0a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_45f0a.dir/UINT16_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_45f0a.dir/UINT16_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UINT16_T.c Linking C executable cmTC_45f0a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_45f0a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_45f0a.dir/UINT16_T.c.o -o cmTC_45f0a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uint32_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3b000/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3b000.dir/build.make CMakeFiles/cmTC_3b000.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3b000.dir/UINT32_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_3b000.dir/UINT32_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UINT32_T.c Linking C executable cmTC_3b000 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3b000.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3b000.dir/UINT32_T.c.o -o cmTC_3b000 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uint64_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8c73b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8c73b.dir/build.make CMakeFiles/cmTC_8c73b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8c73b.dir/UINT64_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_8c73b.dir/UINT64_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UINT64_T.c Linking C executable cmTC_8c73b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8c73b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8c73b.dir/UINT64_T.c.o -o cmTC_8c73b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uintmax_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_30665/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_30665.dir/build.make CMakeFiles/cmTC_30665.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_30665.dir/UINTMAX_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_30665.dir/UINTMAX_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UINTMAX_T.c Linking C executable cmTC_30665 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_30665.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_30665.dir/UINTMAX_T.c.o -o cmTC_30665 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of short passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c97fe/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c97fe.dir/build.make CMakeFiles/cmTC_c97fe.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c97fe.dir/SIZE_OF_SHORT.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_c97fe.dir/SIZE_OF_SHORT.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_SHORT.c Linking C executable cmTC_c97fe /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c97fe.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c97fe.dir/SIZE_OF_SHORT.c.o -o cmTC_c97fe -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of int passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0f86a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0f86a.dir/build.make CMakeFiles/cmTC_0f86a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0f86a.dir/SIZE_OF_INT.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_0f86a.dir/SIZE_OF_INT.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_INT.c Linking C executable cmTC_0f86a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0f86a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0f86a.dir/SIZE_OF_INT.c.o -o cmTC_0f86a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of long passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0a099/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0a099.dir/build.make CMakeFiles/cmTC_0a099.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0a099.dir/SIZE_OF_LONG.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_0a099.dir/SIZE_OF_LONG.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_LONG.c Linking C executable cmTC_0a099 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0a099.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_0a099.dir/SIZE_OF_LONG.c.o -o cmTC_0a099 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of long long passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_28f6b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_28f6b.dir/build.make CMakeFiles/cmTC_28f6b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_28f6b.dir/SIZE_OF_LONG_LONG.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_28f6b.dir/SIZE_OF_LONG_LONG.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_LONG_LONG.c Linking C executable cmTC_28f6b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_28f6b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_28f6b.dir/SIZE_OF_LONG_LONG.c.o -o cmTC_28f6b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of unsigned short passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a9192/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a9192.dir/build.make CMakeFiles/cmTC_a9192.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a9192.dir/SIZE_OF_UNSIGNED_SHORT.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_a9192.dir/SIZE_OF_UNSIGNED_SHORT.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED_SHORT.c Linking C executable cmTC_a9192 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a9192.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a9192.dir/SIZE_OF_UNSIGNED_SHORT.c.o -o cmTC_a9192 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of unsigned passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_06f89/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_06f89.dir/build.make CMakeFiles/cmTC_06f89.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_06f89.dir/SIZE_OF_UNSIGNED.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_06f89.dir/SIZE_OF_UNSIGNED.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED.c Linking C executable cmTC_06f89 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_06f89.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_06f89.dir/SIZE_OF_UNSIGNED.c.o -o cmTC_06f89 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of unsigned long passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_045fd/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_045fd.dir/build.make CMakeFiles/cmTC_045fd.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_045fd.dir/SIZE_OF_UNSIGNED_LONG.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_045fd.dir/SIZE_OF_UNSIGNED_LONG.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED_LONG.c Linking C executable cmTC_045fd /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_045fd.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_045fd.dir/SIZE_OF_UNSIGNED_LONG.c.o -o cmTC_045fd -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of unsigned long long passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_69193/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_69193.dir/build.make CMakeFiles/cmTC_69193.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_69193.dir/SIZE_OF_UNSIGNED_LONG_LONG.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_69193.dir/SIZE_OF_UNSIGNED_LONG_LONG.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED_LONG_LONG.c Linking C executable cmTC_69193 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_69193.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_69193.dir/SIZE_OF_UNSIGNED_LONG_LONG.c.o -o cmTC_69193 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of size_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c911d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c911d.dir/build.make CMakeFiles/cmTC_c911d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c911d.dir/SIZE_OF_SIZE_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_c911d.dir/SIZE_OF_SIZE_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_OF_SIZE_T.c Linking C executable cmTC_c911d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c911d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c911d.dir/SIZE_OF_SIZE_T.c.o -o cmTC_c911d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uintptr_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3dd58/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3dd58.dir/build.make CMakeFiles/cmTC_3dd58.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3dd58.dir/UINTPTR_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_3dd58.dir/UINTPTR_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UINTPTR_T.c Linking C executable cmTC_3dd58 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3dd58.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3dd58.dir/UINTPTR_T.c.o -o cmTC_3dd58 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test HAVE_DIRENT_H succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2bf3b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2bf3b.dir/build.make CMakeFiles/cmTC_2bf3b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2bf3b.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_DIRENT_H -o CMakeFiles/cmTC_2bf3b.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_2bf3b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2bf3b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_DIRENT_H -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2bf3b.dir/src.c.o -o cmTC_2bf3b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main() { static DIR * tmp; if (sizeof(tmp)) return 0; return 0; } Determining if files sys/types.h;ctype.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_95751/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_95751.dir/build.make CMakeFiles/cmTC_95751.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_95751.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_95751.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_95751 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_95751.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_95751.dir/CheckIncludeFiles.c.o -o cmTC_95751 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fcfd9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fcfd9.dir/build.make CMakeFiles/cmTC_fcfd9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fcfd9.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_fcfd9.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_fcfd9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fcfd9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fcfd9.dir/CheckIncludeFiles.c.o -o cmTC_fcfd9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test HAVE_WORKING_EXT2_IOC_GETFLAGS succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_edfb3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_edfb3.dir/build.make CMakeFiles/cmTC_edfb3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_edfb3.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_WORKING_EXT2_IOC_GETFLAGS -o CMakeFiles/cmTC_edfb3.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_edfb3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_edfb3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_WORKING_EXT2_IOC_GETFLAGS -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_edfb3.dir/src.c.o -o cmTC_edfb3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include #include int main(void) { return EXT2_IOC_GETFLAGS; } Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5e688/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_5e688.dir/build.make CMakeFiles/cmTC_5e688.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5e688.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_5e688.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_5e688 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5e688.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_5e688.dir/CheckIncludeFiles.c.o -o cmTC_5e688 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d5bd8/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d5bd8.dir/build.make CMakeFiles/cmTC_d5bd8.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d5bd8.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_d5bd8.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_d5bd8 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d5bd8.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d5bd8.dir/CheckIncludeFiles.c.o -o cmTC_d5bd8 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d01ef/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d01ef.dir/build.make CMakeFiles/cmTC_d01ef.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d01ef.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_d01ef.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_d01ef /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d01ef.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d01ef.dir/CheckIncludeFiles.c.o -o cmTC_d01ef -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fd331/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fd331.dir/build.make CMakeFiles/cmTC_fd331.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fd331.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_fd331.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_fd331 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fd331.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fd331.dir/CheckIncludeFiles.c.o -o cmTC_fd331 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_61592/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_61592.dir/build.make CMakeFiles/cmTC_61592.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_61592.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_61592.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_61592 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_61592.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_61592.dir/CheckIncludeFiles.c.o -o cmTC_61592 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9d4ff/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9d4ff.dir/build.make CMakeFiles/cmTC_9d4ff.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9d4ff.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9d4ff.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_9d4ff /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9d4ff.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9d4ff.dir/CheckIncludeFiles.c.o -o cmTC_9d4ff -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6fa7c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6fa7c.dir/build.make CMakeFiles/cmTC_6fa7c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6fa7c.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6fa7c.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_6fa7c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6fa7c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6fa7c.dir/CheckIncludeFiles.c.o -o cmTC_6fa7c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_74929/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_74929.dir/build.make CMakeFiles/cmTC_74929.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_74929.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_74929.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_74929 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_74929.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_74929.dir/CheckIncludeFiles.c.o -o cmTC_74929 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_194b2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_194b2.dir/build.make CMakeFiles/cmTC_194b2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_194b2.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_194b2.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_194b2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_194b2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_194b2.dir/CheckIncludeFiles.c.o -o cmTC_194b2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_41715/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_41715.dir/build.make CMakeFiles/cmTC_41715.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_41715.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_41715.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_41715 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_41715.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_41715.dir/CheckIncludeFiles.c.o -o cmTC_41715 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3ef0c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3ef0c.dir/build.make CMakeFiles/cmTC_3ef0c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3ef0c.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_3ef0c.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_3ef0c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3ef0c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_3ef0c.dir/CheckIncludeFiles.c.o -o cmTC_3ef0c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6f0a7/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6f0a7.dir/build.make CMakeFiles/cmTC_6f0a7.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6f0a7.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6f0a7.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_6f0a7 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6f0a7.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6f0a7.dir/CheckIncludeFiles.c.o -o cmTC_6f0a7 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ba17b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ba17b.dir/build.make CMakeFiles/cmTC_ba17b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ba17b.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ba17b.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_ba17b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ba17b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ba17b.dir/CheckIncludeFiles.c.o -o cmTC_ba17b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_06d8e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_06d8e.dir/build.make CMakeFiles/cmTC_06d8e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_06d8e.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_06d8e.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_06d8e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_06d8e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_06d8e.dir/CheckIncludeFiles.c.o -o cmTC_06d8e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ccb06/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ccb06.dir/build.make CMakeFiles/cmTC_ccb06.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ccb06.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ccb06.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_ccb06 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ccb06.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ccb06.dir/CheckIncludeFiles.c.o -o cmTC_ccb06 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h;sys/wait.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_712cd/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_712cd.dir/build.make CMakeFiles/cmTC_712cd.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_712cd.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_712cd.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_712cd /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_712cd.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_712cd.dir/CheckIncludeFiles.c.o -o cmTC_712cd -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h;sys/wait.h;time.h;unistd.h;utime.h;wchar.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_00030/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_00030.dir/build.make CMakeFiles/cmTC_00030.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_00030.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_00030.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_00030 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_00030.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_00030.dir/CheckIncludeFiles.c.o -o cmTC_00030 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;ext2fs/ext2_fs.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/acl.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h;sys/wait.h;time.h;unistd.h;utime.h;wchar.h;wctype.h exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6a07d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6a07d.dir/build.make CMakeFiles/cmTC_6a07d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6a07d.dir/CheckIncludeFiles.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6a07d.dir/CheckIncludeFiles.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFiles.c Linking C executable cmTC_6a07d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6a07d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6a07d.dir/CheckIncludeFiles.c.o -o cmTC_6a07d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test SAFE_TO_DEFINE_EXTENSIONS succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_74514/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_74514.dir/build.make CMakeFiles/cmTC_74514.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_74514.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DSAFE_TO_DEFINE_EXTENSIONS -o CMakeFiles/cmTC_74514.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_74514 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_74514.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DSAFE_TO_DEFINE_EXTENSIONS -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_74514.dir/src.c.o -o cmTC_74514 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #define __EXTENSIONS__ 1 int main() { return 0;} Determining if the function chown exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_49b61/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_49b61.dir/build.make CMakeFiles/cmTC_49b61.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_49b61.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=chown -fno-builtin -o CMakeFiles/cmTC_49b61.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_49b61 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_49b61.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=chown -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_49b61.dir/CheckFunctionExists.c.o -o cmTC_49b61 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function chroot exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_164ef/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_164ef.dir/build.make CMakeFiles/cmTC_164ef.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_164ef.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=chroot -fno-builtin -o CMakeFiles/cmTC_164ef.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_164ef /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_164ef.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=chroot -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_164ef.dir/CheckFunctionExists.c.o -o cmTC_164ef -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function ctime_r exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2800b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2800b.dir/build.make CMakeFiles/cmTC_2800b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2800b.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=ctime_r -fno-builtin -o CMakeFiles/cmTC_2800b.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_2800b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2800b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=ctime_r -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2800b.dir/CheckFunctionExists.c.o -o cmTC_2800b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function dirfd exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_15b08/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_15b08.dir/build.make CMakeFiles/cmTC_15b08.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_15b08.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=dirfd -fno-builtin -o CMakeFiles/cmTC_15b08.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_15b08 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_15b08.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=dirfd -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_15b08.dir/CheckFunctionExists.c.o -o cmTC_15b08 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fchdir exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_260c9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_260c9.dir/build.make CMakeFiles/cmTC_260c9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_260c9.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fchdir -fno-builtin -o CMakeFiles/cmTC_260c9.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_260c9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_260c9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fchdir -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_260c9.dir/CheckFunctionExists.c.o -o cmTC_260c9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fchmod exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_160df/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_160df.dir/build.make CMakeFiles/cmTC_160df.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_160df.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fchmod -fno-builtin -o CMakeFiles/cmTC_160df.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_160df /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_160df.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fchmod -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_160df.dir/CheckFunctionExists.c.o -o cmTC_160df -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fchown exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_178bb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_178bb.dir/build.make CMakeFiles/cmTC_178bb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_178bb.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fchown -fno-builtin -o CMakeFiles/cmTC_178bb.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_178bb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_178bb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fchown -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_178bb.dir/CheckFunctionExists.c.o -o cmTC_178bb -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fdopendir exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_58616/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_58616.dir/build.make CMakeFiles/cmTC_58616.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_58616.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fdopendir -fno-builtin -o CMakeFiles/cmTC_58616.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_58616 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_58616.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fdopendir -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_58616.dir/CheckFunctionExists.c.o -o cmTC_58616 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fstat exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f5d44/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f5d44.dir/build.make CMakeFiles/cmTC_f5d44.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f5d44.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstat -fno-builtin -o CMakeFiles/cmTC_f5d44.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_f5d44 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f5d44.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstat -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f5d44.dir/CheckFunctionExists.c.o -o cmTC_f5d44 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fstatat exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4523a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4523a.dir/build.make CMakeFiles/cmTC_4523a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4523a.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstatat -fno-builtin -o CMakeFiles/cmTC_4523a.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_4523a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4523a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstatat -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4523a.dir/CheckFunctionExists.c.o -o cmTC_4523a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fstatfs exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f7e5d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f7e5d.dir/build.make CMakeFiles/cmTC_f7e5d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f7e5d.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstatfs -fno-builtin -o CMakeFiles/cmTC_f7e5d.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_f7e5d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f7e5d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstatfs -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f7e5d.dir/CheckFunctionExists.c.o -o cmTC_f7e5d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fstatvfs exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4e427/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4e427.dir/build.make CMakeFiles/cmTC_4e427.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4e427.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstatvfs -fno-builtin -o CMakeFiles/cmTC_4e427.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_4e427 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4e427.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fstatvfs -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4e427.dir/CheckFunctionExists.c.o -o cmTC_4e427 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function futimens exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1bffc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1bffc.dir/build.make CMakeFiles/cmTC_1bffc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1bffc.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=futimens -fno-builtin -o CMakeFiles/cmTC_1bffc.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_1bffc /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1bffc.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=futimens -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1bffc.dir/CheckFunctionExists.c.o -o cmTC_1bffc -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function futimes exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_af88e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_af88e.dir/build.make CMakeFiles/cmTC_af88e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_af88e.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=futimes -fno-builtin -o CMakeFiles/cmTC_af88e.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_af88e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_af88e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=futimes -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_af88e.dir/CheckFunctionExists.c.o -o cmTC_af88e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function futimesat exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_84d55/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_84d55.dir/build.make CMakeFiles/cmTC_84d55.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_84d55.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=futimesat -fno-builtin -o CMakeFiles/cmTC_84d55.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_84d55 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_84d55.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=futimesat -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_84d55.dir/CheckFunctionExists.c.o -o cmTC_84d55 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function getgrgid_r exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_da6f2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_da6f2.dir/build.make CMakeFiles/cmTC_da6f2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_da6f2.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getgrgid_r -fno-builtin -o CMakeFiles/cmTC_da6f2.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_da6f2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_da6f2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getgrgid_r -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_da6f2.dir/CheckFunctionExists.c.o -o cmTC_da6f2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function getgrnam_r exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_69e65/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_69e65.dir/build.make CMakeFiles/cmTC_69e65.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_69e65.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getgrnam_r -fno-builtin -o CMakeFiles/cmTC_69e65.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_69e65 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_69e65.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getgrnam_r -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_69e65.dir/CheckFunctionExists.c.o -o cmTC_69e65 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function getpwnam_r exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a6616/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a6616.dir/build.make CMakeFiles/cmTC_a6616.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a6616.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpwnam_r -fno-builtin -o CMakeFiles/cmTC_a6616.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_a6616 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a6616.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpwnam_r -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a6616.dir/CheckFunctionExists.c.o -o cmTC_a6616 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function getpwuid_r exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_04650/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_04650.dir/build.make CMakeFiles/cmTC_04650.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_04650.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpwuid_r -fno-builtin -o CMakeFiles/cmTC_04650.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_04650 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_04650.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpwuid_r -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_04650.dir/CheckFunctionExists.c.o -o cmTC_04650 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function getpid exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8902b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8902b.dir/build.make CMakeFiles/cmTC_8902b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8902b.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpid -fno-builtin -o CMakeFiles/cmTC_8902b.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_8902b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8902b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpid -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8902b.dir/CheckFunctionExists.c.o -o cmTC_8902b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function lchown exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_cc0f3/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_cc0f3.dir/build.make CMakeFiles/cmTC_cc0f3.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cc0f3.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=lchown -fno-builtin -o CMakeFiles/cmTC_cc0f3.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_cc0f3 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cc0f3.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=lchown -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_cc0f3.dir/CheckFunctionExists.c.o -o cmTC_cc0f3 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function link exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_82d0c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_82d0c.dir/build.make CMakeFiles/cmTC_82d0c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_82d0c.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=link -fno-builtin -o CMakeFiles/cmTC_82d0c.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_82d0c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_82d0c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=link -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_82d0c.dir/CheckFunctionExists.c.o -o cmTC_82d0c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function lstat exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_78527/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_78527.dir/build.make CMakeFiles/cmTC_78527.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_78527.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=lstat -fno-builtin -o CMakeFiles/cmTC_78527.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_78527 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_78527.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=lstat -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_78527.dir/CheckFunctionExists.c.o -o cmTC_78527 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function lutimes exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e1748/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e1748.dir/build.make CMakeFiles/cmTC_e1748.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e1748.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=lutimes -fno-builtin -o CMakeFiles/cmTC_e1748.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_e1748 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e1748.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=lutimes -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e1748.dir/CheckFunctionExists.c.o -o cmTC_e1748 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function mbrtowc exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b7d26/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b7d26.dir/build.make CMakeFiles/cmTC_b7d26.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b7d26.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mbrtowc -fno-builtin -o CMakeFiles/cmTC_b7d26.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_b7d26 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b7d26.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mbrtowc -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b7d26.dir/CheckFunctionExists.c.o -o cmTC_b7d26 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function memmove exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_a9eed/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_a9eed.dir/build.make CMakeFiles/cmTC_a9eed.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a9eed.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=memmove -fno-builtin -o CMakeFiles/cmTC_a9eed.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_a9eed /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a9eed.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=memmove -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_a9eed.dir/CheckFunctionExists.c.o -o cmTC_a9eed -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function mkdir exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1968a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1968a.dir/build.make CMakeFiles/cmTC_1968a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1968a.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mkdir -fno-builtin -o CMakeFiles/cmTC_1968a.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_1968a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1968a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mkdir -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1968a.dir/CheckFunctionExists.c.o -o cmTC_1968a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function mkfifo exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_455ee/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_455ee.dir/build.make CMakeFiles/cmTC_455ee.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_455ee.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mkfifo -fno-builtin -o CMakeFiles/cmTC_455ee.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_455ee /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_455ee.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mkfifo -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_455ee.dir/CheckFunctionExists.c.o -o cmTC_455ee -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function mknod exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5c2a6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_5c2a6.dir/build.make CMakeFiles/cmTC_5c2a6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5c2a6.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mknod -fno-builtin -o CMakeFiles/cmTC_5c2a6.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_5c2a6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5c2a6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mknod -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_5c2a6.dir/CheckFunctionExists.c.o -o cmTC_5c2a6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function mkstemp exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b881d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b881d.dir/build.make CMakeFiles/cmTC_b881d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b881d.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mkstemp -fno-builtin -o CMakeFiles/cmTC_b881d.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_b881d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b881d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mkstemp -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b881d.dir/CheckFunctionExists.c.o -o cmTC_b881d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function nl_langinfo exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_22bd9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_22bd9.dir/build.make CMakeFiles/cmTC_22bd9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_22bd9.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=nl_langinfo -fno-builtin -o CMakeFiles/cmTC_22bd9.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_22bd9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_22bd9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=nl_langinfo -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_22bd9.dir/CheckFunctionExists.c.o -o cmTC_22bd9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function openat exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1466c/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1466c.dir/build.make CMakeFiles/cmTC_1466c.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1466c.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=openat -fno-builtin -o CMakeFiles/cmTC_1466c.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_1466c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1466c.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=openat -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1466c.dir/CheckFunctionExists.c.o -o cmTC_1466c -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function posix_spawnp exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5f45f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_5f45f.dir/build.make CMakeFiles/cmTC_5f45f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5f45f.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=posix_spawnp -fno-builtin -o CMakeFiles/cmTC_5f45f.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_5f45f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5f45f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=posix_spawnp -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_5f45f.dir/CheckFunctionExists.c.o -o cmTC_5f45f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function readlink exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7a503/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7a503.dir/build.make CMakeFiles/cmTC_7a503.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7a503.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=readlink -fno-builtin -o CMakeFiles/cmTC_7a503.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_7a503 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7a503.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=readlink -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7a503.dir/CheckFunctionExists.c.o -o cmTC_7a503 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function setenv exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d47ba/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d47ba.dir/build.make CMakeFiles/cmTC_d47ba.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d47ba.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=setenv -fno-builtin -o CMakeFiles/cmTC_d47ba.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_d47ba /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d47ba.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=setenv -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d47ba.dir/CheckFunctionExists.c.o -o cmTC_d47ba -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function statfs exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f7795/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f7795.dir/build.make CMakeFiles/cmTC_f7795.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f7795.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=statfs -fno-builtin -o CMakeFiles/cmTC_f7795.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_f7795 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f7795.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=statfs -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f7795.dir/CheckFunctionExists.c.o -o cmTC_f7795 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function statvfs exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_59851/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_59851.dir/build.make CMakeFiles/cmTC_59851.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_59851.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=statvfs -fno-builtin -o CMakeFiles/cmTC_59851.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_59851 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_59851.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=statvfs -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_59851.dir/CheckFunctionExists.c.o -o cmTC_59851 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function strchr exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_115b4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_115b4.dir/build.make CMakeFiles/cmTC_115b4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_115b4.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=strchr -fno-builtin -o CMakeFiles/cmTC_115b4.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_115b4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_115b4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=strchr -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_115b4.dir/CheckFunctionExists.c.o -o cmTC_115b4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function strerror exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ba151/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ba151.dir/build.make CMakeFiles/cmTC_ba151.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ba151.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=strerror -fno-builtin -o CMakeFiles/cmTC_ba151.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_ba151 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ba151.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=strerror -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ba151.dir/CheckFunctionExists.c.o -o cmTC_ba151 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function strrchr exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_83ae9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_83ae9.dir/build.make CMakeFiles/cmTC_83ae9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_83ae9.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=strrchr -fno-builtin -o CMakeFiles/cmTC_83ae9.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_83ae9 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_83ae9.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=strrchr -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_83ae9.dir/CheckFunctionExists.c.o -o cmTC_83ae9 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function symlink exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1eb81/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1eb81.dir/build.make CMakeFiles/cmTC_1eb81.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1eb81.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=symlink -fno-builtin -o CMakeFiles/cmTC_1eb81.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_1eb81 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1eb81.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=symlink -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1eb81.dir/CheckFunctionExists.c.o -o cmTC_1eb81 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function timegm exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8faab/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8faab.dir/build.make CMakeFiles/cmTC_8faab.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8faab.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=timegm -fno-builtin -o CMakeFiles/cmTC_8faab.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_8faab /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8faab.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=timegm -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8faab.dir/CheckFunctionExists.c.o -o cmTC_8faab -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function tzset exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_10ef1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_10ef1.dir/build.make CMakeFiles/cmTC_10ef1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_10ef1.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=tzset -fno-builtin -o CMakeFiles/cmTC_10ef1.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_10ef1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_10ef1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=tzset -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_10ef1.dir/CheckFunctionExists.c.o -o cmTC_10ef1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function utimes exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8fe5e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8fe5e.dir/build.make CMakeFiles/cmTC_8fe5e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8fe5e.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=utimes -fno-builtin -o CMakeFiles/cmTC_8fe5e.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_8fe5e /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8fe5e.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=utimes -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8fe5e.dir/CheckFunctionExists.c.o -o cmTC_8fe5e -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function utimensat exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_500f0/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_500f0.dir/build.make CMakeFiles/cmTC_500f0.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_500f0.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=utimensat -fno-builtin -o CMakeFiles/cmTC_500f0.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_500f0 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_500f0.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=utimensat -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_500f0.dir/CheckFunctionExists.c.o -o cmTC_500f0 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function vfork exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d6746/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d6746.dir/build.make CMakeFiles/cmTC_d6746.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d6746.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=vfork -fno-builtin -o CMakeFiles/cmTC_d6746.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_d6746 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d6746.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=vfork -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d6746.dir/CheckFunctionExists.c.o -o cmTC_d6746 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wcrtomb exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8f2c0/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8f2c0.dir/build.make CMakeFiles/cmTC_8f2c0.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8f2c0.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcrtomb -fno-builtin -o CMakeFiles/cmTC_8f2c0.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_8f2c0 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8f2c0.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcrtomb -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8f2c0.dir/CheckFunctionExists.c.o -o cmTC_8f2c0 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wcscmp exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_046aa/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_046aa.dir/build.make CMakeFiles/cmTC_046aa.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_046aa.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcscmp -fno-builtin -o CMakeFiles/cmTC_046aa.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_046aa /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_046aa.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcscmp -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_046aa.dir/CheckFunctionExists.c.o -o cmTC_046aa -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wcscpy exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_eff2b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_eff2b.dir/build.make CMakeFiles/cmTC_eff2b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_eff2b.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcscpy -fno-builtin -o CMakeFiles/cmTC_eff2b.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_eff2b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eff2b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcscpy -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_eff2b.dir/CheckFunctionExists.c.o -o cmTC_eff2b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wcslen exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7a5bb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7a5bb.dir/build.make CMakeFiles/cmTC_7a5bb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7a5bb.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcslen -fno-builtin -o CMakeFiles/cmTC_7a5bb.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_7a5bb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7a5bb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wcslen -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7a5bb.dir/CheckFunctionExists.c.o -o cmTC_7a5bb -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wctomb exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_01a1a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_01a1a.dir/build.make CMakeFiles/cmTC_01a1a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_01a1a.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wctomb -fno-builtin -o CMakeFiles/cmTC_01a1a.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_01a1a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_01a1a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wctomb -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_01a1a.dir/CheckFunctionExists.c.o -o cmTC_01a1a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function fseeko exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c1617/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c1617.dir/build.make CMakeFiles/cmTC_c1617.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c1617.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fseeko -fno-builtin -o CMakeFiles/cmTC_c1617.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_c1617 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c1617.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=fseeko -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c1617.dir/CheckFunctionExists.c.o -o cmTC_c1617 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function vprintf exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_8102b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_8102b.dir/build.make CMakeFiles/cmTC_8102b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8102b.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=vprintf -fno-builtin -o CMakeFiles/cmTC_8102b.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_8102b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8102b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=vprintf -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_8102b.dir/CheckFunctionExists.c.o -o cmTC_8102b -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wmemcmp exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9b5b4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9b5b4.dir/build.make CMakeFiles/cmTC_9b5b4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9b5b4.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wmemcmp -fno-builtin -o CMakeFiles/cmTC_9b5b4.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_9b5b4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9b5b4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wmemcmp -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9b5b4.dir/CheckFunctionExists.c.o -o cmTC_9b5b4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wmemcpy exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_53977/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_53977.dir/build.make CMakeFiles/cmTC_53977.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_53977.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wmemcpy -fno-builtin -o CMakeFiles/cmTC_53977.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_53977 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_53977.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wmemcpy -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_53977.dir/CheckFunctionExists.c.o -o cmTC_53977 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wmemmove exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_1ef0a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_1ef0a.dir/build.make CMakeFiles/cmTC_1ef0a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1ef0a.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wmemmove -fno-builtin -o CMakeFiles/cmTC_1ef0a.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_1ef0a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1ef0a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=wmemmove -fno-builtin -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_1ef0a.dir/CheckFunctionExists.c.o -o cmTC_1ef0a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Performing C SOURCE FILE Test HAVE_READDIR_R succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7f253/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7f253.dir/build.make CMakeFiles/cmTC_7f253.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7f253.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_READDIR_R -o CMakeFiles/cmTC_7f253.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_7f253 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7f253.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_READDIR_R -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7f253.dir/src.c.o -o cmTC_7f253 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main() {DIR *d = opendir("."); struct dirent e,*r; return readdir_r(d,&e,&r);} Performing C SOURCE FILE Test HAVE_READLINKAT succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c6542/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c6542.dir/build.make CMakeFiles/cmTC_c6542.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c6542.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_READLINKAT -o CMakeFiles/cmTC_c6542.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_c6542 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c6542.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_READLINKAT -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c6542.dir/src.c.o -o cmTC_c6542 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include #include int main() {char buf[10]; return readlinkat(AT_FDCWD, "", buf, 0);} Performing C SOURCE FILE Test MAJOR_IN_SYSMACROS succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_62ac2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_62ac2.dir/build.make CMakeFiles/cmTC_62ac2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_62ac2.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DMAJOR_IN_SYSMACROS -o CMakeFiles/cmTC_62ac2.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_62ac2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_62ac2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DMAJOR_IN_SYSMACROS -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_62ac2.dir/src.c.o -o cmTC_62ac2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main() { return major(256); } Determining if the EILSEQ exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6b488/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6b488.dir/build.make CMakeFiles/cmTC_6b488.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6b488.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6b488.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_6b488 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6b488.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6b488.dir/CheckSymbolExists.c.o -o cmTC_6b488 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef EILSEQ return ((int*)(&EILSEQ))[argc]; #else (void)argc; return 0; #endif } Determining if the INT32_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2c0f8/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_2c0f8.dir/build.make CMakeFiles/cmTC_2c0f8.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2c0f8.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_2c0f8.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_2c0f8 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2c0f8.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_2c0f8.dir/CheckSymbolExists.c.o -o cmTC_2c0f8 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef INT32_MAX return ((int*)(&INT32_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the INT32_MIN exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c0e00/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c0e00.dir/build.make CMakeFiles/cmTC_c0e00.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c0e00.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c0e00.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c0e00 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c0e00.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_c0e00.dir/CheckSymbolExists.c.o -o cmTC_c0e00 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef INT32_MIN return ((int*)(&INT32_MIN))[argc]; #else (void)argc; return 0; #endif } Determining if the INT64_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e229f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e229f.dir/build.make CMakeFiles/cmTC_e229f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e229f.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_e229f.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_e229f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e229f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e229f.dir/CheckSymbolExists.c.o -o cmTC_e229f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef INT64_MAX return ((int*)(&INT64_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the INT64_MIN exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9aa10/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9aa10.dir/build.make CMakeFiles/cmTC_9aa10.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9aa10.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9aa10.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_9aa10 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9aa10.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9aa10.dir/CheckSymbolExists.c.o -o cmTC_9aa10 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef INT64_MIN return ((int*)(&INT64_MIN))[argc]; #else (void)argc; return 0; #endif } Determining if the INTMAX_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_00f04/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_00f04.dir/build.make CMakeFiles/cmTC_00f04.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_00f04.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_00f04.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_00f04 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_00f04.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_00f04.dir/CheckSymbolExists.c.o -o cmTC_00f04 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef INTMAX_MAX return ((int*)(&INTMAX_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the INTMAX_MIN exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6dcd4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6dcd4.dir/build.make CMakeFiles/cmTC_6dcd4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6dcd4.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6dcd4.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_6dcd4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6dcd4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6dcd4.dir/CheckSymbolExists.c.o -o cmTC_6dcd4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef INTMAX_MIN return ((int*)(&INTMAX_MIN))[argc]; #else (void)argc; return 0; #endif } Determining if the UINT32_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_77be6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_77be6.dir/build.make CMakeFiles/cmTC_77be6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_77be6.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_77be6.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_77be6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_77be6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_77be6.dir/CheckSymbolExists.c.o -o cmTC_77be6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef UINT32_MAX return ((int*)(&UINT32_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the UINT64_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b479a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b479a.dir/build.make CMakeFiles/cmTC_b479a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b479a.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b479a.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_b479a /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b479a.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_b479a.dir/CheckSymbolExists.c.o -o cmTC_b479a -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef UINT64_MAX return ((int*)(&UINT64_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the UINTMAX_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f394d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f394d.dir/build.make CMakeFiles/cmTC_f394d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f394d.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_f394d.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_f394d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f394d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f394d.dir/CheckSymbolExists.c.o -o cmTC_f394d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef UINTMAX_MAX return ((int*)(&UINTMAX_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the SIZE_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_4d03f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_4d03f.dir/build.make CMakeFiles/cmTC_4d03f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4d03f.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_4d03f.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_4d03f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4d03f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_4d03f.dir/CheckSymbolExists.c.o -o cmTC_4d03f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef SIZE_MAX return ((int*)(&SIZE_MAX))[argc]; #else (void)argc; return 0; #endif } Determining if the SSIZE_MAX exist passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_70722/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_70722.dir/build.make CMakeFiles/cmTC_70722.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_70722.dir/CheckSymbolExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_70722.dir/CheckSymbolExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_70722 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_70722.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_70722.dir/CheckSymbolExists.c.o -o cmTC_70722 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' File /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef SSIZE_MAX return ((int*)(&SSIZE_MAX))[argc]; #else (void)argc; return 0; #endif } Performing C SOURCE FILE Test HAVE_STRUCT_TM_TM_GMTOFF succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_45d19/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_45d19.dir/build.make CMakeFiles/cmTC_45d19.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_45d19.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_TM_TM_GMTOFF -o CMakeFiles/cmTC_45d19.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_45d19 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_45d19.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_TM_TM_GMTOFF -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_45d19.dir/src.c.o -o cmTC_45d19 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include int main() { static struct tm tmp; if (sizeof(tmp.tm_gmtoff)) return 0; return 0; } Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7a80d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7a80d.dir/build.make CMakeFiles/cmTC_7a80d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7a80d.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC -o CMakeFiles/cmTC_7a80d.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_7a80d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7a80d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7a80d.dir/src.c.o -o cmTC_7a80d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include #include int main() { static struct stat tmp; if (sizeof(tmp.st_mtim.tv_nsec)) return 0; return 0; } Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_BLKSIZE succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_775cf/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_775cf.dir/build.make CMakeFiles/cmTC_775cf.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_775cf.dir/src.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_STAT_ST_BLKSIZE -o CMakeFiles/cmTC_775cf.dir/src.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_775cf /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_775cf.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DHAVE_STRUCT_STAT_ST_BLKSIZE -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_775cf.dir/src.c.o -o cmTC_775cf -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: #include #include int main() { static struct stat tmp; if (sizeof(tmp.st_blksize)) return 0; return 0; } Determining size of dev_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5dbc8/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_5dbc8.dir/build.make CMakeFiles/cmTC_5dbc8.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5dbc8.dir/DEV_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_5dbc8.dir/DEV_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/DEV_T.c Linking C executable cmTC_5dbc8 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5dbc8.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_5dbc8.dir/DEV_T.c.o -o cmTC_5dbc8 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of gid_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f2dd1/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f2dd1.dir/build.make CMakeFiles/cmTC_f2dd1.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f2dd1.dir/GID_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_f2dd1.dir/GID_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/GID_T.c Linking C executable cmTC_f2dd1 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f2dd1.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f2dd1.dir/GID_T.c.o -o cmTC_f2dd1 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of id_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_bacaa/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_bacaa.dir/build.make CMakeFiles/cmTC_bacaa.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bacaa.dir/ID_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_bacaa.dir/ID_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/ID_T.c Linking C executable cmTC_bacaa /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bacaa.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_bacaa.dir/ID_T.c.o -o cmTC_bacaa -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of mode_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d8767/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d8767.dir/build.make CMakeFiles/cmTC_d8767.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d8767.dir/MODE_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_d8767.dir/MODE_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/MODE_T.c Linking C executable cmTC_d8767 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d8767.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_d8767.dir/MODE_T.c.o -o cmTC_d8767 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of off_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ab9f4/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ab9f4.dir/build.make CMakeFiles/cmTC_ab9f4.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ab9f4.dir/OFF_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_ab9f4.dir/OFF_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/OFF_T.c Linking C executable cmTC_ab9f4 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ab9f4.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ab9f4.dir/OFF_T.c.o -o cmTC_ab9f4 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of size_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_6deee/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_6deee.dir/build.make CMakeFiles/cmTC_6deee.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6deee.dir/SIZE_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_6deee.dir/SIZE_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZE_T.c Linking C executable cmTC_6deee /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6deee.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_6deee.dir/SIZE_T.c.o -o cmTC_6deee -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of ssize_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_38456/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_38456.dir/build.make CMakeFiles/cmTC_38456.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_38456.dir/SSIZE_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_38456.dir/SSIZE_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SSIZE_T.c Linking C executable cmTC_38456 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_38456.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_38456.dir/SSIZE_T.c.o -o cmTC_38456 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of uid_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9fd85/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9fd85.dir/build.make CMakeFiles/cmTC_9fd85.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9fd85.dir/UID_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_9fd85.dir/UID_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/UID_T.c Linking C executable cmTC_9fd85 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9fd85.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9fd85.dir/UID_T.c.o -o cmTC_9fd85 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of pid_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_58ccb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_58ccb.dir/build.make CMakeFiles/cmTC_58ccb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_58ccb.dir/PID_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_58ccb.dir/PID_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/PID_T.c Linking C executable cmTC_58ccb /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_58ccb.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_58ccb.dir/PID_T.c.o -o cmTC_58ccb -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of intptr_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_868f2/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_868f2.dir/build.make CMakeFiles/cmTC_868f2.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_868f2.dir/INTPTR_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_868f2.dir/INTPTR_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/INTPTR_T.c Linking C executable cmTC_868f2 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_868f2.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_868f2.dir/INTPTR_T.c.o -o cmTC_868f2 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining size of wchar_t passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_81db6/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_81db6.dir/build.make CMakeFiles/cmTC_81db6.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_81db6.dir/SIZEOF_WCHAR_T.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_81db6.dir/SIZEOF_WCHAR_T.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CheckTypeSize/SIZEOF_WCHAR_T.c Linking C executable cmTC_81db6 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_81db6.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_81db6.dir/SIZEOF_WCHAR_T.c.o -o cmTC_81db6 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Checking support for ARCHIVE_CRYPTO_MD5_LIBC failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_bf2ba/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_bf2ba.dir/build.make CMakeFiles/cmTC_bf2ba.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bf2ba.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_bf2ba.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:61:10: fatal error: md5.h: No such file or directory #include ^~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_bf2ba.dir/build.make:66: CMakeFiles/cmTC_bf2ba.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_bf2ba/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_MD5_COMPILE_TEST #define ARCHIVE_CRYPTO_MD5_LIBC #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_md5_ctx ctx; archive_md5_init(&ctx); archive_md5_update(&ctx, *argv, argc); archive_md5_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_RMD160_LIBC failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0cf5d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0cf5d.dir/build.make CMakeFiles/cmTC_0cf5d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0cf5d.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_0cf5d.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:64:10: fatal error: rmd160.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_0cf5d.dir/build.make:66: CMakeFiles/cmTC_0cf5d.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_0cf5d/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_RMD160_COMPILE_TEST #define ARCHIVE_CRYPTO_RMD160_LIBC #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_rmd160_ctx ctx; archive_rmd160_init(&ctx); archive_rmd160_update(&ctx, *argv, argc); archive_rmd160_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA1_LIBC failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_dd8cc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_dd8cc.dir/build.make CMakeFiles/cmTC_dd8cc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_dd8cc.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_dd8cc.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:67:10: fatal error: sha1.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_dd8cc.dir/build.make:66: CMakeFiles/cmTC_dd8cc.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_dd8cc/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA1_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA1_LIBC #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha1_ctx ctx; archive_sha1_init(&ctx); archive_sha1_update(&ctx, *argv, argc); archive_sha1_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA256_LIBC failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b3330/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b3330.dir/build.make CMakeFiles/cmTC_b3330.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b3330.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b3330.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_b3330.dir/build.make:66: CMakeFiles/cmTC_b3330.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_b3330/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA256_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA256_LIBC #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha256_ctx ctx; archive_sha256_init(&ctx); archive_sha256_update(&ctx, *argv, argc); archive_sha256_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA384_LIBC failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_84607/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_84607.dir/build.make CMakeFiles/cmTC_84607.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_84607.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_84607.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_84607.dir/build.make:66: CMakeFiles/cmTC_84607.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_84607/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA384_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA384_LIBC #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha384_ctx ctx; archive_sha384_init(&ctx); archive_sha384_update(&ctx, *argv, argc); archive_sha384_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA512_LIBC failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_389db/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_389db.dir/build.make CMakeFiles/cmTC_389db.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_389db.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_389db.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_389db.dir/build.make:66: CMakeFiles/cmTC_389db.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_389db/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA512_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA512_LIBC #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha512_ctx ctx; archive_sha512_init(&ctx); archive_sha512_update(&ctx, *argv, argc); archive_sha512_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA256_LIBC2 failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d9d68/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_d9d68.dir/build.make CMakeFiles/cmTC_d9d68.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d9d68.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_d9d68.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_d9d68.dir/build.make:66: CMakeFiles/cmTC_d9d68.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_d9d68/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA256_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA256_LIBC2 #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha256_ctx ctx; archive_sha256_init(&ctx); archive_sha256_update(&ctx, *argv, argc); archive_sha256_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA384_LIBC2 failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c2c39/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c2c39.dir/build.make CMakeFiles/cmTC_c2c39.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c2c39.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c2c39.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_c2c39.dir/build.make:66: CMakeFiles/cmTC_c2c39.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_c2c39/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA384_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA384_LIBC2 #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha384_ctx ctx; archive_sha384_init(&ctx); archive_sha384_update(&ctx, *argv, argc); archive_sha384_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA512_LIBC2 failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_0b724/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_0b724.dir/build.make CMakeFiles/cmTC_0b724.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0b724.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_0b724.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_0b724.dir/build.make:66: CMakeFiles/cmTC_0b724.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_0b724/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA512_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA512_LIBC2 #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha512_ctx ctx; archive_sha512_init(&ctx); archive_sha512_update(&ctx, *argv, argc); archive_sha512_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA256_LIBC3 failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_3adbc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_3adbc.dir/build.make CMakeFiles/cmTC_3adbc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3adbc.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_3adbc.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_3adbc.dir/build.make:66: CMakeFiles/cmTC_3adbc.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_3adbc/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA256_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA256_LIBC3 #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha256_ctx ctx; archive_sha256_init(&ctx); archive_sha256_update(&ctx, *argv, argc); archive_sha256_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA384_LIBC3 failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c710e/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c710e.dir/build.make CMakeFiles/cmTC_c710e.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c710e.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c710e.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_c710e.dir/build.make:66: CMakeFiles/cmTC_c710e.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_c710e/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA384_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA384_LIBC3 #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha384_ctx ctx; archive_sha384_init(&ctx); archive_sha384_update(&ctx, *argv, argc); archive_sha384_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA512_LIBC3 failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_56cc9/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_56cc9.dir/build.make CMakeFiles/cmTC_56cc9.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_56cc9.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_56cc9.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:10: fatal error: sha2.h: No such file or directory #include ^~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_56cc9.dir/build.make:66: CMakeFiles/cmTC_56cc9.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_56cc9/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA512_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA512_LIBC3 #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha512_ctx ctx; archive_sha512_init(&ctx); archive_sha512_update(&ctx, *argv, argc); archive_sha512_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_b40bb/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_b40bb.dir/build.make CMakeFiles/cmTC_b40bb.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b40bb.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_b40bb.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_b40bb.dir/build.make:66: CMakeFiles/cmTC_b40bb.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_b40bb/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_MD5_COMPILE_TEST #define ARCHIVE_CRYPTO_MD5_LIBSYSTEM #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_md5_ctx ctx; archive_md5_init(&ctx); archive_md5_update(&ctx, *argv, argc); archive_md5_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e6772/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e6772.dir/build.make CMakeFiles/cmTC_e6772.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e6772.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_e6772.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_e6772.dir/build.make:66: CMakeFiles/cmTC_e6772.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_e6772/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA1_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha1_ctx ctx; archive_sha1_init(&ctx); archive_sha1_update(&ctx, *argv, argc); archive_sha1_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_c102a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_c102a.dir/build.make CMakeFiles/cmTC_c102a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c102a.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_c102a.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_c102a.dir/build.make:66: CMakeFiles/cmTC_c102a.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_c102a/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA256_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha256_ctx ctx; archive_sha256_init(&ctx); archive_sha256_update(&ctx, *argv, argc); archive_sha256_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_14d2a/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_14d2a.dir/build.make CMakeFiles/cmTC_14d2a.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_14d2a.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_14d2a.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_14d2a.dir/build.make:66: CMakeFiles/cmTC_14d2a.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_14d2a/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA384_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha384_ctx ctx; archive_sha384_init(&ctx); archive_sha384_update(&ctx, *argv, argc); archive_sha384_final(&ctx, NULL); return 0; } Checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM failed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_003dc/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_003dc.dir/build.make CMakeFiles/cmTC_003dc.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_003dc.dir/check_crypto_md.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1 -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive -I/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_003dc.dir/check_crypto_md.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c In file included from /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/check_crypto_md.c:1261: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[5]: *** [CMakeFiles/cmTC_003dc.dir/build.make:66: CMakeFiles/cmTC_003dc.dir/check_crypto_md.c.o] Error 1 gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: *** [Makefile:126: cmTC_003dc/fast] Error 2 gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: /* config.h. Generated from build/cmake/config.h.in by cmake configure */ #if defined(__osf__) # define _OSF_SOURCE #endif /* * Ensure we have C99-style int64_t, etc, all defined. */ /* First, we need to know if the system has already defined them. */ #define HAVE_INT16_T #define HAVE_INT32_T #define HAVE_INT64_T #define HAVE_INTMAX_T #define HAVE_UINT8_T #define HAVE_UINT16_T #define HAVE_UINT32_T #define HAVE_UINT64_T #define HAVE_UINTMAX_T /* We might have the types we want under other spellings. */ /* #undef HAVE___INT64 */ /* #undef HAVE_U_INT64_T */ /* #undef HAVE_UNSIGNED___INT64 */ /* The sizes of various standard integer types. */ #define SIZE_OF_SHORT 2 #define SIZE_OF_INT 4 #define SIZE_OF_LONG 8 #define SIZE_OF_LONG_LONG 8 #define SIZE_OF_UNSIGNED_SHORT 2 #define SIZE_OF_UNSIGNED 4 #define SIZE_OF_UNSIGNED_LONG 8 #define SIZE_OF_UNSIGNED_LONG_LONG 8 /* * If we lack int64_t, define it to the first of __int64, int, long, and long long * that exists and is the right size. */ #if !defined(HAVE_INT64_T) && defined(HAVE___INT64) typedef __int64 int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif #if !defined(HAVE_INT64_T) #error No 64-bit integer type was found. #endif /* * Similarly for int32_t */ #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif #if !defined(HAVE_INT32_T) #error No 32-bit integer type was found. #endif /* * Similarly for int16_t */ #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif #if !defined(HAVE_INT16_T) #error No 16-bit integer type was found. #endif /* * Similarly for uint64_t */ #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif #if !defined(HAVE_UINT64_T) #error No 64-bit unsigned integer type was found. #endif /* * Similarly for uint32_t */ #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif #if !defined(HAVE_UINT32_T) #error No 32-bit unsigned integer type was found. #endif /* * Similarly for uint16_t */ #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif #if !defined(HAVE_UINT16_T) #error No 16-bit unsigned integer type was found. #endif /* * Similarly for uint8_t */ #if !defined(HAVE_UINT8_T) typedef unsigned char uint8_t; #define HAVE_UINT8_T #endif #if !defined(HAVE_UINT16_T) #error No 8-bit unsigned integer type was found. #endif /* Define intmax_t and uintmax_t if they are not already defined. */ #if !defined(HAVE_INTMAX_T) typedef int64_t intmax_t; #endif #if !defined(HAVE_UINTMAX_T) typedef uint64_t uintmax_t; #endif /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */ /* #undef ZLIB_WINAPI */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBC */ /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */ /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */ /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */ /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */ /* #undef ARCHIVE_CRYPTO_MD5_WIN */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */ /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */ /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA1_WIN */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */ /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA256_WIN */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */ /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA384_WIN */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */ /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */ /* #undef ARCHIVE_CRYPTO_SHA512_WIN */ /* Version number of bsdcpio */ #define BSDCPIO_VERSION_STRING "3.2.1" /* Version number of bsdtar */ #define BSDTAR_VERSION_STRING "3.2.1" /* Version number of bsdcat */ #define BSDCAT_VERSION_STRING "3.2.1" /* Define to 1 if you have the `acl_create_entry' function. */ /* #undef HAVE_ACL_CREATE_ENTRY */ /* Define to 1 if you have the `acl_get_link' function. */ /* #undef HAVE_ACL_GET_LINK */ /* Define to 1 if you have the `acl_get_link_np' function. */ /* #undef HAVE_ACL_GET_LINK_NP */ /* Define to 1 if you have the `acl_get_perm' function. */ /* #undef HAVE_ACL_GET_PERM */ /* Define to 1 if you have the `acl_get_perm_np' function. */ /* #undef HAVE_ACL_GET_PERM_NP */ /* Define to 1 if you have the `acl_init' function. */ /* #undef HAVE_ACL_INIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ACL_LIBACL_H */ /* Define to 1 if the system has the type `acl_permset_t'. */ /* #undef HAVE_ACL_PERMSET_T */ /* Define to 1 if you have the `acl_set_fd' function. */ /* #undef HAVE_ACL_SET_FD */ /* Define to 1 if you have the `acl_set_fd_np' function. */ /* #undef HAVE_ACL_SET_FD_NP */ /* Define to 1 if you have the `acl_set_file' function. */ /* #undef HAVE_ACL_SET_FILE */ /* True for systems with POSIX ACL support */ /* #undef HAVE_ACL_USER */ /* Define to 1 if you have the `arc4random_buf' function. */ /* #undef HAVE_ARC4RANDOM_BUF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ATTR_XATTR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BSDXML_H */ /* Define to 1 if you have the header file. */ #define HAVE_BZLIB_H 1 /* Define to 1 if you have the `chflags' function. */ /* #undef HAVE_CHFLAGS */ /* Define to 1 if you have the `chown' function. */ #define HAVE_CHOWN 1 /* Define to 1 if you have the `chroot' function. */ #define HAVE_CHROOT 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_COPYFILE_H */ /* Define to 1 if you have the `ctime_r' function. */ #define HAVE_CTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the `cygwin_conv_path' function. */ /* #undef HAVE_CYGWIN_CONV_PATH */ /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT32_MAX 1 /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT32_MIN 1 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_INT64_MAX 1 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you don't. */ #define HAVE_DECL_INT64_MIN 1 /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MAX 1 /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you don't. */ #define HAVE_DECL_INTMAX_MIN 1 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SIZE_MAX 1 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you don't. */ #define HAVE_DECL_SSIZE_MAX 1 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT32_MAX 1 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINT64_MAX 1 /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you don't. */ #define HAVE_DECL_UINTMAX_MAX 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DIRECT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you have the `dirfd' function. */ #define HAVE_DIRFD 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if nl_langinfo supports D_MD_ORDER */ /* #undef HAVE_D_MD_ORDER */ /* A possible errno value for invalid file format errors */ /* #undef HAVE_EFTYPE */ /* A possible errno value for invalid file format errors */ #define HAVE_EILSEQ 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_EXPAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_EXT2FS_EXT2_FS_H 1 /* Define to 1 if you have the `extattr_get_file' function. */ /* #undef HAVE_EXTATTR_GET_FILE */ /* Define to 1 if you have the `extattr_list_file' function. */ /* #undef HAVE_EXTATTR_LIST_FILE */ /* Define to 1 if you have the `extattr_set_fd' function. */ /* #undef HAVE_EXTATTR_SET_FD */ /* Define to 1 if you have the `extattr_set_file' function. */ /* #undef HAVE_EXTATTR_SET_FILE */ /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */ /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */ /* Define to 1 if you have the `fchdir' function. */ #define HAVE_FCHDIR 1 /* Define to 1 if you have the `fchflags' function. */ /* #undef HAVE_FCHFLAGS */ /* Define to 1 if you have the `fchmod' function. */ #define HAVE_FCHMOD 1 /* Define to 1 if you have the `fchown' function. */ #define HAVE_FCHOWN 1 /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdopendir' function. */ #define HAVE_FDOPENDIR 1 /* Define to 1 if you have the `fgetea' function. */ /* #undef HAVE_FGETEA */ /* Define to 1 if you have the `fgetxattr' function. */ /* #undef HAVE_FGETXATTR */ /* Define to 1 if you have the `flistea' function. */ /* #undef HAVE_FLISTEA */ /* Define to 1 if you have the `flistxattr' function. */ /* #undef HAVE_FLISTXATTR */ /* Define to 1 if you have the `fork' function. */ #define HAVE_FORK 1 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fsetea' function. */ /* #undef HAVE_FSETEA */ /* Define to 1 if you have the `fsetxattr' function. */ /* #undef HAVE_FSETXATTR */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `fstatat' function. */ #define HAVE_FSTATAT 1 /* Define to 1 if you have the `fstatfs' function. */ #define HAVE_FSTATFS 1 /* Define to 1 if you have the `fstatvfs' function. */ #define HAVE_FSTATVFS 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `futimens' function. */ #define HAVE_FUTIMENS 1 /* Define to 1 if you have the `futimes' function. */ #define HAVE_FUTIMES 1 /* Define to 1 if you have the `futimesat' function. */ #define HAVE_FUTIMESAT 1 /* Define to 1 if you have the `getea' function. */ /* #undef HAVE_GETEA */ /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getgrgid_r' function. */ #define HAVE_GETGRGID_R 1 /* Define to 1 if you have the `getgrnam_r' function. */ #define HAVE_GETGRNAM_R 1 /* Define to 1 if you have the `getpid' function. */ #define HAVE_GETPID 1 /* Define to 1 if you have the `getpwnam_r' function. */ #define HAVE_GETPWNAM_R 1 /* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1 /* Define to 1 if you have the `getvfsbyname' function. */ /* #undef HAVE_GETVFSBYNAME */ /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ /* Define to 1 if you have the `gmtime_r' function. */ #define HAVE_GMTIME_R 1 /* Define to 1 if you have the header file. */ #define HAVE_GRP_H 1 /* Define to 1 if you have the `iconv' function. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ICONV_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `lchflags' function. */ /* #undef HAVE_LCHFLAGS */ /* Define to 1 if you have the `lchmod' function. */ /* #undef HAVE_LCHMOD */ /* Define to 1 if you have the `lchown' function. */ #define HAVE_LCHOWN 1 /* Define to 1 if you have the `lgetea' function. */ /* #undef HAVE_LGETEA */ /* Define to 1 if you have the `lgetxattr' function. */ /* #undef HAVE_LGETXATTR */ /* Define to 1 if you have the `acl' library (-lacl). */ /* #undef HAVE_LIBACL */ /* Define to 1 if you have the `attr' library (-lattr). */ /* #undef HAVE_LIBATTR */ /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */ /* #undef HAVE_LIBBSDXML */ /* Define to 1 if you have the `bz2' library (-lbz2). */ #define HAVE_LIBBZ2 1 /* Define to 1 if you have the `charset' library (-lcharset). */ /* #undef HAVE_LIBCHARSET */ /* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `expat' library (-lexpat). */ /* #undef HAVE_LIBEXPAT */ /* Define to 1 if you have the `gcc' library (-lgcc). */ /* #undef HAVE_LIBGCC */ /* Define to 1 if you have the `lz4' library (-llz4). */ /* #undef HAVE_LIBLZ4 */ /* Define to 1 if you have the `lzma' library (-llzma). */ #define HAVE_LIBLZMA 1 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */ /* #undef HAVE_LIBLZMADEC */ /* Define to 1 if you have the `lzo2' library (-llzo2). */ /* #undef HAVE_LIBLZO2 */ /* Define to 1 if you have the `nettle' library (-lnettle). */ /* #undef HAVE_LIBNETTLE */ /* Define to 1 if you have the `pcre' library (-lpcre). */ /* #undef HAVE_LIBPCRE */ /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */ /* #undef HAVE_LIBPCREPOSIX */ /* Define to 1 if you have the `xml2' library (-lxml2). */ /* #undef HAVE_LIBXML2 */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLREADER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBXML_XMLWRITER_H */ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FIEMAP_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_MAGIC_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_TYPES_H 1 /* Define to 1 if you have the `listea' function. */ /* #undef HAVE_LISTEA */ /* Define to 1 if you have the `listxattr' function. */ /* #undef HAVE_LISTXATTR */ /* Define to 1 if you have the `llistea' function. */ /* #undef HAVE_LLISTEA */ /* Define to 1 if you have the `llistxattr' function. */ /* #undef HAVE_LLISTXATTR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LOCALCHARSET_H */ /* Define to 1 if you have the `locale_charset' function. */ /* #undef HAVE_LOCALE_CHARSET */ /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if you have the `localtime_r' function. */ #define HAVE_LOCALTIME_R 1 /* Define to 1 if the system has the type `long long int'. */ /* #undef HAVE_LONG_LONG_INT */ /* Define to 1 if you have the `lsetea' function. */ /* #undef HAVE_LSETEA */ /* Define to 1 if you have the `lsetxattr' function. */ /* #undef HAVE_LSETXATTR */ /* Define to 1 if you have the `lstat' function. */ #define HAVE_LSTAT 1 /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the `lutimes' function. */ #define HAVE_LUTIMES 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4HC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZ4_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZMADEC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LZMA_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZO1X_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LZO_LZOCONF_H */ /* Define to 1 if you have the `mbrtowc' function. */ #define HAVE_MBRTOWC 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the `mkfifo' function. */ #define HAVE_MKFIFO 1 /* Define to 1 if you have the `mknod' function. */ #define HAVE_MKNOD 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_AES_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_HMAC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_PBKDF2_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_RIPEMD160_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETTLE_SHA_H */ /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `openat' function. */ #define HAVE_OPENAT 1 /* Define to 1 if you have the header file. */ #define HAVE_PATHS_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PCREPOSIX_H */ /* Define to 1 if you have the `pipe' function. */ #define HAVE_PIPE 1 /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */ /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */ /* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1 /* Define to 1 if you have the header file. */ #define HAVE_POLL_H 1 /* Define to 1 if you have the `posix_spawnp' function. */ #define HAVE_POSIX_SPAWNP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 /* Define to 1 if you have the `readdir_r' function. */ #define HAVE_READDIR_R 1 /* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1 /* Define to 1 if you have the `readlinkat' function. */ #define HAVE_READLINKAT 1 /* Define to 1 if you have the `readpassphrase' function. */ /* #undef HAVE_READPASSPHRASE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_READPASSPHRASE_H */ /* Define to 1 if you have the header file. */ #define HAVE_REGEX_H 1 /* Define to 1 if you have the `select' function. */ #define HAVE_SELECT 1 /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `sigaction' function. */ #define HAVE_SIGACTION 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SPAWN_H 1 /* Define to 1 if you have the `statfs' function. */ #define HAVE_STATFS 1 /* Define to 1 if you have the `statvfs' function. */ #define HAVE_STATVFS 1 /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ /* #undef HAVE_STAT_EMPTY_STRING_BUG */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the `strftime' function. */ #define HAVE_STRFTIME 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if `f_namemax' is a member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */ /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */ /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */ /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */ /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 /* Define to 1 if `st_flags' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */ /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */ /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */ /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */ #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 /* Define to 1 if `st_umtime' is a member of `struct stat'. */ /* #undef HAVE_STRUCT_STAT_ST_UMTIME */ /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ #define HAVE_STRUCT_TM_TM_GMTOFF 1 /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */ /* #undef HAVE_STRUCT_TM___TM_GMTOFF */ /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_ACL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_CDEFS_H 1 /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_DIR_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_EXTATTR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_MOUNT_H */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_POLL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_UTIME_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_VFS_H 1 /* Define to 1 if you have that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_XATTR_H */ /* Define to 1 if you have the `timegm' function. */ #define HAVE_TIMEGM 1 /* Define to 1 if you have the header file. */ #define HAVE_TIME_H 1 /* Define to 1 if you have the `tzset' function. */ #define HAVE_TZSET 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1 /* Define to 1 if the system has the type `unsigned long long'. */ /* #undef HAVE_UNSIGNED_LONG_LONG */ /* Define to 1 if the system has the type `unsigned long long int'. */ /* #undef HAVE_UNSIGNED_LONG_LONG_INT */ /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the `utimensat' function. */ #define HAVE_UTIMENSAT 1 /* Define to 1 if you have the `utimes' function. */ #define HAVE_UTIMES 1 /* Define to 1 if you have the header file. */ #define HAVE_UTIME_H 1 /* Define to 1 if you have the `vfork' function. */ #define HAVE_VFORK 1 /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if the system has the type `wchar_t'. */ #define HAVE_WCHAR_T 1 /* Define to 1 if you have the `wcrtomb' function. */ #define HAVE_WCRTOMB 1 /* Define to 1 if you have the `wcscmp' function. */ #define HAVE_WCSCMP 1 /* Define to 1 if you have the `wcscpy' function. */ #define HAVE_WCSCPY 1 /* Define to 1 if you have the `wcslen' function. */ #define HAVE_WCSLEN 1 /* Define to 1 if you have the `wctomb' function. */ #define HAVE_WCTOMB 1 /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_WINCRYPT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINIOCTL_H */ /* Define to 1 if you have _CrtSetReportMode in */ /* #undef HAVE__CrtSetReportMode */ /* Define to 1 if you have the `wmemcmp' function. */ #define HAVE_WMEMCMP 1 /* Define to 1 if you have the `wmemcpy' function. */ #define HAVE_WMEMCPY 1 /* Define to 1 if you have the `wmemmove' function. */ #define HAVE_WMEMMOVE 1 /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */ #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 /* Define to 1 if you have the `_ctime64_s' function. */ /* #undef HAVE__CTIME64_S */ /* Define to 1 if you have the `_fseeki64' function. */ /* #undef HAVE__FSEEKI64 */ /* Define to 1 if you have the `_get_timezone' function. */ /* #undef HAVE__GET_TIMEZONE */ /* Define to 1 if you have the `_localtime64_s' function. */ /* #undef HAVE__LOCALTIME64_S */ /* Define to 1 if you have the `_mkgmtime64' function. */ /* #undef HAVE__MKGMTIME64 */ /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Version number of libarchive as a single integer */ #define LIBARCHIVE_VERSION_NUMBER "3002001" /* Version number of libarchive */ #define LIBARCHIVE_VERSION_STRING "3.2.1" /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ /* #undef MAJOR_IN_MKDEV */ /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #define MAJOR_IN_SYSMACROS 1 /* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* * Some platform requires a macro to use extension functions. */ #define SAFE_TO_DEFINE_EXTENSIONS 1 #ifdef SAFE_TO_DEFINE_EXTENSIONS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #endif /* SAFE_TO_DEFINE_EXTENSIONS */ /* Version number of package */ #define VERSION "3.2.1" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ /* #undef _LARGEFILE_SOURCE */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to control Windows SDK version */ #ifndef NTDDI_VERSION /* #undef NTDDI_VERSION */ #endif // NTDDI_VERSION #ifndef _WIN32_WINNT /* #undef _WIN32_WINNT */ #endif // _WIN32_WINNT #ifndef WINVER /* #undef WINVER */ #endif // WINVER /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ /* Define to `unsigned long' if does not define. */ /* #undef id_t */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long long' if does not define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to `int' if does not define. */ /* #undef ssize_t */ /* Define to `int' if doesn't define. */ /* #undef uid_t */ /* Define to `int' if does not define. */ /* #undef intptr_t */ /* Define to `unsigned int' if does not define. */ /* #undef uintptr_t */ #define ARCHIVE_SHA512_COMPILE_TEST #define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM #define PLATFORM_CONFIG_H "check_crypto_md.h" /*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * Copyright (c) 2011 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "archive_platform.h" #include "archive.h" #include "archive_digest_private.h" /* In particular, force the configure probe to break if it tries * to test a combination of OpenSSL and libmd. */ #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD) #error Cannot use both OpenSSL and libmd. #endif /* * Message digest functions for Windows platform. */ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN) /* * Initialize a Message digest. */ static int win_crypto_init(Digest_CTX *ctx, ALG_ID algId) { ctx->valid = 0; if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { if (GetLastError() != (DWORD)NTE_BAD_KEYSET) return (ARCHIVE_FAILED); if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET)) return (ARCHIVE_FAILED); } if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) { CryptReleaseContext(ctx->cryptProv, 0); return (ARCHIVE_FAILED); } ctx->valid = 1; return (ARCHIVE_OK); } /* * Update a Message digest. */ static int win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) { if (!ctx->valid) return (ARCHIVE_FAILED); CryptHashData(ctx->hash, (unsigned char *)(uintptr_t)buf, (DWORD)len, 0); return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) { DWORD siglen = (DWORD)bufsize; if (!ctx->valid) return (ARCHIVE_FAILED); CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0); CryptDestroyHash(ctx->hash); CryptReleaseContext(ctx->cryptProv, 0); ctx->valid = 0; return (ARCHIVE_OK); } #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */ /* MD5 implementations */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) static int __archive_libc_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) static int __archive_libmd_md5init(archive_md5_ctx *ctx) { MD5Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { MD5Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_md5final(archive_md5_ctx *ctx, void *md) { MD5Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) static int __archive_libsystem_md5init(archive_md5_ctx *ctx) { CC_MD5_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { CC_MD5_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md) { CC_MD5_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) static int __archive_nettle_md5init(archive_md5_ctx *ctx) { md5_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { md5_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_md5final(archive_md5_ctx *ctx, void *md) { md5_digest(ctx, MD5_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) static int __archive_openssl_md5init(archive_md5_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_md5()); return (ARCHIVE_OK); } static int __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_md5final(archive_md5_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_MD5_WIN) static int __archive_windowsapi_md5init(archive_md5_ctx *ctx) { return (win_crypto_init(ctx, CALG_MD5)); } static int __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md) { return (win_crypto_Final(md, 16, ctx)); } #else static int __archive_stub_md5init(archive_md5_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_md5final(archive_md5_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* RIPEMD160 implementations */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) static int __archive_libc_ripemd160init(archive_rmd160_ctx *ctx) { RMD160Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RMD160Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RMD160Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) static int __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx) { RIPEMD160_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { RIPEMD160_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md) { RIPEMD160_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) static int __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx) { ripemd160_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { ripemd160_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md) { ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) static int __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_ripemd160()); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #else static int __archive_stub_ripemd160init(archive_rmd160_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA1 implementations */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) static int __archive_libc_sha1init(archive_sha1_ctx *ctx) { SHA1Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) static int __archive_libmd_sha1init(archive_sha1_ctx *ctx) { SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md) { SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) static int __archive_libsystem_sha1init(archive_sha1_ctx *ctx) { CC_SHA1_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { CC_SHA1_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md) { CC_SHA1_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) static int __archive_nettle_sha1init(archive_sha1_ctx *ctx) { sha1_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { sha1_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md) { sha1_digest(ctx, SHA1_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) static int __archive_openssl_sha1init(archive_sha1_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha1()); return (ARCHIVE_OK); } static int __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md) { /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so * this is meant to cope with that. Real fix is probably to fix * archive_write_set_format_xar.c */ if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) static int __archive_windowsapi_sha1init(archive_sha1_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA1)); } static int __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md) { return (win_crypto_Final(md, 20, ctx)); } #else static int __archive_stub_sha1init(archive_sha1_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA256 implementations */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) static int __archive_libc_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) static int __archive_libc2_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) static int __archive_libc3_sha256init(archive_sha256_ctx *ctx) { SHA256Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) static int __archive_libmd_sha256init(archive_sha256_ctx *ctx) { SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md) { SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) static int __archive_libsystem_sha256init(archive_sha256_ctx *ctx) { CC_SHA256_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { CC_SHA256_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md) { CC_SHA256_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) static int __archive_nettle_sha256init(archive_sha256_ctx *ctx) { sha256_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { sha256_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md) { sha256_digest(ctx, SHA256_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) static int __archive_openssl_sha256init(archive_sha256_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha256()); return (ARCHIVE_OK); } static int __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) static int __archive_windowsapi_sha256init(archive_sha256_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_256)); } static int __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md) { return (win_crypto_Final(md, 32, ctx)); } #else static int __archive_stub_sha256init(archive_sha256_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA384 implementations */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) static int __archive_libc_sha384init(archive_sha384_ctx *ctx) { SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) static int __archive_libc2_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) static int __archive_libc3_sha384init(archive_sha384_ctx *ctx) { SHA384Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { SHA384Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md) { SHA384Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) static int __archive_libsystem_sha384init(archive_sha384_ctx *ctx) { CC_SHA384_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { CC_SHA384_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md) { CC_SHA384_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) static int __archive_nettle_sha384init(archive_sha384_ctx *ctx) { sha384_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { sha384_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md) { sha384_digest(ctx, SHA384_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) static int __archive_openssl_sha384init(archive_sha384_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha384()); return (ARCHIVE_OK); } static int __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) static int __archive_windowsapi_sha384init(archive_sha384_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_384)); } static int __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md) { return (win_crypto_Final(md, 48, ctx)); } #else static int __archive_stub_sha384init(archive_sha384_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* SHA512 implementations */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) static int __archive_libc_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) static int __archive_libc2_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) static int __archive_libc3_sha512init(archive_sha512_ctx *ctx) { SHA512Init(ctx); return (ARCHIVE_OK); } static int __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) static int __archive_libmd_sha512init(archive_sha512_ctx *ctx) { SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md) { SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) static int __archive_libsystem_sha512init(archive_sha512_ctx *ctx) { CC_SHA512_Init(ctx); return (ARCHIVE_OK); } static int __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { CC_SHA512_Update(ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md) { CC_SHA512_Final(md, ctx); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) static int __archive_nettle_sha512init(archive_sha512_ctx *ctx) { sha512_init(ctx); return (ARCHIVE_OK); } static int __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { sha512_update(ctx, insize, indata); return (ARCHIVE_OK); } static int __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md) { sha512_digest(ctx, SHA512_DIGEST_SIZE, md); return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) static int __archive_openssl_sha512init(archive_sha512_ctx *ctx) { if ((*ctx = EVP_MD_CTX_new()) == NULL) return (ARCHIVE_FAILED); EVP_DigestInit(*ctx, EVP_sha512()); return (ARCHIVE_OK); } static int __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { EVP_DigestUpdate(*ctx, indata, insize); return (ARCHIVE_OK); } static int __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md) { if (*ctx) { EVP_DigestFinal(*ctx, md, NULL); EVP_MD_CTX_free(*ctx); *ctx = NULL; } return (ARCHIVE_OK); } #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) static int __archive_windowsapi_sha512init(archive_sha512_ctx *ctx) { return (win_crypto_init(ctx, CALG_SHA_512)); } static int __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { return (win_crypto_Update(ctx, indata, insize)); } static int __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md) { return (win_crypto_Final(md, 64, ctx)); } #else static int __archive_stub_sha512init(archive_sha512_ctx *ctx) { (void)ctx; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata, size_t insize) { (void)ctx; /* UNUSED */ (void)indata; /* UNUSED */ (void)insize; /* UNUSED */ return (ARCHIVE_FAILED); } static int __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md) { (void)ctx; /* UNUSED */ (void)md; /* UNUSED */ return (ARCHIVE_FAILED); } #endif /* NOTE: Message Digest functions are set based on availability and by the * following order of preference. * 1. libc * 2. libc2 * 3. libc3 * 4. libSystem * 5. Nettle * 6. OpenSSL * 7. libmd * 8. Windows API */ const struct archive_digest __archive_digest = { /* MD5 */ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) &__archive_libc_md5init, &__archive_libc_md5update, &__archive_libc_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD) &__archive_libmd_md5init, &__archive_libmd_md5update, &__archive_libmd_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) &__archive_libsystem_md5init, &__archive_libsystem_md5update, &__archive_libsystem_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE) &__archive_nettle_md5init, &__archive_nettle_md5update, &__archive_nettle_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL) &__archive_openssl_md5init, &__archive_openssl_md5update, &__archive_openssl_md5final, #elif defined(ARCHIVE_CRYPTO_MD5_WIN) &__archive_windowsapi_md5init, &__archive_windowsapi_md5update, &__archive_windowsapi_md5final, #elif !defined(ARCHIVE_MD5_COMPILE_TEST) &__archive_stub_md5init, &__archive_stub_md5update, &__archive_stub_md5final, #endif /* RIPEMD160 */ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) &__archive_libc_ripemd160init, &__archive_libc_ripemd160update, &__archive_libc_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD) &__archive_libmd_ripemd160init, &__archive_libmd_ripemd160update, &__archive_libmd_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE) &__archive_nettle_ripemd160init, &__archive_nettle_ripemd160update, &__archive_nettle_ripemd160final, #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) &__archive_openssl_ripemd160init, &__archive_openssl_ripemd160update, &__archive_openssl_ripemd160final, #elif !defined(ARCHIVE_RMD160_COMPILE_TEST) &__archive_stub_ripemd160init, &__archive_stub_ripemd160update, &__archive_stub_ripemd160final, #endif /* SHA1 */ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) &__archive_libc_sha1init, &__archive_libc_sha1update, &__archive_libc_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD) &__archive_libmd_sha1init, &__archive_libmd_sha1update, &__archive_libmd_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) &__archive_libsystem_sha1init, &__archive_libsystem_sha1update, &__archive_libsystem_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE) &__archive_nettle_sha1init, &__archive_nettle_sha1update, &__archive_nettle_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) &__archive_openssl_sha1init, &__archive_openssl_sha1update, &__archive_openssl_sha1final, #elif defined(ARCHIVE_CRYPTO_SHA1_WIN) &__archive_windowsapi_sha1init, &__archive_windowsapi_sha1update, &__archive_windowsapi_sha1final, #elif !defined(ARCHIVE_SHA1_COMPILE_TEST) &__archive_stub_sha1init, &__archive_stub_sha1update, &__archive_stub_sha1final, #endif /* SHA256 */ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) &__archive_libc_sha256init, &__archive_libc_sha256update, &__archive_libc_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2) &__archive_libc2_sha256init, &__archive_libc2_sha256update, &__archive_libc2_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3) &__archive_libc3_sha256init, &__archive_libc3_sha256update, &__archive_libc3_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD) &__archive_libmd_sha256init, &__archive_libmd_sha256update, &__archive_libmd_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) &__archive_libsystem_sha256init, &__archive_libsystem_sha256update, &__archive_libsystem_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE) &__archive_nettle_sha256init, &__archive_nettle_sha256update, &__archive_nettle_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) &__archive_openssl_sha256init, &__archive_openssl_sha256update, &__archive_openssl_sha256final, #elif defined(ARCHIVE_CRYPTO_SHA256_WIN) &__archive_windowsapi_sha256init, &__archive_windowsapi_sha256update, &__archive_windowsapi_sha256final, #elif !defined(ARCHIVE_SHA256_COMPILE_TEST) &__archive_stub_sha256init, &__archive_stub_sha256update, &__archive_stub_sha256final, #endif /* SHA384 */ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) &__archive_libc_sha384init, &__archive_libc_sha384update, &__archive_libc_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2) &__archive_libc2_sha384init, &__archive_libc2_sha384update, &__archive_libc2_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3) &__archive_libc3_sha384init, &__archive_libc3_sha384update, &__archive_libc3_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) &__archive_libsystem_sha384init, &__archive_libsystem_sha384update, &__archive_libsystem_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE) &__archive_nettle_sha384init, &__archive_nettle_sha384update, &__archive_nettle_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) &__archive_openssl_sha384init, &__archive_openssl_sha384update, &__archive_openssl_sha384final, #elif defined(ARCHIVE_CRYPTO_SHA384_WIN) &__archive_windowsapi_sha384init, &__archive_windowsapi_sha384update, &__archive_windowsapi_sha384final, #elif !defined(ARCHIVE_SHA384_COMPILE_TEST) &__archive_stub_sha384init, &__archive_stub_sha384update, &__archive_stub_sha384final, #endif /* SHA512 */ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) &__archive_libc_sha512init, &__archive_libc_sha512update, &__archive_libc_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2) &__archive_libc2_sha512init, &__archive_libc2_sha512update, &__archive_libc2_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3) &__archive_libc3_sha512init, &__archive_libc3_sha512update, &__archive_libc3_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD) &__archive_libmd_sha512init, &__archive_libmd_sha512update, &__archive_libmd_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) &__archive_libsystem_sha512init, &__archive_libsystem_sha512update, &__archive_libsystem_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE) &__archive_nettle_sha512init, &__archive_nettle_sha512update, &__archive_nettle_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) &__archive_openssl_sha512init, &__archive_openssl_sha512update, &__archive_openssl_sha512final #elif defined(ARCHIVE_CRYPTO_SHA512_WIN) &__archive_windowsapi_sha512init, &__archive_windowsapi_sha512update, &__archive_windowsapi_sha512final #elif !defined(ARCHIVE_SHA512_COMPILE_TEST) &__archive_stub_sha512init, &__archive_stub_sha512update, &__archive_stub_sha512final #endif }; int main(int argc, char **argv) { archive_sha512_ctx ctx; archive_sha512_init(&ctx); archive_sha512_update(&ctx, *argv, argc); archive_sha512_final(&ctx, NULL); return 0; } Determining if the function getpagesize exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9fc4d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9fc4d.dir/build.make CMakeFiles/cmTC_9fc4d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9fc4d.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpagesize -o CMakeFiles/cmTC_9fc4d.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_9fc4d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9fc4d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=getpagesize -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9fc4d.dir/CheckFunctionExists.c.o -o cmTC_9fc4d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function bcopy exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_9fe14/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_9fe14.dir/build.make CMakeFiles/cmTC_9fe14.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_9fe14.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=bcopy -o CMakeFiles/cmTC_9fe14.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_9fe14 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9fe14.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=bcopy -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_9fe14.dir/CheckFunctionExists.c.o -o cmTC_9fe14 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function mmap exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_7a51f/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_7a51f.dir/build.make CMakeFiles/cmTC_7a51f.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7a51f.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mmap -o CMakeFiles/cmTC_7a51f.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_7a51f /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7a51f.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=mmap -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_7a51f.dir/CheckFunctionExists.c.o -o cmTC_7a51f -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file pthread.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_be8f5/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_be8f5.dir/build.make CMakeFiles/cmTC_be8f5.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_be8f5.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -o CMakeFiles/cmTC_be8f5.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_be8f5 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_be8f5.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_be8f5.dir/CheckIncludeFile.c.o -o cmTC_be8f5 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function pthread_create exists in the pthread passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_eed6b/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_eed6b.dir/build.make CMakeFiles/cmTC_eed6b.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_eed6b.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_eed6b.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_eed6b /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eed6b.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -w -DCHECK_FUNCTION_EXISTS=pthread_create -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_eed6b.dir/CheckFunctionExists.c.o -o cmTC_eed6b -rdynamic -lpthread gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function wsyncup exists in the /usr/lib64/libcurses.so passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_fd7ea/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_fd7ea.dir/build.make CMakeFiles/cmTC_fd7ea.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fd7ea.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DCHECK_FUNCTION_EXISTS=wsyncup -o CMakeFiles/cmTC_fd7ea.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_fd7ea /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fd7ea.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DCHECK_FUNCTION_EXISTS=wsyncup -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_fd7ea.dir/CheckFunctionExists.c.o -o cmTC_fd7ea -rdynamic -lcurses gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the function cbreak exists in the /usr/lib64/libncurses.so passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_e9b45/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_e9b45.dir/build.make CMakeFiles/cmTC_e9b45.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e9b45.dir/CheckFunctionExists.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DCHECK_FUNCTION_EXISTS=cbreak -o CMakeFiles/cmTC_e9b45.dir/CheckFunctionExists.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Modules/CheckFunctionExists.c Linking C executable cmTC_e9b45 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e9b45.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -DCHECK_FUNCTION_EXISTS=cbreak -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_e9b45.dir/CheckFunctionExists.c.o -o cmTC_e9b45 -rdynamic -lncurses gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Determining if the include file elf.h exists passed with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_f117d/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_f117d.dir/build.make CMakeFiles/cmTC_f117d.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f117d.dir/CheckIncludeFile.c.o /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -o CMakeFiles/cmTC_f117d.dir/CheckIncludeFile.c.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/CheckIncludeFile.c Linking C executable cmTC_f117d /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f117d.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/gcc -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_f117d.dir/CheckIncludeFile.c.o -o cmTC_f117d -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Looking for a Fortran compiler passed with the following output: -- The Fortran compiler identification is GNU 8.2.0 -- Check for working Fortran compiler: /usr/bin/gfortran -- Check for working Fortran compiler: /usr/bin/gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/gfortran supports Fortran 90 -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes -- Configuring done -- Generating done -- Build files have been written to: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Tests/CMakeFiles/CheckFortran Performing C++ SOURCE FILE Test run_pic_test succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_11698/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_11698.dir/build.make CMakeFiles/cmTC_11698.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_11698.dir/src.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -Drun_pic_test -fPIE -o CMakeFiles/cmTC_11698.dir/src.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTC_11698 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_11698.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -Drun_pic_test -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_11698.dir/src.cxx.o -o cmTC_11698 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test run_inlines_hidden_test succeeded with the following output: Change Dir: /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ac6f0/fast" gmake[4]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake -f CMakeFiles/cmTC_ac6f0.dir/build.make CMakeFiles/cmTC_ac6f0.dir/build gmake[5]: Entering directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_ac6f0.dir/src.cxx.o /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -Drun_inlines_hidden_test -fvisibility-inlines-hidden -o CMakeFiles/cmTC_ac6f0.dir/src.cxx.o -c /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTC_ac6f0 /mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ac6f0.dir/link.txt --verbose=1 /mnt/gold/openwrt/lede/staging_dir/host/bin/g++ -O2 -I/mnt/gold/openwrt/lede/staging_dir/host/include -I/mnt/gold/openwrt/lede/staging_dir/host/usr/include -Drun_inlines_hidden_test -L/mnt/gold/openwrt/lede/staging_dir/host/lib -L/mnt/gold/openwrt/lede/staging_dir/host/usr/lib CMakeFiles/cmTC_ac6f0.dir/src.cxx.o -o cmTC_ac6f0 -rdynamic gmake[5]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' gmake[4]: Leaving directory '/mnt/gold/openwrt/lede/build_dir/host/cmake-3.7.1/CMakeFiles/CMakeTmp' Source file was: int main() { return 0; }