This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libarchive configure 3.3.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ ../libarchive-3.3.2/configure --build=x86_64-linux --host=x86_64-linux --target=x86_64-linux --prefix=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr --exec_prefix=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr --bindir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/bin --sbindir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/sbin --libexecdir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/libexec --datadir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share --sysconfdir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/etc --sharedstatedir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/com --localstatedir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/var --libdir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib --includedir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include --oldincludedir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include --infodir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/info --mandir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/man --disable-silent-rules --disable-dependency-tracking --enable-largefile --disable-static --disable-acl --with-bz2lib --without-expat --without-xml2 --without-lz4 --with-lzo2 --without-nettle --without-openssl --disable-xattr --with-lzma --with-zlib ## --------- ## ## Platform. ## ## --------- ## hostname = ip-172-30-4-23 uname -m = x86_64 uname -r = 4.4.0-1075-aws uname -s = Linux uname -v = #85-Ubuntu SMP Thu Jan 17 17:15:12 UTC 2019 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/ubuntu/oblac-box-OS/workspace/poky/scripts/native-intercept PATH: /data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/usr/bin PATH: /home/ubuntu/oblac-box-OS/workspace/poky/scripts PATH: /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/bin/x86_64-linux PATH: /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/bin PATH: /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/sbin PATH: /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/bin PATH: /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/sbin PATH: /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/bin PATH: /home/ubuntu/oblac-box-OS/workspace/poky/bitbake/bin PATH: /data/oblac-provisioner/tmp/hosttools ## ----------- ## ## Core tests. ## ## ----------- ## configure:2672: loading site script /home/ubuntu/oblac-box-OS/workspace/oblac-provisioner/../poky/meta/site/endian-little | ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} | ac_cv_c_bigendian=${ac_cv_c_bigendian=no} | | # libnet | ac_cv_libnet_endianess=${ac_cv_libnet_endianess=lil} | | # libmemcached | ac_cv_c_endian=little configure:2672: loading site script /home/ubuntu/oblac-box-OS/workspace/oblac-provisioner/../poky/meta/site/common-linux | # gettext - these add sleep delays otherwise | gl_cv_func_sleep_works=${gl_cv_func_sleep_works=yes} | gl_cv_header_working_fcntl_h=${gl_cv_header_working_fcntl_h=yes} | | # apr | ac_cv_file__dev_zero=${ac_cv_file__dev_zero=yes} | ac_cv_sizeof_pid_t=${ac_cv_sizeof_pid_t=4} | ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} | apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} | apr_cv_process_shared_works=${apr_cv_process_shared_works=no} | | # samba | samba_cv_HAVE_IFACE_AIX=${samba_cv_HAVE_IFACE_AIX=no} | samba_cv_HAVE_IFACE_IFCONF=${samba_cv_HAVE_IFACE_IFCONF=yes} | samba_cv_HAVE_IFACE_IFREQ=${samba_cv_HAVE_IFACE_IFREQ=yes} | samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no} | | # db | db_cv_path_ar=${db_cv_path_ar=/usr/bin/ar} | db_cv_path_chmod=${db_cv_path_chmod=/bin/chmod} | db_cv_path_cp=${db_cv_path_cp=/bin/cp} | db_cv_path_ln=${db_cv_path_ln=/bin/ln} | db_cv_path_mkdir=${db_cv_path_mkdir=/bin/mkdir} | db_cv_path_ranlib=${db_cv_path_ranlib=/usr/bin/ranlib} | db_cv_path_rm=${db_cv_path_rm=/bin/rm} | db_cv_path_sh=${db_cv_path_sh=/bin/sh} | db_cv_path_strip=${db_cv_path_strip=/usr/bin/strip} | | # bash | bash_cv_have_mbstate_t=${bash_cv_have_mbstate_t=yes} | bash_cv_must_reinstall_sighandlers=${bash_cv_must_reinstall_sighandlers=no} | bash_cv_func_strcoll_broken=${bash_cv_func_strcoll_broken=no} | bash_cv_dup2_broken=${bash_cv_dup2_broken=no} | bash_cv_opendir_not_robust=${bash_cv_opendir_not_robust=no} | bash_cv_type_rlimit=${bash_cv_type_rlimit=rlim_t} | bash_cv_getenv_redef=${bash_cv_getenv_redef=yes} | bash_cv_ulimit_maxfds=${bash_cv_ulimit_maxfds=yes} | bash_cv_getcwd_calls_popen=${bash_cv_getcwd_calls_popen=no} | bash_cv_printf_a_format=${bash_cv_printf_a_format=yes} | bash_cv_pgrp_pipe=${bash_cv_pgrp_pipe=no} | bash_cv_job_control_missing=${bash_cv_job_control_missing=present} | bash_cv_sys_named_pipes=${bash_cv_sys_named_pipes=present} | bash_cv_unusable_rtsigs=${bash_cv_unusable_rtsigs=no} | | # ccache | hw_cv_func_snprintf_c99=${hw_cv_func_snprintf_c99=yes} | hw_cv_func_vsnprintf_c99=${hw_cv_func_vsnprintf_c99=yes} | | # coreutils | gl_cv_func_fstatat_zero_flag=${gl_cv_func_fstatat_zero_flag=yes} | gl_cv_have_proc_uptime=${gl_cv_have_proc_uptime=yes} | | # mysql | ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls=yes} | ac_cv_conv_longlong_to_float=${ac_cv_conv_longlong_to_float=yes} | | # TCL | tcl_cv_api_serial=${tcl_cv_api_serial=termios} | | # python | ac_cv_have_long_long_format=yes | | # apache | ac_cv_o_nonblock_inherited=${ac_cv_o_nonblock_inherited=no} | | # rsync | rsync_cv_HAVE_C99_VSNPRINTF=${rsync_cv_HAVE_C99_VSNPRINTF=yes} configure:2672: loading site script /home/ubuntu/oblac-box-OS/workspace/oblac-provisioner/../poky/meta/site/common-glibc | # general | ac_cv_have_decl_sys_siglist=${ac_cv_have_decl_sys_siglist=yes} | ac_cv_func_realloc_works=${ac_cv_func_realloc_works=yes} | ac_cv_func_realloc_0_nonnull=${ac_cv_func_realloc_0_nonnull=yes} | ac_cv_func_malloc_works=${ac_cv_func_malloc_works=yes} | ac_cv_func_malloc_0_nonnull=${ac_cv_func_malloc_0_nonnull=yes} | ac_cv_func_memcmp_working=${ac_cv_func_memcmp_working=yes} | ac_cv_func_getpgrp_void=yes | ac_cv_func_setpgrp_void=yes | ac_cv_func_setgrent_void=yes | ac_cv_func_getgrgid_r=${ac_cv_func_getgrgid_r=yes} | ac_cv_func_getpwuid_r=${ac_cv_func_getpwuid_r=yes} | ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=yes} | ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes} | ac_cv_type_uid_t={ac_cv_type_uid_t=yes} | ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes} | | # bash | bash_cv_under_sys_siglist=${bash_cv_under_sys_siglist=yes} | bash_cv_sys_siglist=${bash_cv_sys_siglist=yes} | bash_cv_getcwd_malloc=${bash_cv_getcwd_malloc=yes} | | # clamav | clamav_av_func_working_snprintf_long=${clamav_av_func_working_snprintf_long=yes} | clamav_av_have_in_port_t=${clamav_av_have_in_port_t=yes} | clamav_av_have_in_addr_t=${clamav_av_have_in_addr_t=yes} | ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes} | | # coreutils | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} | | # glib | glib_cv_strlcpy=${glib_cv_strlcpy=no} | ac_cv_func_printf_unix98=${ac_cv_func_printf_unix98=yes} | ac_cv_func_snprintf_c99=${ac_cv_func_snprintf_c99=yes} | ac_cv_func_vsnprintf_c99=${ac_cv_func_vsnprintf_c99=yes} | glib_cv_compliant_posix_memalign=${glib_cv_compliant_posix_memalign=1} | glib_cv_long_long_format=${glib_cv_long_long_format=ll} | # glib-1.x requires this and pkgconfig-native / pkgconfig-nativesdk use | # that to avoid a dependency loop. | glib_cv___va_copy=${glib_cv___va_copy=yes} | glib_cv_va_copy=${glib_cv_va_copy=yes} | glib_cv_have_qsort_r=${glib_cv_have_qsort_r=yes} | | #dbus-glib | ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} | | # gnucash | am_cv_scanf_lld=${am_cv_scanf_lld=yes} | | # guile | ac_cv_func_pthread_attr_getstack=${ac_cv_func_pthread_attr_getstack=yes} | | #gcc-zlib | ac_cv_func_getpagesize=${ac_cv_func_getpagesize=yes} | ac_cv_func_memcpy=${ac_cv_func_memcpy=yes} | ac_cv_func_strerror=${ac_cv_func_strerror=yes} | | # squid | ac_cv_af_unix_large_dgram=${ac_cv_af_unix_large_dgram=yes} | ac_cv_func_setresuid=${ac_cv_func_setresuid=yes} | ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} | ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} | ac_cv_epoll_works=${ac_cv_epoll_works=yes} | | ac_cv_check_sjlj=ssjlj | | # m4 | gt_cv_locale_fr=${gt_cv_locale_fr=fr_FR} | gl_cv_func_btowc_eof=${gl_cv_func_btowc_eof=yes} | gl_cv_func_wcrtomb_retval=${gl_cv_func_wcrtomb_retval=yes} | gl_cv_func_wctob_works=${gl_cv_func_wctob_works=yes} | gl_cv_func_mbrtowc_incomplete_state=${gl_cv_func_mbrtowc_incomplete_state=yes} | gl_cv_func_mbrtowc_sanitycheck=${gl_cv_func_mbrtowc_sanitycheck=yes} | gl_cv_func_mbrtowc_null_arg=${gl_cv_func_mbrtowc_null_arg=yes} | gl_cv_func_mbrtowc_retval=${gl_cv_func_mbrtowc_retval=yes} | gl_cv_func_mbrtowc_nul_retval=${gl_cv_func_mbrtowc_nul_retval=yes} | | # va_copy and _va_copy | ac_cv_va_copy=${ac_cv_va_copy=yes} | ac_cv___va_copy=${ac_cv___va_copy=yes} | ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} | ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} | | # Xorg | xorg_cv_malloc0_returns_null=${xorg_cv_malloc0_returns_null=yes} configure:2672: loading site script /home/ubuntu/oblac-box-OS/workspace/oblac-provisioner/../poky/meta/site/x86_64-linux | # general | ac_cv_va_val_copy=${ac_cv_va_val_copy=no} | ac_cv_func_lstat_dereferences_slashed_symlink=${ac_cv_func_lstat_dereferences_slashed_symlink=yes} | ac_cv_func_lstat_empty_string_bug=${ac_cv_func_lstat_empty_string_bug=no} | ac_cv_func_posix_getpwnam_r=${ac_cv_func_posix_getpwnam_r=yes} | ac_cv_func_setvbuf_reversed=${ac_cv_func_setvbuf_reversed=no} | ac_cv_func_stat_empty_string_bug=${ac_cv_func_stat_empty_string_bug=no} | ac_cv_func_stat_ignores_trailing_slash=${ac_cv_func_stat_ignores_trailing_slash=no} | ac_libnet_have_packet_socket=${ac_libnet_have_packet_socket=yes} | ac_cv_linux_vers=${ac_cv_linux_vers=2} | ac_cv_need_trio=${ac_cv_need_trio=no} | ac_cv_sizeof_char=${ac_cv_sizeof_char=1} | ac_cv_sizeof_int=${ac_cv_sizeof_int=4} | ac_cv_sizeof_unsigned_int=${ac_cv_sizeof_unsigned_int=4} | ac_cv_sizeof___int64=${ac_cv_sizeof___int64=0} | ac_cv_sizeof_long=${ac_cv_sizeof_long=8} | ac_cv_sizeof_unsigned_long=${ac_cv_sizeof_unsigned_long=8} | ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double=16} | ac_cv_sizeof_long_int=${ac_cv_sizeof_long_int=8} | ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long=8} | ac_cv_sizeof_short=${ac_cv_sizeof_short=2} | ac_cv_sizeof_unsigned_short=${ac_cv_sizeof_unsigned_short=2} | ac_cv_sizeof_short_int=${ac_cv_sizeof_short_int=2} | ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t=8} | ac_cv_sizeof_uid_t=${ac_cv_sizeof_uid_t=4} | ac_cv_sizeof_gid_t=${ac_cv_sizeof_gid_t=4} | ac_cv_sizeof_dev_t=${ac_cv_sizeof_dev_t=8} | ac_cv_sizeof_void_p=${ac_cv_sizeof_void_p=8} | ac_cv_strerror_r_SUSv3=${ac_cv_strerror_r_SUSv3=no} | db_cv_alignp_t=${db_cv_alignp_t='unsigned long long'} | db_cv_align_t=${db_cv_align_t='unsigned long long'} | db_cv_fcntl_f_setfd=${db_cv_fcntl_f_setfd=yes} | db_cv_sprintf_count=${db_cv_sprintf_count=yes} | | # glib | glib_cv_hasinline=${glib_cv_hasinline=yes} | glib_cv_has__inline=${glib_cv_has__inline=yes} | glib_cv_has__inline__=${glib_cv_has__inline__=yes} | glib_cv_long_long_format=${glib_cv_long_long_format=ll} | glib_cv_rtldglobal_broken=${glib_cv_rtldglobal_broken=yes} | glib_cv_sane_realloc=${glib_cv_sane_realloc=yes} | glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=40} | glib_cv_sizeof_intmax_t=${glib_cv_sizeof_intmax_t=8} | glib_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=8} | glib_cv_sizeof_size_t=${glib_cv_sizeof_size_t=8} | glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=8} | glib_cv_stack_grows=${glib_cv_stack_grows=no} | glib_cv_sys_pthread_cond_timedwait_posix=${glib_cv_sys_pthread_cond_timedwait_posix=yes} | glib_cv_sys_pthread_getspecific_posix=${glib_cv_sys_pthread_getspecific_posix=yes} | glib_cv_sys_pthread_mutex_trylock_posix=${glib_cv_sys_pthread_mutex_trylock_posix=yes} | glib_cv_uscore=${glib_cv_uscore=no} | glib_cv_va_val_copy=${glib_cv_va_val_copy=no} | ac_cv_alignof_guint32=4 | ac_cv_alignof_guint64=8 | ac_cv_alignof_unsigned_long=8 | | nano_cv_func_regexec_segv_emptystr=${nano_cv_func_regexec_segv_emptystr=no} | samba_cv_HAVE_VA_COPY=${samba_cv_HAVE_VA_COPY=yes} | screen_cv_sys_bcopy_overlap=${screen_cv_sys_bcopy_overlap=no} | screen_cv_sys_fifo_broken_impl=${screen_cv_sys_fifo_broken_impl=yes} | screen_cv_sys_fifo_usable=${screen_cv_sys_fifo_usable=yes} | screen_cv_sys_memcpy_overlap=${screen_cv_sys_memcpy_overlap=no} | screen_cv_sys_memmove_overlap=${screen_cv_sys_memmove_overlap=no} | screen_cv_sys_select_broken_retval=${screen_cv_sys_select_broken_retval=no} | screen_cv_sys_sockets_nofs=${screen_cv_sys_sockets_nofs=no} | screen_cv_sys_sockets_usable=${screen_cv_sys_sockets_usable=yes} | screen_cv_sys_terminfo_used=${screen_cv_sys_terminfo_used=yes} | utils_cv_sys_open_max=${utils_cv_sys_open_max=1015} | | # gettext | am_cv_func_working_getline=${am_cv_func_working_getline=yes} | | #gcc | ac_cv_lib_m_sin=${ac_cv_lib_m_sin=yes} | | #orbit | libIDL_cv_long_long_format=ll | | # bash | bash_cv_func_sigsetjmp=${bash_cv_func_sigsetjmp=present} | | # ORBit2 | ac_cv_alignof_CORBA_boolean=1 | ac_cv_alignof_CORBA_char=1 | ac_cv_alignof_CORBA_double=8 | ac_cv_alignof_CORBA_float=4 | ac_cv_alignof_CORBA_long=4 | ac_cv_alignof_CORBA_long_double=8 | ac_cv_alignof_CORBA_long_long=8 | ac_cv_alignof_CORBA_octet=1 | ac_cv_alignof_CORBA_pointer=8 | ac_cv_alignof_CORBA_short=2 | ac_cv_alignof_CORBA_struct=1 | ac_cv_alignof_CORBA_wchar=2 | | lf_cv_sane_realloc=yes | as_cv_unaligned_access=${as_cv_unaligned_access=yes} | | #unfs3 | nfsd_cv_broken_setfsuid=${nfsd_cv_broken_setfsuid=0} | nfsd_cv_func_statfs=${nfsd_cv_func_statfs=statfs2_bsize} | nfsd_cv_bsd_signals=${nfsd_cv_bsd_signals=yes} | | #apr | apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} | | # lftp | lftp_cv_va_val_copy=${lftp_cv_va_val_copy=no} | | # slrn | slrn_cv_va_val_copy=${slrn_cv_va_val_copy=no} | | # grub | ac_cv_func___ashldi3=no | ac_cv_func___ashrdi3=no | ac_cv_func___bswapdi2=no | ac_cv_func___bswapsi2=no | ac_cv_func___lshrdi3=no | ac_cv_func___trampoline_setup=no | ac_cv_func___ucmpdi2=no | ac_cv_func__restgpr_14_x=no | | # cvs | cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes} | | # at-spi2-core | ac_cv_alignof_char=1 | ac_cv_alignof_dbind_pointer=8 | ac_cv_alignof_dbind_struct=1 | ac_cv_alignof_dbus_bool_t=4 | ac_cv_alignof_dbus_int16_t=2 | ac_cv_alignof_dbus_int32_t=4 | ac_cv_alignof_dbus_int64_t=8 | ac_cv_alignof_double=8 configure:2672: loading site script /home/ubuntu/oblac-box-OS/workspace/oblac-provisioner/../poky/meta/site/common | # libelf | mr_cv_target_elf=${mr_cv_target_elf=yes} | | # Normally kernels have /dev/random enabled | ac_cv_file__dev_random=${ac_cv_file__dev_random=yes} | | # Avoid sudo to assume void for unsetenv in cross environment, or else it conflicts with | # target stdlib.h prototype which follows POSIX compiliance. Mark for upstream. | sudo_cv_func_unsetenv_void=no | | # shadow dir info, to avoid searching build system | shadow_cv_maildir=${localstatedir}/spool/mail | shadow_cv_mailfile=Mailbox | shadow_cv_utmpdir=${localstatedir}/run | shadow_cv_logdir=${localstatedir}/log | shadow_cv_passwd_dir=${bindir} | | # python: deactivate a runtime check for ipv6-support in python >=2.7.1 that fails when cross-compiling | ac_cv_buggy_getaddrinfo=no | | ac_cv_path_SED=${ac_cv_path_SED=sed} configure:2672: loading site script /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/x86_64-linux_config_site.d/ncurses_config | ac_cv_header_X=${ac_cv_header_X=no} | ac_cv_header__CC=${ac_cv_header__CC=no} | ac_cv_header__CFLAGS=${ac_cv_header__CFLAGS=no} | ac_cv_header__CPPFLAGS=${ac_cv_header__CPPFLAGS=no} | ac_cv_header___5=${ac_cv_header___5=no} | ac_cv_header__c=${ac_cv_header__c=no} | ac_cv_header_conftest__ac_ext=${ac_cv_header_conftest__ac_ext=no} | ac_cv_header_curses_h=${ac_cv_header_curses_h=yes} | ac_cv_header_inttypes_h=${ac_cv_header_inttypes_h=yes} | ac_cv_header_memory_h=${ac_cv_header_memory_h=yes} | ac_cv_header_ncurses_curses_h=${ac_cv_header_ncurses_curses_h=yes} | ac_cv_header_ncurses_h=${ac_cv_header_ncurses_h=yes} | ac_cv_header_ncurses_termcap_h=${ac_cv_header_ncurses_termcap_h=yes} | ac_cv_header_stdc=${ac_cv_header_stdc=yes} | ac_cv_header_stdint_h=${ac_cv_header_stdint_h=yes} | ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h=yes} | ac_cv_header_string_h=${ac_cv_header_string_h=yes} | ac_cv_header_strings_h=${ac_cv_header_strings_h=yes} | ac_cv_header_sys_stat_h=${ac_cv_header_sys_stat_h=yes} | ac_cv_header_sys_types_h=${ac_cv_header_sys_types_h=yes} | ac_cv_header_unistd_h=${ac_cv_header_unistd_h=yes} configure:2820: checking for a BSD-compatible install configure:2888: result: /data/oblac-provisioner/tmp/hosttools/install -c configure:2899: checking whether build environment is sane configure:2914: result: yes configure:3056: checking for a thread-safe mkdir -p configure:3095: result: /data/oblac-provisioner/tmp/hosttools/mkdir -p configure:3102: checking for gawk configure:3118: found /data/oblac-provisioner/tmp/hosttools/gawk configure:3129: result: gawk configure:3140: checking whether make sets $(MAKE) configure:3162: result: yes configure:3191: checking whether make supports nested variables configure:3208: result: yes configure:3335: checking whether to enable maintainer-specific portions of Makefiles configure:3344: result: yes configure:3368: checking whether make supports nested variables configure:3385: result: yes configure:3463: checking build system type configure:3477: result: x86_64-pc-linux-gnu configure:3497: checking host system type configure:3510: result: x86_64-pc-linux-gnu configure:3569: checking for x86_64-linux-gcc configure:3596: result: gcc configure:3865: checking for C compiler version configure:3874: gcc --version >&5 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3885: $? = 0 configure:3874: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) configure:3885: $? = 0 configure:3874: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3885: $? = 1 configure:3874: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3885: $? = 1 configure:3905: checking whether the C compiler works configure:3927: gcc -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:3931: $? = 0 configure:3979: result: yes configure:3982: checking for C compiler default output file name configure:3984: result: a.out configure:3990: checking for suffix of executables configure:3997: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:4001: $? = 0 configure:4023: result: configure:4045: checking whether we are cross compiling configure:4053: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:4057: $? = 0 configure:4064: ./conftest configure:4068: $? = 0 configure:4083: result: no configure:4088: checking for suffix of object files configure:4110: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4114: $? = 0 configure:4135: result: o configure:4139: checking whether we are using the GNU C compiler configure:4158: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4158: $? = 0 configure:4167: result: yes configure:4176: checking whether gcc accepts -g configure:4196: gcc -c -g -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4196: $? = 0 configure:4237: result: yes configure:4254: checking for gcc option to accept ISO C89 configure:4317: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4317: $? = 0 configure:4330: result: none needed configure:4355: checking whether gcc understands -c and -o together configure:4377: gcc -c conftest.c -o conftest2.o configure:4380: $? = 0 configure:4377: gcc -c conftest.c -o conftest2.o configure:4380: $? = 0 configure:4392: result: yes configure:4420: checking for style of include used by make configure:4448: result: GNU configure:4474: checking dependency style of gcc configure:4585: result: none configure:4607: checking how to run the C preprocessor configure:4677: result: gcc -E configure:4697: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:4697: $? = 0 configure:4711: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:16:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:4711: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | /* end confdefs.h. */ | #include configure:4740: checking for grep that handles long lines and -e configure:4798: result: /data/oblac-provisioner/tmp/hosttools/grep configure:4803: checking for egrep configure:4865: result: /data/oblac-provisioner/tmp/hosttools/grep -E configure:4870: checking for ANSI C header files configure:4974: result: yes configure:4987: checking for sys/types.h configure:4987: result: yes configure:4987: checking for sys/stat.h configure:4987: result: yes configure:4987: checking for stdlib.h configure:4987: result: yes configure:4987: checking for string.h configure:4987: result: yes configure:4987: checking for memory.h configure:4987: result: yes configure:4987: checking for strings.h configure:4987: result: yes configure:4987: checking for inttypes.h configure:4987: result: yes configure:4987: checking for stdint.h configure:4987: result: yes configure:4987: checking for unistd.h configure:4987: result: yes configure:5000: checking minix/config.h usability configure:5000: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:59:26: fatal error: minix/config.h: No such file or directory compilation terminated. configure:5000: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:5000: result: no configure:5000: checking minix/config.h presence configure:5000: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:26:26: fatal error: minix/config.h: No such file or directory compilation terminated. configure:5000: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include configure:5000: result: no configure:5000: checking for minix/config.h configure:5000: result: no configure:5021: checking whether it is safe to define __EXTENSIONS__ configure:5039: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:5039: $? = 0 configure:5046: result: yes configure:5409: checking how to print strings configure:5436: result: printf configure:5457: checking for a sed that does not truncate output configure:5521: result: sed configure:5539: checking for fgrep configure:5601: result: /data/oblac-provisioner/tmp/hosttools/grep -F configure:5636: checking for ld used by gcc configure:5703: result: ld configure:5710: checking if the linker (ld ) is GNU ld configure:5725: result: yes configure:5737: checking for BSD- or MS-compatible name lister (nm) configure:5791: result: nm configure:5921: checking the name lister (nm) interface configure:5928: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:5931: nm "conftest.o" configure:5934: output 0000000000000000 B some_variable configure:5941: result: BSD nm configure:5944: checking whether ln -s works configure:5948: result: yes configure:5956: checking the maximum length of command line arguments configure:6087: result: 1572864 configure:6135: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format configure:6175: result: func_convert_file_noop configure:6182: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:6202: result: func_convert_file_noop configure:6209: checking for ld option to reload object files configure:6216: result: -r configure:6250: checking for x86_64-linux-objdump configure:6277: result: objdump configure:6346: checking how to recognize dependent libraries configure:6546: result: pass_all configure:6591: checking for x86_64-linux-dlltool configure:6618: result: dlltool configure:6688: checking how to associate runtime and link libraries configure:6715: result: printf %s\n configure:6731: checking for x86_64-linux-ar configure:6758: result: ar configure:6839: checking for archiver @FILE support configure:6856: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:6856: $? = 0 configure:6859: ar cru libconftest.a @conftest.lst >&5 ar: `u' modifier ignored since `D' is the default (see `U') configure:6862: $? = 0 configure:6867: ar cru libconftest.a @conftest.lst >&5 ar: `u' modifier ignored since `D' is the default (see `U') ar: conftest.o: No such file or directory configure:6870: $? = 1 configure:6882: result: @ configure:6900: checking for x86_64-linux-strip configure:6927: result: strip configure:6999: checking for x86_64-linux-ranlib configure:7026: result: ranlib configure:7168: checking command to parse nm output from gcc object configure:7321: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:7324: $? = 0 configure:7328: nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm configure:7331: $? = 0 configure:7397: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c conftstm.o >&5 configure:7400: $? = 0 configure:7438: result: ok configure:7485: checking for sysroot configure:7520: result: no configure:7527: checking for a working dd configure:7565: result: /data/oblac-provisioner/tmp/hosttools/dd configure:7569: checking how to truncate binary pipes configure:7584: result: /data/oblac-provisioner/tmp/hosttools/dd bs=4096 count=1 configure:7720: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:7723: $? = 0 configure:7873: checking for x86_64-linux-mt configure:7903: result: no configure:7913: checking for mt configure:7943: result: no configure:7963: checking if : is a manifest tool configure:7969: : '-?' configure:7977: result: no configure:8651: checking for dlfcn.h configure:8651: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:8651: $? = 0 configure:8651: result: yes configure:8906: checking for objdir configure:8921: result: .libs configure:9185: checking if gcc supports -fno-rtti -fno-exceptions configure:9203: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C configure:9207: $? = 0 configure:9220: result: no configure:9578: checking for gcc option to produce PIC configure:9585: result: -fPIC -DPIC configure:9593: checking if gcc PIC flag -fPIC -DPIC works configure:9611: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -fPIC -DPIC -DPIC conftest.c >&5 configure:9615: $? = 0 configure:9628: result: yes configure:9657: checking if gcc static flag -static works configure:9685: result: yes configure:9700: checking if gcc supports -c -o file.o configure:9721: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -o out/conftest2.o conftest.c >&5 configure:9725: $? = 0 configure:9747: result: yes configure:9755: checking if gcc supports -c -o file.o configure:9802: result: yes configure:9835: checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries configure:11094: result: yes configure:11131: checking whether -lc should be explicitly linked in configure:11139: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:11142: $? = 0 configure:11157: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /data/oblac-provisioner/tmp/hosttools/grep -lc \>/dev/null 2\>\&1 configure:11160: $? = 0 configure:11174: result: no configure:11334: checking dynamic linker characteristics configure:11915: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wl,-rpath -Wl,/foo conftest.c >&5 configure:11915: $? = 0 configure:12152: result: GNU/Linux ld.so configure:12274: checking how to hardcode library paths into programs configure:12299: result: immediate configure:12847: checking whether stripping libraries is possible configure:12852: result: yes configure:12887: checking if libtool supports shared libraries configure:12889: result: yes configure:12892: checking whether to build shared libraries configure:12917: result: yes configure:12920: checking whether to build static libraries configure:12924: result: no configure:12964: checking for x86_64-linux-strip configure:12991: result: strip configure:13268: checking for dirent.h that defines DIR configure:13287: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13287: $? = 0 configure:13295: result: yes configure:13308: checking for library containing opendir configure:13339: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:13339: $? = 0 configure:13356: result: none required configure:13423: checking for sys/wait.h that is POSIX.1 compatible configure:13449: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13449: $? = 0 configure:13456: result: yes configure:13467: checking acl/libacl.h usability configure:13467: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:68:24: fatal error: acl/libacl.h: No such file or directory compilation terminated. configure:13467: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13467: result: no configure:13467: checking acl/libacl.h presence configure:13467: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:35:24: fatal error: acl/libacl.h: No such file or directory compilation terminated. configure:13467: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | /* end confdefs.h. */ | #include configure:13467: result: no configure:13467: checking for acl/libacl.h configure:13467: result: no configure:13467: checking attr/xattr.h usability configure:13467: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13467: $? = 0 configure:13467: result: yes configure:13467: checking attr/xattr.h presence configure:13467: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13467: $? = 0 configure:13467: result: yes configure:13467: checking for attr/xattr.h configure:13467: result: yes configure:13480: checking copyfile.h usability configure:13480: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:69:22: fatal error: copyfile.h: No such file or directory compilation terminated. configure:13480: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13480: result: no configure:13480: checking copyfile.h presence configure:13480: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:36:22: fatal error: copyfile.h: No such file or directory compilation terminated. configure:13480: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | /* end confdefs.h. */ | #include configure:13480: result: no configure:13480: checking for copyfile.h configure:13480: result: no configure:13480: checking ctype.h usability configure:13480: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13480: $? = 0 configure:13480: result: yes configure:13480: checking ctype.h presence configure:13480: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13480: $? = 0 configure:13480: result: yes configure:13480: checking for ctype.h configure:13480: result: yes configure:13493: checking errno.h usability configure:13493: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking errno.h presence configure:13493: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking for errno.h configure:13493: result: yes configure:13493: checking ext2fs/ext2_fs.h usability configure:13493: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking ext2fs/ext2_fs.h presence configure:13493: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking for ext2fs/ext2_fs.h configure:13493: result: yes configure:13493: checking fcntl.h usability configure:13493: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking fcntl.h presence configure:13493: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking for fcntl.h configure:13493: result: yes configure:13493: checking grp.h usability configure:13493: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking grp.h presence configure:13493: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13493: $? = 0 configure:13493: result: yes configure:13493: checking for grp.h configure:13493: result: yes configure:13504: checking whether EXT2_IOC_GETFLAGS is usable configure:13521: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13521: $? = 0 configure:13528: result: yes configure:13542: checking for inttypes.h configure:13542: result: yes configure:13542: checking io.h usability configure:13542: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:76:16: fatal error: io.h: No such file or directory compilation terminated. configure:13542: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13542: result: no configure:13542: checking io.h presence configure:13542: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:43:16: fatal error: io.h: No such file or directory compilation terminated. configure:13542: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | /* end confdefs.h. */ | #include configure:13542: result: no configure:13542: checking for io.h configure:13542: result: no configure:13542: checking langinfo.h usability configure:13542: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13542: $? = 0 configure:13542: result: yes configure:13542: checking langinfo.h presence configure:13542: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13542: $? = 0 configure:13542: result: yes configure:13542: checking for langinfo.h configure:13542: result: yes configure:13542: checking limits.h usability configure:13542: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13542: $? = 0 configure:13542: result: yes configure:13542: checking limits.h presence configure:13542: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13542: $? = 0 configure:13542: result: yes configure:13542: checking for limits.h configure:13542: result: yes configure:13555: checking linux/fiemap.h usability configure:13555: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking linux/fiemap.h presence configure:13555: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking for linux/fiemap.h configure:13555: result: yes configure:13555: checking linux/fs.h usability configure:13555: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking linux/fs.h presence configure:13555: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking for linux/fs.h configure:13555: result: yes configure:13555: checking linux/magic.h usability configure:13555: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking linux/magic.h presence configure:13555: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking for linux/magic.h configure:13555: result: yes configure:13555: checking linux/types.h usability configure:13555: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking linux/types.h presence configure:13555: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13555: $? = 0 configure:13555: result: yes configure:13555: checking for linux/types.h configure:13555: result: yes configure:13566: checking whether FS_IOC_GETFLAGS is usable configure:13583: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13583: $? = 0 configure:13590: result: yes configure:13604: checking locale.h usability configure:13604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking locale.h presence configure:13604: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking for locale.h configure:13604: result: yes configure:13604: checking membership.h usability configure:13604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:84:24: fatal error: membership.h: No such file or directory compilation terminated. configure:13604: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13604: result: no configure:13604: checking membership.h presence configure:13604: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:51:24: fatal error: membership.h: No such file or directory compilation terminated. configure:13604: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | /* end confdefs.h. */ | #include configure:13604: result: no configure:13604: checking for membership.h configure:13604: result: no configure:13604: checking paths.h usability configure:13604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking paths.h presence configure:13604: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking for paths.h configure:13604: result: yes configure:13604: checking poll.h usability configure:13604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking poll.h presence configure:13604: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking for poll.h configure:13604: result: yes configure:13604: checking pthread.h usability configure:13604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking pthread.h presence configure:13604: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking for pthread.h configure:13604: result: yes configure:13604: checking pwd.h usability configure:13604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking pwd.h presence configure:13604: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13604: $? = 0 configure:13604: result: yes configure:13604: checking for pwd.h configure:13604: result: yes configure:13617: checking readpassphrase.h usability configure:13617: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:88:28: fatal error: readpassphrase.h: No such file or directory compilation terminated. configure:13617: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13617: result: no configure:13617: checking readpassphrase.h presence configure:13617: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:55:28: fatal error: readpassphrase.h: No such file or directory compilation terminated. configure:13617: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | /* end confdefs.h. */ | #include configure:13617: result: no configure:13617: checking for readpassphrase.h configure:13617: result: no configure:13617: checking signal.h usability configure:13617: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13617: $? = 0 configure:13617: result: yes configure:13617: checking signal.h presence configure:13617: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13617: $? = 0 configure:13617: result: yes configure:13617: checking for signal.h configure:13617: result: yes configure:13617: checking spawn.h usability configure:13617: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13617: $? = 0 configure:13617: result: yes configure:13617: checking spawn.h presence configure:13617: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13617: $? = 0 configure:13617: result: yes configure:13617: checking for spawn.h configure:13617: result: yes configure:13630: checking stdarg.h usability configure:13630: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13630: $? = 0 configure:13630: result: yes configure:13630: checking stdarg.h presence configure:13630: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13630: $? = 0 configure:13630: result: yes configure:13630: checking for stdarg.h configure:13630: result: yes configure:13630: checking for stdint.h configure:13630: result: yes configure:13630: checking for stdlib.h configure:13630: result: yes configure:13630: checking for string.h configure:13630: result: yes configure:13643: checking sys/acl.h usability configure:13643: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:94:21: fatal error: sys/acl.h: No such file or directory compilation terminated. configure:13643: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13643: result: no configure:13643: checking sys/acl.h presence configure:13643: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:61:21: fatal error: sys/acl.h: No such file or directory compilation terminated. configure:13643: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | /* end confdefs.h. */ | #include configure:13643: result: no configure:13643: checking for sys/acl.h configure:13643: result: no configure:13643: checking sys/cdefs.h usability configure:13643: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13643: $? = 0 configure:13643: result: yes configure:13643: checking sys/cdefs.h presence configure:13643: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13643: $? = 0 configure:13643: result: yes configure:13643: checking for sys/cdefs.h configure:13643: result: yes configure:13643: checking sys/ea.h usability configure:13643: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:95:20: fatal error: sys/ea.h: No such file or directory compilation terminated. configure:13643: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13643: result: no configure:13643: checking sys/ea.h presence configure:13643: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:62:20: fatal error: sys/ea.h: No such file or directory compilation terminated. configure:13643: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | /* end confdefs.h. */ | #include configure:13643: result: no configure:13643: checking for sys/ea.h configure:13643: result: no configure:13643: checking sys/extattr.h usability configure:13643: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:95:25: fatal error: sys/extattr.h: No such file or directory compilation terminated. configure:13643: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13643: result: no configure:13643: checking sys/extattr.h presence configure:13643: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:62:25: fatal error: sys/extattr.h: No such file or directory compilation terminated. configure:13643: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | /* end confdefs.h. */ | #include configure:13643: result: no configure:13643: checking for sys/extattr.h configure:13643: result: no configure:13656: checking sys/ioctl.h usability configure:13656: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13656: $? = 0 configure:13656: result: yes configure:13656: checking sys/ioctl.h presence configure:13656: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13656: $? = 0 configure:13656: result: yes configure:13656: checking for sys/ioctl.h configure:13656: result: yes configure:13656: checking sys/mkdev.h usability configure:13656: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:96:23: fatal error: sys/mkdev.h: No such file or directory compilation terminated. configure:13656: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13656: result: no configure:13656: checking sys/mkdev.h presence configure:13656: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:63:23: fatal error: sys/mkdev.h: No such file or directory compilation terminated. configure:13656: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | /* end confdefs.h. */ | #include configure:13656: result: no configure:13656: checking for sys/mkdev.h configure:13656: result: no configure:13656: checking sys/mount.h usability configure:13656: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13656: $? = 0 configure:13656: result: yes configure:13656: checking sys/mount.h presence configure:13656: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13656: $? = 0 configure:13656: result: yes configure:13656: checking for sys/mount.h configure:13656: result: yes configure:13669: checking sys/param.h usability configure:13669: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13669: $? = 0 configure:13669: result: yes configure:13669: checking sys/param.h presence configure:13669: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13669: $? = 0 configure:13669: result: yes configure:13669: checking for sys/param.h configure:13669: result: yes configure:13669: checking sys/poll.h usability configure:13669: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13669: $? = 0 configure:13669: result: yes configure:13669: checking sys/poll.h presence configure:13669: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13669: $? = 0 configure:13669: result: yes configure:13669: checking for sys/poll.h configure:13669: result: yes configure:13669: checking sys/richacl.h usability configure:13669: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:99:25: fatal error: sys/richacl.h: No such file or directory compilation terminated. configure:13669: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13669: result: no configure:13669: checking sys/richacl.h presence configure:13669: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:66:25: fatal error: sys/richacl.h: No such file or directory compilation terminated. configure:13669: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | /* end confdefs.h. */ | #include configure:13669: result: no configure:13669: checking for sys/richacl.h configure:13669: result: no configure:13682: checking sys/select.h usability configure:13682: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13682: $? = 0 configure:13682: result: yes configure:13682: checking sys/select.h presence configure:13682: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13682: $? = 0 configure:13682: result: yes configure:13682: checking for sys/select.h configure:13682: result: yes configure:13682: checking sys/statfs.h usability configure:13682: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13682: $? = 0 configure:13682: result: yes configure:13682: checking sys/statfs.h presence configure:13682: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13682: $? = 0 configure:13682: result: yes configure:13682: checking for sys/statfs.h configure:13682: result: yes configure:13682: checking sys/statvfs.h usability configure:13682: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13682: $? = 0 configure:13682: result: yes configure:13682: checking sys/statvfs.h presence configure:13682: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13682: $? = 0 configure:13682: result: yes configure:13682: checking for sys/statvfs.h configure:13682: result: yes configure:13695: checking sys/time.h usability configure:13695: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking sys/time.h presence configure:13695: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking for sys/time.h configure:13695: result: yes configure:13695: checking sys/utime.h usability configure:13695: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:103:23: fatal error: sys/utime.h: No such file or directory compilation terminated. configure:13695: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13695: result: no configure:13695: checking sys/utime.h presence configure:13695: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:70:23: fatal error: sys/utime.h: No such file or directory compilation terminated. configure:13695: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | /* end confdefs.h. */ | #include configure:13695: result: no configure:13695: checking for sys/utime.h configure:13695: result: no configure:13695: checking sys/utsname.h usability configure:13695: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking sys/utsname.h presence configure:13695: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking for sys/utsname.h configure:13695: result: yes configure:13695: checking sys/vfs.h usability configure:13695: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking sys/vfs.h presence configure:13695: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking for sys/vfs.h configure:13695: result: yes configure:13695: checking sys/xattr.h usability configure:13695: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking sys/xattr.h presence configure:13695: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13695: $? = 0 configure:13695: result: yes configure:13695: checking for sys/xattr.h configure:13695: result: yes configure:13708: checking time.h usability configure:13708: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking time.h presence configure:13708: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking for time.h configure:13708: result: yes configure:13708: checking for unistd.h configure:13708: result: yes configure:13708: checking utime.h usability configure:13708: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking utime.h presence configure:13708: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking for utime.h configure:13708: result: yes configure:13708: checking wchar.h usability configure:13708: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking wchar.h presence configure:13708: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking for wchar.h configure:13708: result: yes configure:13708: checking wctype.h usability configure:13708: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking wctype.h presence configure:13708: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13708: $? = 0 configure:13708: result: yes configure:13708: checking for wctype.h configure:13708: result: yes configure:13720: checking windows.h usability configure:13720: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:111:21: fatal error: windows.h: No such file or directory compilation terminated. configure:13720: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:13720: result: no configure:13720: checking windows.h presence configure:13720: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:78:21: fatal error: windows.h: No such file or directory compilation terminated. configure:13720: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | /* end confdefs.h. */ | #include configure:13720: result: no configure:13720: checking for windows.h configure:13720: result: no configure:13734: checking for wincrypt.h configure:13734: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:83:22: fatal error: wincrypt.h: No such file or directory compilation terminated. configure:13734: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | /* end confdefs.h. */ | #ifdef HAVE_WINDOWS_H | # include | #endif | | | #include configure:13734: result: no configure:13734: checking for winioctl.h configure:13734: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:83:22: fatal error: winioctl.h: No such file or directory compilation terminated. configure:13734: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | /* end confdefs.h. */ | #ifdef HAVE_WINDOWS_H | # include | #endif | | | #include configure:13734: result: no configure:13760: checking zlib.h usability configure:13760: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13760: $? = 0 configure:13760: result: yes configure:13760: checking zlib.h presence configure:13760: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13760: $? = 0 configure:13760: result: yes configure:13760: checking for zlib.h configure:13760: result: yes configure:13770: checking for inflate in -lz configure:13795: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lz >&5 configure:13795: $? = 0 configure:13804: result: yes configure:13827: checking bzlib.h usability configure:13827: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13827: $? = 0 configure:13827: result: yes configure:13827: checking bzlib.h presence configure:13827: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:13827: $? = 0 configure:13827: result: yes configure:13827: checking for bzlib.h configure:13827: result: yes configure:13866: checking for BZ2_bzDecompressInit in -lbz2 configure:13891: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 configure:13891: $? = 0 configure:13900: result: yes configure:13962: checking for ld used by GCC configure:14026: result: ld -m elf_x86_64 configure:14033: checking if the linker (ld -m elf_x86_64) is GNU ld configure:14046: result: yes configure:14053: checking for shared library run path origin configure:14066: result: done configure:14644: checking for iconv configure:14668: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 configure:14668: $? = 0 configure:14702: result: yes configure:14705: checking for working iconv configure:14834: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 configure:14834: $? = 0 configure:14834: ./conftest configure:14834: $? = 0 configure:14846: result: yes configure:14874: checking for iconv declaration configure:14903: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:14903: $? = 0 configure:14914: result: extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); configure:14927: checking for iconv.h configure:14927: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:14927: $? = 0 configure:14927: result: yes configure:14941: checking localcharset.h usability configure:14941: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:118:26: fatal error: localcharset.h: No such file or directory compilation terminated. configure:14941: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:14941: result: no configure:14941: checking localcharset.h presence configure:14941: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:85:26: fatal error: localcharset.h: No such file or directory compilation terminated. configure:14941: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | /* end confdefs.h. */ | #include configure:14941: result: no configure:14941: checking for localcharset.h configure:14941: result: no configure:14955: checking for locale_charset configure:14955: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 /tmp/ccGgyOLA.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `locale_charset' collect2: error: ld returned 1 exit status configure:14955: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | /* end confdefs.h. */ | /* Define locale_charset to an innocuous variant, in case declares locale_charset. | For example, HP-UX 11i declares gettimeofday. */ | #define locale_charset innocuous_locale_charset | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char locale_charset (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef locale_charset | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char locale_charset (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_locale_charset || defined __stub___locale_charset | choke me | #endif | | int | main () | { | return locale_charset (); | ; | return 0; | } configure:14955: result: no configure:14967: checking for locale_charset in -lcharset configure:14992: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lcharset -lbz2 -lz >&5 /data/oblac-provisioner/tmp/hosttools/ld: cannot find -lcharset collect2: error: ld returned 1 exit status configure:14992: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char locale_charset (); | int | main () | { | return locale_charset (); | ; | return 0; | } configure:15001: result: no configure:15094: checking lzma.h usability configure:15094: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:15094: $? = 0 configure:15094: result: yes configure:15094: checking lzma.h presence configure:15094: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:15094: $? = 0 configure:15094: result: yes configure:15094: checking for lzma.h configure:15094: result: yes configure:15104: checking for lzma_stream_decoder in -llzma configure:15129: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzma -lbz2 -lz >&5 configure:15129: $? = 0 configure:15138: result: yes configure:15153: checking whether we have multithread support in lzma configure:15173: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzma -lbz2 -lz >&5 conftest.c: In function 'main': conftest.c:95:1: warning: ignoring return value of 'lzma_stream_encoder_mt', declared with attribute warn_unused_result [-Wunused-result] lzma_stream_encoder_mt(0, 0); ^ configure:15173: $? = 0 configure:15181: result: yes configure:15201: checking lzo/lzoconf.h usability configure:15201: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:15201: $? = 0 configure:15201: result: yes configure:15201: checking lzo/lzoconf.h presence configure:15201: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:15201: $? = 0 configure:15201: result: yes configure:15201: checking for lzo/lzoconf.h configure:15201: result: yes configure:15201: checking lzo/lzo1x.h usability configure:15201: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:15201: $? = 0 configure:15201: result: yes configure:15201: checking lzo/lzo1x.h presence configure:15201: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:15201: $? = 0 configure:15201: result: yes configure:15201: checking for lzo/lzo1x.h configure:15201: result: yes configure:15211: checking for lzo1x_decompress_safe in -llzo2 configure:15236: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:15236: $? = 0 configure:15245: result: yes configure:15714: checking regex.h usability configure:15714: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:15714: $? = 0 configure:15714: result: yes configure:15714: checking regex.h presence configure:15714: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:15714: $? = 0 configure:15714: result: yes configure:15714: checking for regex.h configure:15714: result: yes configure:15725: checking for regcomp configure:15725: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:15725: $? = 0 configure:15725: result: yes configure:15995: checking whether C compiler accepts -Wall configure:16014: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16014: $? = 0 configure:16023: result: yes configure:16039: : CFLAGS="$CFLAGS" configure:16042: $? = 0 configure:15995: checking whether C compiler accepts -Wformat configure:16014: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16014: $? = 0 configure:16023: result: yes configure:16039: : CFLAGS="$CFLAGS" configure:16042: $? = 0 configure:15995: checking whether C compiler accepts -Wformat-security configure:16014: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16014: $? = 0 configure:16023: result: yes configure:16039: : CFLAGS="$CFLAGS" configure:16042: $? = 0 configure:16066: checking for an ANSI C-conforming const configure:16132: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16132: $? = 0 configure:16139: result: yes configure:16149: checking for uid_t in sys/types.h configure:16168: result: yes configure:16187: checking for mode_t configure:16187: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16187: $? = 0 configure:16187: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:21: error: expected expression before ')' token if (sizeof ((mode_t))) ^ configure:16187: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((mode_t))) | return 0; | ; | return 0; | } configure:16187: result: yes configure:16200: checking for off_t configure:16200: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16200: $? = 0 configure:16200: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:20: error: expected expression before ')' token if (sizeof ((off_t))) ^ configure:16200: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((off_t))) | return 0; | ; | return 0; | } configure:16200: result: yes configure:16211: checking for size_t configure:16211: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16211: $? = 0 configure:16211: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:21: error: expected expression before ')' token if (sizeof ((size_t))) ^ configure:16211: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((size_t))) | return 0; | ; | return 0; | } configure:16211: result: yes configure:16222: checking for id_t configure:16222: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16222: $? = 0 configure:16222: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:19: error: expected expression before ')' token if (sizeof ((id_t))) ^ configure:16222: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((id_t))) | return 0; | ; | return 0; | } configure:16222: result: yes configure:16233: checking for uintptr_t configure:16233: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16233: $? = 0 configure:16233: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:24: error: expected expression before ')' token if (sizeof ((uintptr_t))) ^ configure:16233: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((uintptr_t))) | return 0; | ; | return 0; | } configure:16233: result: yes configure:16246: checking for struct tm.tm_gmtoff configure:16246: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16246: $? = 0 configure:16246: result: yes configure:16258: checking for struct tm.__tm_gmtoff configure:16258: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:12: error: 'struct tm' has no member named '__tm_gmtoff' if (ac_aggr.__tm_gmtoff) ^ conftest.c:100:18: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct tm ac_aggr; ^ configure:16258: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | | #include | | | int | main () | { | static struct tm ac_aggr; | if (ac_aggr.__tm_gmtoff) | return 0; | ; | return 0; | } configure:16258: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:19: error: 'struct tm' has no member named '__tm_gmtoff' if (sizeof ac_aggr.__tm_gmtoff) ^ conftest.c:100:18: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct tm ac_aggr; ^ configure:16258: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | | #include | | | int | main () | { | static struct tm ac_aggr; | if (sizeof ac_aggr.__tm_gmtoff) | return 0; | ; | return 0; | } configure:16258: result: no configure:16273: checking for struct statfs.f_namemax configure:16273: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:22: error: storage size of 'ac_aggr' isn't known static struct statfs ac_aggr; ^ conftest.c:101:22: warning: unused variable 'ac_aggr' [-Wunused-variable] configure:16273: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | | #include | #include | | | int | main () | { | static struct statfs ac_aggr; | if (ac_aggr.f_namemax) | return 0; | ; | return 0; | } configure:16273: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:22: error: storage size of 'ac_aggr' isn't known static struct statfs ac_aggr; ^ conftest.c:101:22: warning: unused variable 'ac_aggr' [-Wunused-variable] configure:16273: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | | #include | #include | | | int | main () | { | static struct statfs ac_aggr; | if (sizeof ac_aggr.f_namemax) | return 0; | ; | return 0; | } configure:16273: result: no configure:16289: checking for struct statvfs.f_iosize configure:16289: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:12: error: 'struct statvfs' has no member named 'f_iosize' if (ac_aggr.f_iosize) ^ conftest.c:100:23: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct statvfs ac_aggr; ^ configure:16289: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | | #include | | | int | main () | { | static struct statvfs ac_aggr; | if (ac_aggr.f_iosize) | return 0; | ; | return 0; | } configure:16289: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:19: error: 'struct statvfs' has no member named 'f_iosize' if (sizeof ac_aggr.f_iosize) ^ conftest.c:100:23: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct statvfs ac_aggr; ^ configure:16289: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | | #include | | | int | main () | { | static struct statvfs ac_aggr; | if (sizeof ac_aggr.f_iosize) | return 0; | ; | return 0; | } configure:16289: result: no configure:16304: checking for struct stat.st_birthtime configure:16304: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:130:12: error: 'struct stat' has no member named 'st_birthtime' if (ac_aggr.st_birthtime) ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16304: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_birthtime) | return 0; | ; | return 0; | } configure:16304: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:130:19: error: 'struct stat' has no member named 'st_birthtime' if (sizeof ac_aggr.st_birthtime) ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16304: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_birthtime) | return 0; | ; | return 0; | } configure:16304: result: no configure:16316: checking for struct stat.st_birthtimespec.tv_nsec configure:16316: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:130:12: error: 'struct stat' has no member named 'st_birthtimespec' if (ac_aggr.st_birthtimespec.tv_nsec) ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16316: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_birthtimespec.tv_nsec) | return 0; | ; | return 0; | } configure:16316: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:130:19: error: 'struct stat' has no member named 'st_birthtimespec' if (sizeof ac_aggr.st_birthtimespec.tv_nsec) ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16316: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_birthtimespec.tv_nsec) | return 0; | ; | return 0; | } configure:16316: result: no configure:16326: checking for struct stat.st_mtimespec.tv_nsec configure:16326: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:130:12: error: 'struct stat' has no member named 'st_mtimespec' if (ac_aggr.st_mtimespec.tv_nsec) ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16326: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_mtimespec.tv_nsec) | return 0; | ; | return 0; | } configure:16326: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:130:19: error: 'struct stat' has no member named 'st_mtimespec' if (sizeof ac_aggr.st_mtimespec.tv_nsec) ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16326: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_mtimespec.tv_nsec) | return 0; | ; | return 0; | } configure:16326: result: no configure:16336: checking for struct stat.st_mtim.tv_nsec configure:16336: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16336: $? = 0 configure:16336: result: yes configure:16346: checking for struct stat.st_mtime_n configure:16346: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:12: error: 'struct stat' has no member named 'st_mtime_n' if (ac_aggr.st_mtime_n) ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16346: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_mtime_n) | return 0; | ; | return 0; | } configure:16346: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:19: error: 'struct stat' has no member named 'st_mtime_n' if (sizeof ac_aggr.st_mtime_n) ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16346: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_mtime_n) | return 0; | ; | return 0; | } configure:16346: result: no configure:16356: checking for struct stat.st_umtime configure:16356: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:12: error: 'struct stat' has no member named 'st_umtime' if (ac_aggr.st_umtime) ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16356: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_umtime) | return 0; | ; | return 0; | } configure:16356: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:19: error: 'struct stat' has no member named 'st_umtime' if (sizeof ac_aggr.st_umtime) ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16356: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_umtime) | return 0; | ; | return 0; | } configure:16356: result: no configure:16366: checking for struct stat.st_mtime_usec configure:16366: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:12: error: 'struct stat' has no member named 'st_mtime_usec' if (ac_aggr.st_mtime_usec) ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16366: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_mtime_usec) | return 0; | ; | return 0; | } configure:16366: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:19: error: 'struct stat' has no member named 'st_mtime_usec' if (sizeof ac_aggr.st_mtime_usec) ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16366: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_mtime_usec) | return 0; | ; | return 0; | } configure:16366: result: no configure:16377: checking for struct stat.st_blksize configure:16377: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16377: $? = 0 configure:16377: result: yes configure:16388: checking for struct stat.st_flags configure:16388: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:132:12: error: 'struct stat' has no member named 'st_flags' if (ac_aggr.st_flags) ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16388: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (ac_aggr.st_flags) | return 0; | ; | return 0; | } configure:16388: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:132:19: error: 'struct stat' has no member named 'st_flags' if (sizeof ac_aggr.st_flags) ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct stat ac_aggr; ^ configure:16388: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | static struct stat ac_aggr; | if (sizeof ac_aggr.st_flags) | return 0; | ; | return 0; | } configure:16388: result: no configure:16402: checking for uintmax_t configure:16402: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16402: $? = 0 configure:16402: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:24: error: expected expression before ')' token if (sizeof ((uintmax_t))) ^ configure:16402: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((uintmax_t))) | return 0; | ; | return 0; | } configure:16402: result: yes configure:16411: checking for unsigned long long configure:16411: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16411: $? = 0 configure:16411: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:132:33: error: expected expression before ')' token if (sizeof ((unsigned long long))) ^ configure:16411: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((unsigned long long))) | return 0; | ; | return 0; | } configure:16411: result: yes configure:16425: checking for unsigned long long int configure:16464: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:16464: $? = 0 configure:16473: result: yes configure:16483: checking for long long int configure:16521: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:16521: $? = 0 configure:16521: ./conftest configure:16521: $? = 0 configure:16533: result: yes configure:16543: checking for intmax_t configure:16543: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16543: $? = 0 configure:16543: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:135:23: error: expected expression before ')' token if (sizeof ((intmax_t))) ^ configure:16543: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((intmax_t))) | return 0; | ; | return 0; | } configure:16543: result: yes configure:16562: checking for uintmax_t configure:16562: result: yes configure:16579: checking for int64_t configure:16579: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16579: $? = 0 configure:16579: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:139:53: warning: integer overflow in expression [-Woverflow] < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))]; ^ conftest.c:138:12: error: storage size of 'test_array' isn't constant static int test_array [1 - 2 * !((int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1) ^ conftest.c:138:12: warning: unused variable 'test_array' [-Wunused-variable] configure:16579: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | enum { N = 64 / 2 - 1 }; | int | main () | { | static int test_array [1 - 2 * !((int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1) | < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))]; | test_array [0] = 0; | return test_array [0]; | | ; | return 0; | } configure:16579: result: yes configure:16590: checking for uint64_t configure:16590: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16590: $? = 0 configure:16590: result: yes configure:16604: checking for int32_t configure:16604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16604: $? = 0 configure:16604: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:139:53: warning: integer overflow in expression [-Woverflow] < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))]; ^ conftest.c:138:12: error: storage size of 'test_array' isn't constant static int test_array [1 - 2 * !((int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1) ^ conftest.c:138:12: warning: unused variable 'test_array' [-Wunused-variable] configure:16604: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | enum { N = 32 / 2 - 1 }; | int | main () | { | static int test_array [1 - 2 * !((int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1) | < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))]; | test_array [0] = 0; | return test_array [0]; | | ; | return 0; | } configure:16604: result: yes configure:16615: checking for uint32_t configure:16615: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16615: $? = 0 configure:16615: result: yes configure:16629: checking for int16_t configure:16629: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16629: $? = 0 configure:16629: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:138:12: error: size of array 'test_array' is negative static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1) ^ configure:16629: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | enum { N = 16 / 2 - 1 }; | int | main () | { | static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1) | < (int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 2))]; | test_array [0] = 0; | return test_array [0]; | | ; | return 0; | } configure:16629: result: yes configure:16640: checking for uint16_t configure:16640: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16640: $? = 0 configure:16640: result: yes configure:16652: checking for uint8_t configure:16652: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16652: $? = 0 configure:16652: result: yes configure:16667: checking whether SIZE_MAX is declared configure:16667: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16667: $? = 0 configure:16667: result: yes configure:16677: checking whether INT32_MAX is declared configure:16677: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16677: $? = 0 configure:16677: result: yes configure:16687: checking whether INT32_MIN is declared configure:16687: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16687: $? = 0 configure:16687: result: yes configure:16698: checking whether INT64_MAX is declared configure:16698: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16698: $? = 0 configure:16698: result: yes configure:16708: checking whether INT64_MIN is declared configure:16708: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16708: $? = 0 configure:16708: result: yes configure:16718: checking whether UINT64_MAX is declared configure:16718: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16718: $? = 0 configure:16718: result: yes configure:16728: checking whether UINT32_MAX is declared configure:16728: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16728: $? = 0 configure:16728: result: yes configure:16739: checking whether INTMAX_MAX is declared configure:16739: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16739: $? = 0 configure:16739: result: yes configure:16749: checking whether INTMAX_MIN is declared configure:16749: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16749: $? = 0 configure:16749: result: yes configure:16759: checking whether UINTMAX_MAX is declared configure:16759: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16759: $? = 0 configure:16759: result: yes configure:16771: checking whether SSIZE_MAX is declared configure:16771: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16771: $? = 0 configure:16771: result: yes configure:16780: checking whether EFTYPE is declared configure:16780: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:121:10: error: 'EFTYPE' undeclared (first use in this function) (void) EFTYPE; ^ conftest.c:121:10: note: each undeclared identifier is reported only once for each function it appears in configure:16780: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | /* end confdefs.h. */ | #include | | int | main () | { | #ifndef EFTYPE | #ifdef __cplusplus | (void) EFTYPE; | #else | (void) EFTYPE; | #endif | #endif | | ; | return 0; | } configure:16780: result: no configure:16788: checking whether EILSEQ is declared configure:16788: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16788: $? = 0 configure:16788: result: yes configure:16796: checking for wchar_t configure:16796: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16796: $? = 0 configure:16796: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:149:22: error: expected expression before ')' token if (sizeof ((wchar_t))) ^ configure:16796: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main () | { | if (sizeof ((wchar_t))) | return 0; | ; | return 0; | } configure:16796: result: yes configure:16806: checking size of wchar_t configure:16811: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:16811: $? = 0 configure:16811: ./conftest configure:16811: $? = 0 configure:16825: result: 4 configure:16838: checking whether time.h and sys/time.h may both be included configure:16858: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16858: $? = 0 configure:16865: result: yes configure:16876: checking whether gcc needs -traditional configure:16910: result: no configure:16923: checking for sys/types.h configure:16923: result: yes configure:16937: checking for sys/mkdev.h configure:16937: result: no configure:16946: checking sys/sysmacros.h usability configure:16946: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:16946: $? = 0 configure:16946: result: yes configure:16946: checking sys/sysmacros.h presence configure:16946: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c configure:16946: $? = 0 configure:16946: result: yes configure:16946: checking for sys/sysmacros.h configure:16946: result: yes configure:16956: checking for _LARGEFILE_SOURCE value needed for large files configure:16975: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:16975: $? = 0 configure:17003: result: no configure:17024: checking for working memcmp configure:17077: result: yes configure:17086: checking whether lstat correctly handles trailing slash configure:17129: result: yes configure:17148: checking whether lstat accepts an empty string configure:17178: result: no configure:17194: checking whether stat accepts an empty string configure:17224: result: no configure:17240: checking whether strerror_r is declared configure:17240: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:17240: $? = 0 configure:17240: result: yes configure:17253: checking for strerror_r configure:17253: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17253: $? = 0 configure:17253: result: yes configure:17262: checking whether strerror_r returns char * configure:17286: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:17286: $? = 0 configure:17324: result: yes configure:17334: checking for strftime configure:17334: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:146:6: warning: conflicting types for built-in function 'strftime' char strftime (); ^ configure:17334: $? = 0 configure:17334: result: yes configure:17389: checking for vprintf configure:17389: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:147:6: warning: conflicting types for built-in function 'vprintf' char vprintf (); ^ configure:17389: $? = 0 configure:17389: result: yes configure:17395: checking for _doprnt configure:17395: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/cci2O88B.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `_doprnt' collect2: error: ld returned 1 exit status configure:17395: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | /* end confdefs.h. */ | /* Define _doprnt to an innocuous variant, in case declares _doprnt. | For example, HP-UX 11i declares gettimeofday. */ | #define _doprnt innocuous__doprnt | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _doprnt (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _doprnt | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char _doprnt (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__doprnt || defined __stub____doprnt | choke me | #endif | | int | main () | { | return _doprnt (); | ; | return 0; | } configure:17395: result: no configure:17410: checking for CreateHardLinkA configure:17445: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:134:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CreateHardLinkA' char __stdcall CreateHardLinkA ( const char *, const char *, void * ); ^ conftest.c: In function 'main': conftest.c:146:5: error: 'CreateHardLinkA' undeclared (first use in this function) f = CreateHardLinkA; ^ conftest.c:146:5: note: each undeclared identifier is reported only once for each function it appears in configure:17445: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | /* end confdefs.h. */ | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */ | #include | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char __stdcall CreateHardLinkA ( const char *, const char *, void * ); | char (*f) ( const char *, const char *, void * ); | | int | main () | { | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA) | choke me | #else | f = CreateHardLinkA; | #endif | | ; | return 0; | } configure:17453: result: no configure:17461: checking for arc4random_buf configure:17461: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccNjYk4F.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `arc4random_buf' collect2: error: ld returned 1 exit status configure:17461: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | /* end confdefs.h. */ | /* Define arc4random_buf to an innocuous variant, in case declares arc4random_buf. | For example, HP-UX 11i declares gettimeofday. */ | #define arc4random_buf innocuous_arc4random_buf | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char arc4random_buf (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef arc4random_buf | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char arc4random_buf (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_arc4random_buf || defined __stub___arc4random_buf | choke me | #endif | | int | main () | { | return arc4random_buf (); | ; | return 0; | } configure:17461: result: no configure:17461: checking for chflags configure:17461: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:153:1: error: unknown type name 'choke' choke me ^ conftest.c:156:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' int ^ configure:17461: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | /* end confdefs.h. */ | /* Define chflags to an innocuous variant, in case declares chflags. | For example, HP-UX 11i declares gettimeofday. */ | #define chflags innocuous_chflags | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char chflags (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef chflags | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char chflags (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_chflags || defined __stub___chflags | choke me | #endif | | int | main () | { | return chflags (); | ; | return 0; | } configure:17461: result: no configure:17461: checking for chown configure:17461: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17461: $? = 0 configure:17461: result: yes configure:17461: checking for chroot configure:17461: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17461: $? = 0 configure:17461: result: yes configure:17461: checking for ctime_r configure:17461: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17461: $? = 0 configure:17461: result: yes configure:17473: checking for fchdir configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17473: $? = 0 configure:17473: result: yes configure:17473: checking for fchflags configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:157:1: error: unknown type name 'choke' choke me ^ conftest.c:160:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' int ^ configure:17473: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | /* end confdefs.h. */ | /* Define fchflags to an innocuous variant, in case declares fchflags. | For example, HP-UX 11i declares gettimeofday. */ | #define fchflags innocuous_fchflags | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char fchflags (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef fchflags | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char fchflags (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_fchflags || defined __stub___fchflags | choke me | #endif | | int | main () | { | return fchflags (); | ; | return 0; | } configure:17473: result: no configure:17473: checking for fchmod configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17473: $? = 0 configure:17473: result: yes configure:17473: checking for fchown configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17473: $? = 0 configure:17473: result: yes configure:17473: checking for fcntl configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17473: $? = 0 configure:17473: result: yes configure:17473: checking for fdopendir configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17473: $? = 0 configure:17473: result: yes configure:17473: checking for fork configure:17473: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:156:6: warning: conflicting types for built-in function 'fork' char fork (); ^ configure:17473: $? = 0 configure:17473: result: yes configure:17485: checking for fstat configure:17485: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17485: $? = 0 configure:17485: result: yes configure:17485: checking for fstatat configure:17485: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17485: $? = 0 configure:17485: result: yes configure:17485: checking for fstatfs configure:17485: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17485: $? = 0 configure:17485: result: yes configure:17485: checking for fstatvfs configure:17485: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17485: $? = 0 configure:17485: result: yes configure:17485: checking for ftruncate configure:17485: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17485: $? = 0 configure:17485: result: yes configure:17497: checking for futimens configure:17497: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17497: $? = 0 configure:17497: result: yes configure:17497: checking for futimes configure:17497: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17497: $? = 0 configure:17497: result: yes configure:17497: checking for futimesat configure:17497: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17497: $? = 0 configure:17497: result: yes configure:17509: checking for geteuid configure:17509: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17509: $? = 0 configure:17509: result: yes configure:17509: checking for getpid configure:17509: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17509: $? = 0 configure:17509: result: yes configure:17509: checking for getgrgid_r configure:17509: result: yes configure:17509: checking for getgrnam_r configure:17509: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17509: $? = 0 configure:17509: result: yes configure:17521: checking for getpwnam_r configure:17521: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17521: $? = 0 configure:17521: result: yes configure:17521: checking for getpwuid_r configure:17521: result: yes configure:17521: checking for getvfsbyname configure:17521: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccskFILS.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `getvfsbyname' collect2: error: ld returned 1 exit status configure:17521: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | /* end confdefs.h. */ | /* Define getvfsbyname to an innocuous variant, in case declares getvfsbyname. | For example, HP-UX 11i declares gettimeofday. */ | #define getvfsbyname innocuous_getvfsbyname | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char getvfsbyname (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef getvfsbyname | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char getvfsbyname (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_getvfsbyname || defined __stub___getvfsbyname | choke me | #endif | | int | main () | { | return getvfsbyname (); | ; | return 0; | } configure:17521: result: no configure:17521: checking for gmtime_r configure:17521: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17521: $? = 0 configure:17521: result: yes configure:17533: checking for lchflags configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/cciblVWN.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `lchflags' collect2: error: ld returned 1 exit status configure:17533: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | /* end confdefs.h. */ | /* Define lchflags to an innocuous variant, in case declares lchflags. | For example, HP-UX 11i declares gettimeofday. */ | #define lchflags innocuous_lchflags | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char lchflags (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef lchflags | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char lchflags (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_lchflags || defined __stub___lchflags | choke me | #endif | | int | main () | { | return lchflags (); | ; | return 0; | } configure:17533: result: no configure:17533: checking for lchmod configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:177:1: error: unknown type name 'choke' choke me ^ conftest.c:180:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' int ^ configure:17533: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | /* end confdefs.h. */ | /* Define lchmod to an innocuous variant, in case declares lchmod. | For example, HP-UX 11i declares gettimeofday. */ | #define lchmod innocuous_lchmod | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char lchmod (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef lchmod | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char lchmod (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_lchmod || defined __stub___lchmod | choke me | #endif | | int | main () | { | return lchmod (); | ; | return 0; | } configure:17533: result: no configure:17533: checking for lchown configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17533: $? = 0 configure:17533: result: yes configure:17533: checking for link configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17533: $? = 0 configure:17533: result: yes configure:17533: checking for localtime_r configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17533: $? = 0 configure:17533: result: yes configure:17533: checking for lstat configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17533: $? = 0 configure:17533: result: yes configure:17533: checking for lutimes configure:17533: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17533: $? = 0 configure:17533: result: yes configure:17545: checking for mbrtowc configure:17545: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17545: $? = 0 configure:17545: result: yes configure:17545: checking for memmove configure:17545: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:178:6: warning: conflicting types for built-in function 'memmove' char memmove (); ^ configure:17545: $? = 0 configure:17545: result: yes configure:17545: checking for memset configure:17545: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:179:6: warning: conflicting types for built-in function 'memset' char memset (); ^ configure:17545: $? = 0 configure:17545: result: yes configure:17557: checking for mkdir configure:17557: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17557: $? = 0 configure:17557: result: yes configure:17557: checking for mkfifo configure:17557: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17557: $? = 0 configure:17557: result: yes configure:17557: checking for mknod configure:17557: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17557: $? = 0 configure:17557: result: yes configure:17557: checking for mkstemp configure:17557: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17557: $? = 0 configure:17557: result: yes configure:17569: checking for nl_langinfo configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17569: checking for openat configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17569: checking for pipe configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17569: checking for poll configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17569: checking for posix_spawnp configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17569: checking for readlink configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17569: checking for readlinkat configure:17569: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17569: $? = 0 configure:17569: result: yes configure:17580: checking for readpassphrase configure:17580: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/cc6vZ8cS.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `readpassphrase' collect2: error: ld returned 1 exit status configure:17580: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | /* end confdefs.h. */ | /* Define readpassphrase to an innocuous variant, in case declares readpassphrase. | For example, HP-UX 11i declares gettimeofday. */ | #define readpassphrase innocuous_readpassphrase | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char readpassphrase (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef readpassphrase | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char readpassphrase (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_readpassphrase || defined __stub___readpassphrase | choke me | #endif | | int | main () | { | return readpassphrase (); | ; | return 0; | } configure:17580: result: no configure:17592: checking for select configure:17592: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17592: $? = 0 configure:17592: result: yes configure:17592: checking for setenv configure:17592: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17592: $? = 0 configure:17592: result: yes configure:17592: checking for setlocale configure:17592: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17592: $? = 0 configure:17592: result: yes configure:17592: checking for sigaction configure:17592: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17592: $? = 0 configure:17592: result: yes configure:17592: checking for statfs configure:17592: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17592: $? = 0 configure:17592: result: yes configure:17592: checking for statvfs configure:17592: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17592: $? = 0 configure:17592: result: yes configure:17604: checking for strchr configure:17604: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:197:6: warning: conflicting types for built-in function 'strchr' char strchr (); ^ configure:17604: $? = 0 configure:17604: result: yes configure:17604: checking for strdup configure:17604: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:198:6: warning: conflicting types for built-in function 'strdup' char strdup (); ^ configure:17604: $? = 0 configure:17604: result: yes configure:17604: checking for strerror configure:17604: result: yes configure:17604: checking for strncpy_s configure:17604: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/cc2hnblp.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `strncpy_s' collect2: error: ld returned 1 exit status configure:17604: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | /* end confdefs.h. */ | /* Define strncpy_s to an innocuous variant, in case declares strncpy_s. | For example, HP-UX 11i declares gettimeofday. */ | #define strncpy_s innocuous_strncpy_s | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char strncpy_s (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef strncpy_s | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char strncpy_s (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_strncpy_s || defined __stub___strncpy_s | choke me | #endif | | int | main () | { | return strncpy_s (); | ; | return 0; | } configure:17604: result: no configure:17604: checking for strrchr configure:17604: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 conftest.c:200:6: warning: conflicting types for built-in function 'strrchr' char strrchr (); ^ configure:17604: $? = 0 configure:17604: result: yes configure:17604: checking for symlink configure:17604: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17604: $? = 0 configure:17604: result: yes configure:17604: checking for timegm configure:17604: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17604: $? = 0 configure:17604: result: yes configure:17616: checking for tzset configure:17616: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17616: $? = 0 configure:17616: result: yes configure:17616: checking for unsetenv configure:17616: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17616: $? = 0 configure:17616: result: yes configure:17616: checking for utime configure:17616: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17616: $? = 0 configure:17616: result: yes configure:17616: checking for utimensat configure:17616: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17616: $? = 0 configure:17616: result: yes configure:17616: checking for utimes configure:17616: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17616: $? = 0 configure:17616: result: yes configure:17616: checking for vfork configure:17616: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17616: $? = 0 configure:17616: result: yes configure:17628: checking for wcrtomb configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wcscmp configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wcscpy configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wcslen configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wctomb configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wmemcmp configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wmemcpy configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17628: checking for wmemmove configure:17628: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:17628: $? = 0 configure:17628: result: yes configure:17640: checking for _ctime64_s configure:17640: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccJMWVYj.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `_ctime64_s' collect2: error: ld returned 1 exit status configure:17640: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | /* Define _ctime64_s to an innocuous variant, in case declares _ctime64_s. | For example, HP-UX 11i declares gettimeofday. */ | #define _ctime64_s innocuous__ctime64_s | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _ctime64_s (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _ctime64_s | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char _ctime64_s (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__ctime64_s || defined __stub____ctime64_s | choke me | #endif | | int | main () | { | return _ctime64_s (); | ; | return 0; | } configure:17640: result: no configure:17640: checking for _fseeki64 configure:17640: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccQKzvkp.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `_fseeki64' collect2: error: ld returned 1 exit status configure:17640: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | /* Define _fseeki64 to an innocuous variant, in case declares _fseeki64. | For example, HP-UX 11i declares gettimeofday. */ | #define _fseeki64 innocuous__fseeki64 | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _fseeki64 (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _fseeki64 | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char _fseeki64 (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__fseeki64 || defined __stub____fseeki64 | choke me | #endif | | int | main () | { | return _fseeki64 (); | ; | return 0; | } configure:17640: result: no configure:17652: checking for _get_timezone configure:17652: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccV2gSGq.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `_get_timezone' collect2: error: ld returned 1 exit status configure:17652: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | /* Define _get_timezone to an innocuous variant, in case declares _get_timezone. | For example, HP-UX 11i declares gettimeofday. */ | #define _get_timezone innocuous__get_timezone | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _get_timezone (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _get_timezone | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char _get_timezone (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__get_timezone || defined __stub____get_timezone | choke me | #endif | | int | main () | { | return _get_timezone (); | ; | return 0; | } configure:17652: result: no configure:17652: checking for _localtime64_s configure:17652: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccUYDSwx.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `_localtime64_s' collect2: error: ld returned 1 exit status configure:17652: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | /* Define _localtime64_s to an innocuous variant, in case declares _localtime64_s. | For example, HP-UX 11i declares gettimeofday. */ | #define _localtime64_s innocuous__localtime64_s | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _localtime64_s (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _localtime64_s | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char _localtime64_s (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__localtime64_s || defined __stub____localtime64_s | choke me | #endif | | int | main () | { | return _localtime64_s (); | ; | return 0; | } configure:17652: result: no configure:17652: checking for _mkgmtime64 configure:17652: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccq4DASB.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `_mkgmtime64' collect2: error: ld returned 1 exit status configure:17652: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | /* Define _mkgmtime64 to an innocuous variant, in case declares _mkgmtime64. | For example, HP-UX 11i declares gettimeofday. */ | #define _mkgmtime64 innocuous__mkgmtime64 | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _mkgmtime64 (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _mkgmtime64 | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char _mkgmtime64 (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__mkgmtime64 || defined __stub____mkgmtime64 | choke me | #endif | | int | main () | { | return _mkgmtime64 (); | ; | return 0; | } configure:17652: result: no configure:17664: checking for cygwin_conv_path configure:17664: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /tmp/ccxtFf2C.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `cygwin_conv_path' collect2: error: ld returned 1 exit status configure:17664: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | /* Define cygwin_conv_path to an innocuous variant, in case declares cygwin_conv_path. | For example, HP-UX 11i declares gettimeofday. */ | #define cygwin_conv_path innocuous_cygwin_conv_path | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char cygwin_conv_path (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef cygwin_conv_path | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char cygwin_conv_path (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_cygwin_conv_path || defined __stub___cygwin_conv_path | choke me | #endif | | int | main () | { | return cygwin_conv_path (); | ; | return 0; | } configure:17664: result: no configure:17675: checking for struct vfsconf configure:17675: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:203:13: error: invalid application of 'sizeof' to incomplete type 'struct vfsconf' if (sizeof (struct vfsconf)) ^ configure:17675: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | #if HAVE_SYS_TYPES_H | #include | #endif | #include | | | int | main () | { | if (sizeof (struct vfsconf)) | return 0; | ; | return 0; | } configure:17675: result: no configure:17691: checking for struct xvfsconf configure:17691: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:203:13: error: invalid application of 'sizeof' to incomplete type 'struct xvfsconf' if (sizeof (struct xvfsconf)) ^ configure:17691: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | /* end confdefs.h. */ | #if HAVE_SYS_TYPES_H | #include | #endif | #include | | | int | main () | { | if (sizeof (struct xvfsconf)) | return 0; | ; | return 0; | } configure:17691: result: no configure:17721: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:199:13: warning: 'dir' is used uninitialized in this function [-Wuninitialized] return(readdir_r(dir, &e, &r)); ^ configure:17721: $? = 0 configure:17741: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:17741: $? = 0 configure:17752: checking whether D_MD_ORDER is declared configure:17752: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:208:10: error: 'D_MD_ORDER' undeclared (first use in this function) (void) D_MD_ORDER; ^ conftest.c:208:10: note: each undeclared identifier is reported only once for each function it appears in configure:17752: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #if HAVE_LANGINFO_H | #include | #endif | | | int | main () | { | #ifndef D_MD_ORDER | #ifdef __cplusplus | (void) D_MD_ORDER; | #else | (void) D_MD_ORDER; | #endif | #endif | | ; | return 0; | } configure:17752: result: no configure:17767: checking for struct dirent.d_namlen configure:17767: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:205:12: error: 'struct dirent' has no member named 'd_namlen' if (ac_aggr.d_namlen) ^ conftest.c:204:22: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct dirent ac_aggr; ^ configure:17767: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #if HAVE_DIRENT_H | #include | #endif | | | int | main () | { | static struct dirent ac_aggr; | if (ac_aggr.d_namlen) | return 0; | ; | return 0; | } configure:17767: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:205:19: error: 'struct dirent' has no member named 'd_namlen' if (sizeof ac_aggr.d_namlen) ^ conftest.c:204:22: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] static struct dirent ac_aggr; ^ configure:17767: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #if HAVE_DIRENT_H | #include | #endif | | | int | main () | { | static struct dirent ac_aggr; | if (sizeof ac_aggr.d_namlen) | return 0; | ; | return 0; | } configure:17767: result: no configure:18717: checking for special C compiler options needed for large files configure:18762: result: no configure:18768: checking for _FILE_OFFSET_BITS value needed for large files configure:18793: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:18793: $? = 0 configure:18825: result: no configure:18924: checking support for ARCHIVE_CRYPTO_MD5_LIBC configure:18946: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:61:17: fatal error: md5.h: No such file or directory compilation terminated. configure:18946: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:18956: result: no configure:18970: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM configure:18992: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory compilation terminated. configure:18992: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19002: result: no configure:19016: checking support for ARCHIVE_CRYPTO_RMD160_LIBC configure:19038: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:64:20: fatal error: rmd160.h: No such file or directory compilation terminated. configure:19038: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19048: result: no configure:19062: checking support for ARCHIVE_CRYPTO_SHA1_LIBC configure:19084: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:67:18: fatal error: sha1.h: No such file or directory compilation terminated. configure:19084: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19094: result: no configure:19108: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM configure:19130: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory compilation terminated. configure:19130: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19140: result: no configure:19154: checking support for ARCHIVE_CRYPTO_SHA256_LIBC configure:19176: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19176: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19186: result: no configure:19200: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2 configure:19222: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19222: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19232: result: no configure:19246: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3 configure:19268: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19268: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19278: result: no configure:19292: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM configure:19314: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory compilation terminated. configure:19314: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19324: result: no configure:19338: checking support for ARCHIVE_CRYPTO_SHA384_LIBC configure:19360: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19360: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19370: result: no configure:19384: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2 configure:19406: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19406: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19416: result: no configure:19430: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3 configure:19452: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19452: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19462: result: no configure:19476: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM configure:19498: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory compilation terminated. configure:19498: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19508: result: no configure:19522: checking support for ARCHIVE_CRYPTO_SHA512_LIBC configure:19544: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19544: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19554: result: no configure:19568: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2 configure:19590: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19590: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19600: result: no configure:19614: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3 configure:19636: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory compilation terminated. configure:19636: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19646: result: no configure:19660: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM configure:19682: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory compilation terminated. configure:19682: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #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; | } | configure:19692: result: no configure:19707: checking for bcrypt.h configure:19707: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:201:20: fatal error: bcrypt.h: No such file or directory compilation terminated. configure:19707: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #ifdef HAVE_WINDOWS_H | # include | #endif | | | #include configure:19707: result: no configure:20630: checking md5.h usability configure:20630: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:229:17: fatal error: md5.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:20630: result: no configure:20630: checking md5.h presence configure:20630: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:196:17: fatal error: md5.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include configure:20630: result: no configure:20630: checking for md5.h configure:20630: result: no configure:20630: checking ripemd.h usability configure:20630: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:229:20: fatal error: ripemd.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:20630: result: no configure:20630: checking ripemd.h presence configure:20630: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:196:20: fatal error: ripemd.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include configure:20630: result: no configure:20630: checking for ripemd.h configure:20630: result: no configure:20630: checking sha.h usability configure:20630: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:229:17: fatal error: sha.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:20630: result: no configure:20630: checking sha.h presence configure:20630: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:196:17: fatal error: sha.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include configure:20630: result: no configure:20630: checking for sha.h configure:20630: result: no configure:20630: checking sha256.h usability configure:20630: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:229:20: fatal error: sha256.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:20630: result: no configure:20630: checking sha256.h presence configure:20630: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:196:20: fatal error: sha256.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include configure:20630: result: no configure:20630: checking for sha256.h configure:20630: result: no configure:20630: checking sha512.h usability configure:20630: gcc -c -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:229:20: fatal error: sha512.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:20630: result: no configure:20630: checking sha512.h presence configure:20630: gcc -E -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:196:20: fatal error: sha512.h: No such file or directory compilation terminated. configure:20630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | #include configure:20630: result: no configure:20630: checking for sha512.h configure:20630: result: no configure:20641: checking for MD5Init in -lmd configure:20666: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lmd -llzo2 -llzma -lbz2 -lz >&5 /data/oblac-provisioner/tmp/hosttools/ld: cannot find -lmd collect2: error: ld returned 1 exit status configure:20666: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char MD5Init (); | int | main () | { | return MD5Init (); | ; | return 0; | } configure:20675: result: no configure:20691: checking support for ARCHIVE_CRYPTO_MD5_LIBMD configure:20713: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:91:17: fatal error: md5.h: No such file or directory compilation terminated. configure:20713: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #define ARCHIVE_MD5_COMPILE_TEST | #define ARCHIVE_CRYPTO_MD5_LIBMD | #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; | } | configure:20723: result: no configure:20737: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD configure:20759: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:94:20: fatal error: ripemd.h: No such file or directory compilation terminated. configure:20759: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #define ARCHIVE_RMD160_COMPILE_TEST | #define ARCHIVE_CRYPTO_RMD160_LIBMD | #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; | } | configure:20769: result: no configure:20783: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD configure:20805: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:97:17: fatal error: sha.h: No such file or directory compilation terminated. configure:20805: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #define ARCHIVE_SHA1_COMPILE_TEST | #define ARCHIVE_CRYPTO_SHA1_LIBMD | #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; | } | configure:20815: result: no configure:20829: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD configure:20851: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:100:20: fatal error: sha256.h: No such file or directory compilation terminated. configure:20851: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #define ARCHIVE_SHA256_COMPILE_TEST | #define ARCHIVE_CRYPTO_SHA256_LIBMD | #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; | } | configure:20861: result: no configure:20875: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD configure:20897: gcc -o conftest -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.3.2 -I../libarchive-3.3.2/libarchive -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 In file included from conftest.c:231:0: ../libarchive-3.3.2/libarchive/archive_digest_private.h:103:20: fatal error: sha512.h: No such file or directory compilation terminated. configure:20897: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.3.2" | #define PACKAGE_STRING "libarchive 3.3.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.3.2" | #define LIBARCHIVE_VERSION_STRING "3.3.2" | #define LIBARCHIVE_VERSION_NUMBER "3003002" | #define BSDCPIO_VERSION_STRING "3.3.2" | #define BSDTAR_VERSION_STRING "3.3.2" | #define BSDCAT_VERSION_STRING "3.3.2" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_DIRENT_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_ATTR_XATTR_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_EXT2FS_EXT2_FS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LINUX_FIEMAP_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_LINUX_MAGIC_H 1 | #define HAVE_LINUX_TYPES_H 1 | #define HAVE_WORKING_FS_IOC_GETFLAGS 1 | #define HAVE_LOCALE_H 1 | #define HAVE_PATHS_H 1 | #define HAVE_POLL_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_PWD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SPAWN_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_STATFS_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_XATTR_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_WCTYPE_H 1 | #define HAVE_ZLIB_H 1 | #define HAVE_LIBZ 1 | #define HAVE_BZLIB_H 1 | #define HAVE_LIBBZ2 1 | #define HAVE_ICONV 1 | #define ICONV_CONST | #define HAVE_ICONV_H 1 | #define HAVE_LZMA_H 1 | #define HAVE_LIBLZMA 1 | #define HAVE_LZMA_STREAM_ENCODER_MT 1 | #define HAVE_LZO_LZOCONF_H 1 | #define HAVE_LZO_LZO1X_H 1 | #define HAVE_LIBLZO2 1 | #define HAVE_REGEX_H 1 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_UNSIGNED_LONG_LONG 1 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | #define HAVE_LONG_LONG_INT 1 | #define HAVE_INTMAX_T 1 | #define HAVE_UINTMAX_T 1 | #define HAVE_DECL_SIZE_MAX 1 | #define HAVE_DECL_INT32_MAX 1 | #define HAVE_DECL_INT32_MIN 1 | #define HAVE_DECL_INT64_MAX 1 | #define HAVE_DECL_INT64_MIN 1 | #define HAVE_DECL_UINT64_MAX 1 | #define HAVE_DECL_UINT32_MAX 1 | #define HAVE_DECL_INTMAX_MAX 1 | #define HAVE_DECL_INTMAX_MIN 1 | #define HAVE_DECL_UINTMAX_MAX 1 | #define HAVE_DECL_SSIZE_MAX 1 | #define HAVE_EILSEQ 1 | #define HAVE_WCHAR_T 1 | #define SIZEOF_WCHAR_T 4 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_SYS_TYPES_H 1 | #define MAJOR_IN_SYSMACROS 1 | #define HAVE_FSEEKO 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define HAVE_DECL_STRERROR_R 1 | #define HAVE_STRERROR_R 1 | #define STRERROR_R_CHAR_P 1 | #define HAVE_STRFTIME 1 | #define HAVE_VPRINTF 1 | #define HAVE_CHOWN 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_FCHDIR 1 | #define HAVE_FCHMOD 1 | #define HAVE_FCHOWN 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FORK 1 | #define HAVE_FSTAT 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSTATFS 1 | #define HAVE_FSTATVFS 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_FUTIMENS 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_GETEUID 1 | #define HAVE_GETPID 1 | #define HAVE_GETGRGID_R 1 | #define HAVE_GETGRNAM_R 1 | #define HAVE_GETPWNAM_R 1 | #define HAVE_GETPWUID_R 1 | #define HAVE_GMTIME_R 1 | #define HAVE_LCHOWN 1 | #define HAVE_LINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_LSTAT 1 | #define HAVE_LUTIMES 1 | #define HAVE_MBRTOWC 1 | #define HAVE_MEMMOVE 1 | #define HAVE_MEMSET 1 | #define HAVE_MKDIR 1 | #define HAVE_MKFIFO 1 | #define HAVE_MKNOD 1 | #define HAVE_MKSTEMP 1 | #define HAVE_NL_LANGINFO 1 | #define HAVE_OPENAT 1 | #define HAVE_PIPE 1 | #define HAVE_POLL 1 | #define HAVE_POSIX_SPAWNP 1 | #define HAVE_READLINK 1 | #define HAVE_READLINKAT 1 | #define HAVE_SELECT 1 | #define HAVE_SETENV 1 | #define HAVE_SETLOCALE 1 | #define HAVE_SIGACTION 1 | #define HAVE_STATFS 1 | #define HAVE_STATVFS 1 | #define HAVE_STRCHR 1 | #define HAVE_STRDUP 1 | #define HAVE_STRERROR 1 | #define HAVE_STRRCHR 1 | #define HAVE_SYMLINK 1 | #define HAVE_TIMEGM 1 | #define HAVE_TZSET 1 | #define HAVE_UNSETENV 1 | #define HAVE_UTIME 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_UTIMES 1 | #define HAVE_VFORK 1 | #define HAVE_WCRTOMB 1 | #define HAVE_WCSCMP 1 | #define HAVE_WCSCPY 1 | #define HAVE_WCSLEN 1 | #define HAVE_WCTOMB 1 | #define HAVE_WMEMCMP 1 | #define HAVE_WMEMCPY 1 | #define HAVE_WMEMMOVE 1 | #define HAVE_READDIR_R 1 | #define HAVE_DIRFD 1 | /* end confdefs.h. */ | | #define ARCHIVE_SHA512_COMPILE_TEST | #define ARCHIVE_CRYPTO_SHA512_LIBMD | #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; | } | configure:20907: result: no configure:21301: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by libarchive config.status 3.3.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on ip-172-30-4-23 config.status:1276: creating Makefile config.status:1276: creating build/pkgconfig/libarchive.pc config.status:1276: creating config.h config.status:1490: executing depfiles commands config.status:1490: executing libtool commands config.status:1490: executing mkdirs commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv___va_copy=yes ac_cv_af_unix_large_dgram=yes ac_cv_alignof_CORBA_boolean=1 ac_cv_alignof_CORBA_char=1 ac_cv_alignof_CORBA_double=8 ac_cv_alignof_CORBA_float=4 ac_cv_alignof_CORBA_long=4 ac_cv_alignof_CORBA_long_double=8 ac_cv_alignof_CORBA_long_long=8 ac_cv_alignof_CORBA_octet=1 ac_cv_alignof_CORBA_pointer=8 ac_cv_alignof_CORBA_short=2 ac_cv_alignof_CORBA_struct=1 ac_cv_alignof_CORBA_wchar=2 ac_cv_alignof_char=1 ac_cv_alignof_dbind_pointer=8 ac_cv_alignof_dbind_struct=1 ac_cv_alignof_dbus_bool_t=4 ac_cv_alignof_dbus_int16_t=2 ac_cv_alignof_dbus_int32_t=4 ac_cv_alignof_dbus_int64_t=8 ac_cv_alignof_double=8 ac_cv_alignof_guint32=4 ac_cv_alignof_guint64=8 ac_cv_alignof_unsigned_long=8 ac_cv_buggy_getaddrinfo=no ac_cv_build=x86_64-pc-linux-gnu ac_cv_c_bigendian=no ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_c_endian=little ac_cv_c_int16_t=yes ac_cv_c_int32_t=yes ac_cv_c_int64_t=yes ac_cv_c_littleendian=yes ac_cv_c_uint16_t=yes ac_cv_c_uint32_t=yes ac_cv_c_uint64_t=yes ac_cv_c_uint8_t=yes ac_cv_check_sjlj=ssjlj ac_cv_conv_longlong_to_float=yes ac_cv_env_CC_set=set ac_cv_env_CC_value='gcc ' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include ac_cv_env_CPP_set=set ac_cv_env_CPP_value='gcc -E' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LIBXML2_PC_CFLAGS_set= ac_cv_env_LIBXML2_PC_CFLAGS_value= ac_cv_env_LIBXML2_PC_LIBS_set= ac_cv_env_LIBXML2_PC_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_PKG_CONFIG_LIBDIR_set=set ac_cv_env_PKG_CONFIG_LIBDIR_value=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib/pkgconfig ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib/pkgconfig:/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/pkgconfig ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-linux ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=x86_64-linux ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=x86_64-linux ac_cv_epoll_works=yes ac_cv_file__dev_random=yes ac_cv_file__dev_zero=yes ac_cv_func_CreateHardLinkA=no ac_cv_func___ashldi3=no ac_cv_func___ashrdi3=no ac_cv_func___bswapdi2=no ac_cv_func___bswapsi2=no ac_cv_func___lshrdi3=no ac_cv_func___trampoline_setup=no ac_cv_func___ucmpdi2=no ac_cv_func___va_copy=yes ac_cv_func__ctime64_s=no ac_cv_func__doprnt=no ac_cv_func__fseeki64=no ac_cv_func__get_timezone=no ac_cv_func__localtime64_s=no ac_cv_func__mkgmtime64=no ac_cv_func__restgpr_14_x=no ac_cv_func_arc4random_buf=no ac_cv_func_chflags=no ac_cv_func_chown=yes ac_cv_func_chroot=yes ac_cv_func_ctime_r=yes ac_cv_func_cygwin_conv_path=no ac_cv_func_fchdir=yes ac_cv_func_fchflags=no ac_cv_func_fchmod=yes ac_cv_func_fchown=yes ac_cv_func_fcntl=yes ac_cv_func_fdopendir=yes ac_cv_func_fork=yes ac_cv_func_fstat=yes ac_cv_func_fstatat=yes ac_cv_func_fstatfs=yes ac_cv_func_fstatvfs=yes ac_cv_func_ftruncate=yes ac_cv_func_futimens=yes ac_cv_func_futimes=yes ac_cv_func_futimesat=yes ac_cv_func_getaddrinfo=yes ac_cv_func_geteuid=yes ac_cv_func_getgrgid_r=yes ac_cv_func_getgrnam_r=yes ac_cv_func_getpagesize=yes ac_cv_func_getpgrp_void=yes ac_cv_func_getpid=yes ac_cv_func_getpwnam_r=yes ac_cv_func_getpwuid_r=yes ac_cv_func_getvfsbyname=no ac_cv_func_gmtime_r=yes ac_cv_func_lchflags=no ac_cv_func_lchmod=no ac_cv_func_lchown=yes ac_cv_func_link=yes ac_cv_func_locale_charset=no ac_cv_func_localtime_r=yes ac_cv_func_lstat=yes ac_cv_func_lstat_dereferences_slashed_symlink=yes ac_cv_func_lstat_empty_string_bug=no ac_cv_func_lutimes=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_works=yes ac_cv_func_mbrtowc=yes ac_cv_func_memcmp_working=yes ac_cv_func_memcpy=yes ac_cv_func_memmove=yes ac_cv_func_memset=yes ac_cv_func_mkdir=yes ac_cv_func_mkfifo=yes ac_cv_func_mknod=yes ac_cv_func_mkstemp=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_nl_langinfo=yes ac_cv_func_openat=yes ac_cv_func_pipe=yes ac_cv_func_poll=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_func_posix_getpwnam_r=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_spawnp=yes ac_cv_func_printf_unix98=yes ac_cv_func_pthread_attr_getstack=yes ac_cv_func_pthread_key_delete=yes ac_cv_func_readlink=yes ac_cv_func_readlinkat=yes ac_cv_func_readpassphrase=no ac_cv_func_realloc_0_nonnull=yes ac_cv_func_realloc_works=yes ac_cv_func_regcomp=yes ac_cv_func_select=yes ac_cv_func_setenv=yes ac_cv_func_setgrent_void=yes ac_cv_func_setlocale=yes ac_cv_func_setpgrp_void=yes ac_cv_func_setresuid=yes ac_cv_func_setvbuf_reversed=no ac_cv_func_sigaction=yes ac_cv_func_snprintf_c99=yes ac_cv_func_stat_empty_string_bug=no ac_cv_func_stat_ignores_trailing_slash=no ac_cv_func_statfs=yes ac_cv_func_statvfs=yes ac_cv_func_strchr=yes ac_cv_func_strdup=yes ac_cv_func_strerror=yes ac_cv_func_strerror_r=yes ac_cv_func_strerror_r_char_p=yes ac_cv_func_strftime=yes ac_cv_func_strncpy_s=no ac_cv_func_strrchr=yes ac_cv_func_symlink=yes ac_cv_func_timegm=yes ac_cv_func_tzset=yes ac_cv_func_unsetenv=yes ac_cv_func_utime=yes ac_cv_func_utimensat=yes ac_cv_func_utimes=yes ac_cv_func_va_copy=yes ac_cv_func_vfork=yes ac_cv_func_vprintf=yes ac_cv_func_vsnprintf_c99=yes ac_cv_func_wcrtomb=yes ac_cv_func_wcscmp=yes ac_cv_func_wcscpy=yes ac_cv_func_wcslen=yes ac_cv_func_wctomb=yes ac_cv_func_wmemcmp=yes ac_cv_func_wmemcpy=yes ac_cv_func_wmemmove=yes ac_cv_have_abstract_sockets=yes ac_cv_have_decl_D_MD_ORDER=no ac_cv_have_decl_EFTYPE=no ac_cv_have_decl_EILSEQ=yes ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes ac_cv_have_decl_FS_IOC_GETFLAGS=yes ac_cv_have_decl_INT32_MAX=yes ac_cv_have_decl_INT32_MIN=yes ac_cv_have_decl_INT64_MAX=yes ac_cv_have_decl_INT64_MIN=yes ac_cv_have_decl_INTMAX_MAX=yes ac_cv_have_decl_INTMAX_MIN=yes ac_cv_have_decl_SIZE_MAX=yes ac_cv_have_decl_SSIZE_MAX=yes ac_cv_have_decl_UINT32_MAX=yes ac_cv_have_decl_UINT64_MAX=yes ac_cv_have_decl_UINTMAX_MAX=yes ac_cv_have_decl_strerror_r=yes ac_cv_have_decl_sys_siglist=yes ac_cv_have_long_long_format=yes ac_cv_header_X=no ac_cv_header__CC=no ac_cv_header__CFLAGS=no ac_cv_header__CPPFLAGS=no ac_cv_header___5=no ac_cv_header__c=no ac_cv_header_acl_libacl_h=no ac_cv_header_attr_xattr_h=yes ac_cv_header_bcrypt_h=no ac_cv_header_bzlib_h=yes ac_cv_header_conftest__ac_ext=no ac_cv_header_copyfile_h=no ac_cv_header_ctype_h=yes ac_cv_header_curses_h=yes ac_cv_header_dirent_dirent_h=yes ac_cv_header_dlfcn_h=yes ac_cv_header_errno_h=yes ac_cv_header_ext2fs_ext2_fs_h=yes ac_cv_header_fcntl_h=yes ac_cv_header_grp_h=yes ac_cv_header_iconv_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_io_h=no ac_cv_header_langinfo_h=yes ac_cv_header_limits_h=yes ac_cv_header_linux_fiemap_h=yes ac_cv_header_linux_fs_h=yes ac_cv_header_linux_magic_h=yes ac_cv_header_linux_types_h=yes ac_cv_header_localcharset_h=no ac_cv_header_locale_h=yes ac_cv_header_lzma_h=yes ac_cv_header_lzo_lzo1x_h=yes ac_cv_header_lzo_lzoconf_h=yes ac_cv_header_md5_h=no ac_cv_header_membership_h=no ac_cv_header_memory_h=yes ac_cv_header_minix_config_h=no ac_cv_header_ncurses_curses_h=yes ac_cv_header_ncurses_h=yes ac_cv_header_ncurses_termcap_h=yes ac_cv_header_paths_h=yes ac_cv_header_poll_h=yes ac_cv_header_pthread_h=yes ac_cv_header_pwd_h=yes ac_cv_header_readpassphrase_h=no ac_cv_header_regex_h=yes ac_cv_header_ripemd_h=no ac_cv_header_sha256_h=no ac_cv_header_sha512_h=no ac_cv_header_sha_h=no ac_cv_header_signal_h=yes ac_cv_header_spawn_h=yes ac_cv_header_stdarg_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_acl_h=no ac_cv_header_sys_cdefs_h=yes ac_cv_header_sys_ea_h=no ac_cv_header_sys_extattr_h=no ac_cv_header_sys_ioctl_h=yes ac_cv_header_sys_mkdev_h=no ac_cv_header_sys_mount_h=yes ac_cv_header_sys_param_h=yes ac_cv_header_sys_poll_h=yes ac_cv_header_sys_richacl_h=no ac_cv_header_sys_select_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_statfs_h=yes ac_cv_header_sys_statvfs_h=yes ac_cv_header_sys_sysmacros_h=yes ac_cv_header_sys_time_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_sys_utime_h=no ac_cv_header_sys_utsname_h=yes ac_cv_header_sys_vfs_h=yes ac_cv_header_sys_wait_h=yes ac_cv_header_sys_xattr_h=yes ac_cv_header_time=yes ac_cv_header_time_h=yes ac_cv_header_unistd_h=yes ac_cv_header_utime_h=yes ac_cv_header_wchar_h=yes ac_cv_header_wctype_h=yes ac_cv_header_wincrypt_h=no ac_cv_header_windows_h=no ac_cv_header_winioctl_h=no ac_cv_header_zlib_h=yes ac_cv_host=x86_64-pc-linux-gnu ac_cv_lib_bz2_BZ2_bzDecompressInit=yes ac_cv_lib_charset_locale_charset=no ac_cv_lib_lzma_lzma_stream_decoder=yes ac_cv_lib_lzo2_lzo1x_decompress_safe=yes ac_cv_lib_m_sin=yes ac_cv_lib_md_MD5Init=no ac_cv_lib_z_inflate=yes ac_cv_libnet_endianess=lil ac_cv_linux_vers=2 ac_cv_lzma_has_mt=yes ac_cv_member_struct_dirent_d_namlen=no ac_cv_member_struct_stat_st_birthtime=no ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no ac_cv_member_struct_stat_st_blksize=yes ac_cv_member_struct_stat_st_flags=no ac_cv_member_struct_stat_st_mtim_tv_nsec=yes ac_cv_member_struct_stat_st_mtime_n=no ac_cv_member_struct_stat_st_mtime_usec=no ac_cv_member_struct_stat_st_mtimespec_tv_nsec=no ac_cv_member_struct_stat_st_umtime=no ac_cv_member_struct_statfs_f_namemax=no ac_cv_member_struct_statvfs_f_iosize=no ac_cv_member_struct_tm___tm_gmtoff=no ac_cv_member_struct_tm_tm_gmtoff=yes ac_cv_need_trio=no ac_cv_o_nonblock_inherited=no ac_cv_objext=o ac_cv_path_EGREP='/data/oblac-provisioner/tmp/hosttools/grep -E' ac_cv_path_FGREP='/data/oblac-provisioner/tmp/hosttools/grep -F' ac_cv_path_GREP=/data/oblac-provisioner/tmp/hosttools/grep ac_cv_path_SED=sed ac_cv_path_install='/data/oblac-provisioner/tmp/hosttools/install -c' ac_cv_path_lt_DD=/data/oblac-provisioner/tmp/hosttools/dd ac_cv_path_mkdir=/data/oblac-provisioner/tmp/hosttools/mkdir ac_cv_prog_AR=ar ac_cv_prog_AWK=gawk ac_cv_prog_CC='gcc ' ac_cv_prog_CPP='gcc -E' ac_cv_prog_DLLTOOL=dlltool ac_cv_prog_OBJDUMP=objdump ac_cv_prog_RANLIB=ranlib ac_cv_prog_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_gcc_traditional=no ac_cv_prog_make_make_set=yes ac_cv_safe_to_define___extensions__=yes ac_cv_search_opendir='none required' ac_cv_sizeof___int64=0 ac_cv_sizeof_char=1 ac_cv_sizeof_dev_t=8 ac_cv_sizeof_gid_t=4 ac_cv_sizeof_int=4 ac_cv_sizeof_long=8 ac_cv_sizeof_long_double=16 ac_cv_sizeof_long_int=8 ac_cv_sizeof_long_long=8 ac_cv_sizeof_pid_t=4 ac_cv_sizeof_short=2 ac_cv_sizeof_short_int=2 ac_cv_sizeof_size_t=8 ac_cv_sizeof_uid_t=4 ac_cv_sizeof_unsigned_int=4 ac_cv_sizeof_unsigned_long=8 ac_cv_sizeof_unsigned_short=2 ac_cv_sizeof_void_p=8 ac_cv_sizeof_wchar_t=4 ac_cv_strerror_r_SUSv3=no ac_cv_sys_file_offset_bits=no ac_cv_sys_largefile_CC=no ac_cv_sys_largefile_source=no ac_cv_sys_restartable_syscalls=yes ac_cv_type_id_t=yes ac_cv_type_intmax_t=yes ac_cv_type_long_long_int=yes ac_cv_type_mode_t=yes ac_cv_type_off_t=yes ac_cv_type_size_t=yes ac_cv_type_struct_vfsconf=no ac_cv_type_struct_xvfsconf=no ac_cv_type_uid_t='{ac_cv_type_uid_t=yes}' ac_cv_type_uintmax_t=yes ac_cv_type_uintptr_t=yes ac_cv_type_unsigned_long_long=yes ac_cv_type_unsigned_long_long_int=yes ac_cv_type_wchar_t=yes ac_cv_va_copy=yes ac_cv_va_val_copy=no acl_cv_hardcode_direct=no acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' acl_cv_hardcode_libdir_separator= acl_cv_hardcode_minus_L=no acl_cv_libext=a acl_cv_libname_spec='lib$name' acl_cv_library_names_spec='$libname$shrext' acl_cv_path_LD='ld -m elf_x86_64' acl_cv_prog_gnu_ld=yes acl_cv_rpath=done acl_cv_shlibext=so acl_cv_wl=-Wl, am_cv_CC_dependencies_compiler_type=none am_cv_func_iconv=yes am_cv_func_iconv_works=yes am_cv_func_working_getline=yes am_cv_lib_iconv=no am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes am_cv_proto_iconv='extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);' am_cv_proto_iconv_arg1= am_cv_scanf_lld=yes apr_cv_process_shared_works=no apr_cv_tcp_nodelay_with_cork=yes as_cv_unaligned_access=yes ax_cv_check_cflags___Wall=yes ax_cv_check_cflags___Wformat=yes ax_cv_check_cflags___Wformat_security=yes bash_cv_dup2_broken=no bash_cv_func_sigsetjmp=present bash_cv_func_strcoll_broken=no bash_cv_getcwd_calls_popen=no bash_cv_getcwd_malloc=yes bash_cv_getenv_redef=yes bash_cv_have_mbstate_t=yes bash_cv_job_control_missing=present bash_cv_must_reinstall_sighandlers=no bash_cv_opendir_not_robust=no bash_cv_pgrp_pipe=no bash_cv_printf_a_format=yes bash_cv_sys_named_pipes=present bash_cv_sys_siglist=yes bash_cv_type_rlimit=rlim_t bash_cv_ulimit_maxfds=yes bash_cv_under_sys_siglist=yes bash_cv_unusable_rtsigs=no cvs_cv_func_printf_ptr=yes db_cv_align_t='unsigned long long' db_cv_alignp_t='unsigned long long' db_cv_fcntl_f_setfd=yes db_cv_path_ar=/usr/bin/ar db_cv_path_chmod=/bin/chmod db_cv_path_cp=/bin/cp db_cv_path_ln=/bin/ln db_cv_path_mkdir=/bin/mkdir db_cv_path_ranlib=/usr/bin/ranlib db_cv_path_rm=/bin/rm db_cv_path_sh=/bin/sh db_cv_path_strip=/usr/bin/strip db_cv_sprintf_count=yes fu_cv_sys_stat_statfs2_bsize=yes gl_cv_func_btowc_eof=yes gl_cv_func_fstatat_zero_flag=yes gl_cv_func_mbrtowc_incomplete_state=yes gl_cv_func_mbrtowc_nul_retval=yes gl_cv_func_mbrtowc_null_arg=yes gl_cv_func_mbrtowc_retval=yes gl_cv_func_mbrtowc_sanitycheck=yes gl_cv_func_sleep_works=yes gl_cv_func_wcrtomb_retval=yes gl_cv_func_wctob_works=yes gl_cv_have_proc_uptime=yes gl_cv_header_working_fcntl_h=yes glib_cv___va_copy=yes glib_cv_compliant_posix_memalign=1 glib_cv_has__inline=yes glib_cv_has__inline__=yes glib_cv_hasinline=yes glib_cv_have_qsort_r=yes glib_cv_long_long_format=ll glib_cv_rtldglobal_broken=yes glib_cv_sane_realloc=yes glib_cv_sizeof_gmutex=40 glib_cv_sizeof_intmax_t=8 glib_cv_sizeof_ptrdiff_t=8 glib_cv_sizeof_size_t=8 glib_cv_sizeof_system_thread=8 glib_cv_stack_grows=no glib_cv_strlcpy=no glib_cv_sys_pthread_cond_timedwait_posix=yes glib_cv_sys_pthread_getspecific_posix=yes glib_cv_sys_pthread_mutex_trylock_posix=yes glib_cv_uscore=no glib_cv_va_copy=yes glib_cv_va_val_copy=no gt_cv_locale_fr=fr_FR hw_cv_func_snprintf_c99=yes hw_cv_func_vsnprintf_c99=yes la_cv_type_uid_t=yes lf_cv_sane_realloc=yes lftp_cv_va_val_copy=no libIDL_cv_long_long_format=ll lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=no lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD='ld ' lt_cv_path_NM=nm lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_gnu_ld=yes lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath=no lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' lt_cv_sys_global_symbol_to_import= lt_cv_sys_lib_dlsearch_path_spec='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib /lib /lib64 /usr/lib /usr/lib64' lt_cv_sys_max_cmd_len=1572864 lt_cv_to_host_file_cmd=func_convert_file_noop lt_cv_to_tool_file_cmd=func_convert_file_noop lt_cv_truncate_bin='/data/oblac-provisioner/tmp/hosttools/dd bs=4096 count=1' mr_cv_target_elf=yes nano_cv_func_regexec_segv_emptystr=no nfsd_cv_broken_setfsuid=0 nfsd_cv_bsd_signals=yes nfsd_cv_func_statfs=statfs2_bsize rsync_cv_HAVE_C99_VSNPRINTF=yes samba_cv_HAVE_IFACE_AIX=no samba_cv_HAVE_IFACE_IFCONF=yes samba_cv_HAVE_IFACE_IFREQ=yes samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no samba_cv_HAVE_VA_COPY=yes screen_cv_sys_bcopy_overlap=no screen_cv_sys_fifo_broken_impl=yes screen_cv_sys_fifo_usable=yes screen_cv_sys_memcpy_overlap=no screen_cv_sys_memmove_overlap=no screen_cv_sys_select_broken_retval=no screen_cv_sys_sockets_nofs=no screen_cv_sys_sockets_usable=yes screen_cv_sys_terminfo_used=yes shadow_cv_logdir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/var/log shadow_cv_maildir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/var/spool/mail shadow_cv_mailfile=Mailbox shadow_cv_passwd_dir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/bin shadow_cv_utmpdir=/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/var/run slrn_cv_va_val_copy=no sudo_cv_func_unsetenv_void=no tcl_cv_api_serial=termios utils_cv_sys_open_max=1015 xorg_cv_malloc0_returns_null=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/libarchive-3.3.2/build/autoconf/missing aclocal-1.15' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='#' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='ar' ARCHIVE_LIBTOOL_VERSION='16:2:3' AS='as ' AUTOCONF='${SHELL} /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/libarchive-3.3.2/build/autoconf/missing autoconf' AUTOHEADER='${SHELL} /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/libarchive-3.3.2/build/autoconf/missing autoheader' AUTOMAKE='${SHELL} /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/libarchive-3.3.2/build/autoconf/missing automake-1.15' AWK='gawk' BSDCAT_VERSION_STRING='3.3.2' BSDCPIO_VERSION_STRING='3.3.2' BSDTAR_VERSION_STRING='3.3.2' BUILD_BSDCAT_FALSE='#' BUILD_BSDCAT_TRUE='' BUILD_BSDCPIO_FALSE='#' BUILD_BSDCPIO_TRUE='' BUILD_BSDTAR_FALSE='#' BUILD_BSDTAR_TRUE='' CC='gcc ' CCDEPMODE='depmode=none' CFLAGS='-isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security' CPP='gcc -E' CPPFLAGS='-isystem/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DLLTOOL='dlltool' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/data/oblac-provisioner/tmp/hosttools/grep -E' EXEEXT='' FGREP='/data/oblac-provisioner/tmp/hosttools/grep -F' GREP='/data/oblac-provisioner/tmp/hosttools/grep' INC_CYGWIN_FILES_FALSE='' INC_CYGWIN_FILES_TRUE='#' INC_DARWIN_ACL_FALSE='' INC_DARWIN_ACL_TRUE='#' INC_FREEBSD_ACL_FALSE='' INC_FREEBSD_ACL_TRUE='#' INC_LINUX_ACL_FALSE='' INC_LINUX_ACL_TRUE='#' INC_SUNOS_ACL_FALSE='' INC_SUNOS_ACL_TRUE='#' INC_WINDOWS_FILES_FALSE='' INC_WINDOWS_FILES_TRUE='#' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='ld -m elf_x86_64' LDFLAGS='-L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -L/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/data/oblac-provisioner/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2' LIBARCHIVE_VERSION_NUMBER='3003002' LIBARCHIVE_VERSION_STRING='3.3.2' LIBICONV='' LIBOBJS='' LIBS='-llzo2 -llzma -lbz2 -lz ' LIBTOOL='$(top_builddir)/x86_64-linux-libtool' LIBXML2_PC_CFLAGS='' LIBXML2_PC_LIBS='' LIPO='' LN_S='ln -s' LTLIBICONV='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MAINT='' MAINTAINER_MODE_FALSE='#' MAINTAINER_MODE_TRUE='' MAKEINFO='${SHELL} /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/libarchive-3.3.2/build/autoconf/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/data/oblac-provisioner/tmp/hosttools/mkdir -p' NM='nm' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OTOOL64='' OTOOL='' PACKAGE='libarchive' PACKAGE_BUGREPORT='libarchive-discuss@googlegroups.com' PACKAGE_NAME='libarchive' PACKAGE_STRING='libarchive 3.3.2' PACKAGE_TARNAME='libarchive' PACKAGE_URL='' PACKAGE_VERSION='3.3.2' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib/pkgconfig' PKG_CONFIG_PATH='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib/pkgconfig:/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/pkgconfig' PLATFORMCPPFLAGS='' RANLIB='ranlib' SED='sed' SET_MAKE='' SHELL='/bin/bash' STATIC_BSDCAT_FALSE='' STATIC_BSDCAT_TRUE='#' STATIC_BSDCPIO_FALSE='' STATIC_BSDCPIO_TRUE='#' STATIC_BSDTAR_FALSE='' STATIC_BSDTAR_TRUE='#' STRIP='strip' VERSION='3.3.2' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='#' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='#' am__include='include' am__isrc=' -I$(srcdir)' am__leading_dot='.' am__nodep='' am__quote='' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/bin' build='x86_64-pc-linux-gnu' build_alias='x86_64-linux' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr' host='x86_64-pc-linux-gnu' host_alias='x86_64-linux' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include' infodir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/info' install_sh='${SHELL} /data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/libarchive-3.3.2/build/autoconf/install-sh' libdir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/lib' libexecdir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/libexec' localedir='${datarootdir}/locale' localstatedir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/var' mandir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/share/man' mkdir_p='$(MKDIR_P)' oldincludedir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/include' pdfdir='${docdir}' prefix='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/usr/sbin' sharedstatedir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/com' sysconfdir='/data/oblac-provisioner/tmp/work/x86_64-linux/libarchive-native/3.3.2-r0/recipe-sysroot-native/etc' target_alias='x86_64-linux' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "libarchive" #define PACKAGE_TARNAME "libarchive" #define PACKAGE_VERSION "3.3.2" #define PACKAGE_STRING "libarchive 3.3.2" #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" #define PACKAGE_URL "" #define PACKAGE "libarchive" #define VERSION "3.3.2" #define LIBARCHIVE_VERSION_STRING "3.3.2" #define LIBARCHIVE_VERSION_NUMBER "3003002" #define BSDCPIO_VERSION_STRING "3.3.2" #define BSDTAR_VERSION_STRING "3.3.2" #define BSDCAT_VERSION_STRING "3.3.2" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define __EXTENSIONS__ 1 #define _ALL_SOURCE 1 #define _GNU_SOURCE 1 #define _POSIX_PTHREAD_SEMANTICS 1 #define _TANDEM_SOURCE 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_DIRENT_H 1 #define HAVE_SYS_WAIT_H 1 #define HAVE_ATTR_XATTR_H 1 #define HAVE_CTYPE_H 1 #define HAVE_ERRNO_H 1 #define HAVE_EXT2FS_EXT2_FS_H 1 #define HAVE_FCNTL_H 1 #define HAVE_GRP_H 1 #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1 #define HAVE_INTTYPES_H 1 #define HAVE_LANGINFO_H 1 #define HAVE_LIMITS_H 1 #define HAVE_LINUX_FIEMAP_H 1 #define HAVE_LINUX_FS_H 1 #define HAVE_LINUX_MAGIC_H 1 #define HAVE_LINUX_TYPES_H 1 #define HAVE_WORKING_FS_IOC_GETFLAGS 1 #define HAVE_LOCALE_H 1 #define HAVE_PATHS_H 1 #define HAVE_POLL_H 1 #define HAVE_PTHREAD_H 1 #define HAVE_PWD_H 1 #define HAVE_SIGNAL_H 1 #define HAVE_SPAWN_H 1 #define HAVE_STDARG_H 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_SYS_CDEFS_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_SYS_MOUNT_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_POLL_H 1 #define HAVE_SYS_SELECT_H 1 #define HAVE_SYS_STATFS_H 1 #define HAVE_SYS_STATVFS_H 1 #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_UTSNAME_H 1 #define HAVE_SYS_VFS_H 1 #define HAVE_SYS_XATTR_H 1 #define HAVE_TIME_H 1 #define HAVE_UNISTD_H 1 #define HAVE_UTIME_H 1 #define HAVE_WCHAR_H 1 #define HAVE_WCTYPE_H 1 #define HAVE_ZLIB_H 1 #define HAVE_LIBZ 1 #define HAVE_BZLIB_H 1 #define HAVE_LIBBZ2 1 #define HAVE_ICONV 1 #define ICONV_CONST #define HAVE_ICONV_H 1 #define HAVE_LZMA_H 1 #define HAVE_LIBLZMA 1 #define HAVE_LZMA_STREAM_ENCODER_MT 1 #define HAVE_LZO_LZOCONF_H 1 #define HAVE_LZO_LZO1X_H 1 #define HAVE_LIBLZO2 1 #define HAVE_REGEX_H 1 #define HAVE_STRUCT_TM_TM_GMTOFF 1 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 #define HAVE_UINTMAX_T 1 #define HAVE_UNSIGNED_LONG_LONG 1 #define HAVE_UNSIGNED_LONG_LONG_INT 1 #define HAVE_LONG_LONG_INT 1 #define HAVE_INTMAX_T 1 #define HAVE_UINTMAX_T 1 #define HAVE_DECL_SIZE_MAX 1 #define HAVE_DECL_INT32_MAX 1 #define HAVE_DECL_INT32_MIN 1 #define HAVE_DECL_INT64_MAX 1 #define HAVE_DECL_INT64_MIN 1 #define HAVE_DECL_UINT64_MAX 1 #define HAVE_DECL_UINT32_MAX 1 #define HAVE_DECL_INTMAX_MAX 1 #define HAVE_DECL_INTMAX_MIN 1 #define HAVE_DECL_UINTMAX_MAX 1 #define HAVE_DECL_SSIZE_MAX 1 #define HAVE_EILSEQ 1 #define HAVE_WCHAR_T 1 #define SIZEOF_WCHAR_T 4 #define TIME_WITH_SYS_TIME 1 #define HAVE_SYS_TYPES_H 1 #define MAJOR_IN_SYSMACROS 1 #define HAVE_FSEEKO 1 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 #define HAVE_DECL_STRERROR_R 1 #define HAVE_STRERROR_R 1 #define STRERROR_R_CHAR_P 1 #define HAVE_STRFTIME 1 #define HAVE_VPRINTF 1 #define HAVE_CHOWN 1 #define HAVE_CHROOT 1 #define HAVE_CTIME_R 1 #define HAVE_FCHDIR 1 #define HAVE_FCHMOD 1 #define HAVE_FCHOWN 1 #define HAVE_FCNTL 1 #define HAVE_FDOPENDIR 1 #define HAVE_FORK 1 #define HAVE_FSTAT 1 #define HAVE_FSTATAT 1 #define HAVE_FSTATFS 1 #define HAVE_FSTATVFS 1 #define HAVE_FTRUNCATE 1 #define HAVE_FUTIMENS 1 #define HAVE_FUTIMES 1 #define HAVE_FUTIMESAT 1 #define HAVE_GETEUID 1 #define HAVE_GETPID 1 #define HAVE_GETGRGID_R 1 #define HAVE_GETGRNAM_R 1 #define HAVE_GETPWNAM_R 1 #define HAVE_GETPWUID_R 1 #define HAVE_GMTIME_R 1 #define HAVE_LCHOWN 1 #define HAVE_LINK 1 #define HAVE_LOCALTIME_R 1 #define HAVE_LSTAT 1 #define HAVE_LUTIMES 1 #define HAVE_MBRTOWC 1 #define HAVE_MEMMOVE 1 #define HAVE_MEMSET 1 #define HAVE_MKDIR 1 #define HAVE_MKFIFO 1 #define HAVE_MKNOD 1 #define HAVE_MKSTEMP 1 #define HAVE_NL_LANGINFO 1 #define HAVE_OPENAT 1 #define HAVE_PIPE 1 #define HAVE_POLL 1 #define HAVE_POSIX_SPAWNP 1 #define HAVE_READLINK 1 #define HAVE_READLINKAT 1 #define HAVE_SELECT 1 #define HAVE_SETENV 1 #define HAVE_SETLOCALE 1 #define HAVE_SIGACTION 1 #define HAVE_STATFS 1 #define HAVE_STATVFS 1 #define HAVE_STRCHR 1 #define HAVE_STRDUP 1 #define HAVE_STRERROR 1 #define HAVE_STRRCHR 1 #define HAVE_SYMLINK 1 #define HAVE_TIMEGM 1 #define HAVE_TZSET 1 #define HAVE_UNSETENV 1 #define HAVE_UTIME 1 #define HAVE_UTIMENSAT 1 #define HAVE_UTIMES 1 #define HAVE_VFORK 1 #define HAVE_WCRTOMB 1 #define HAVE_WCSCMP 1 #define HAVE_WCSCPY 1 #define HAVE_WCSLEN 1 #define HAVE_WCTOMB 1 #define HAVE_WMEMCMP 1 #define HAVE_WMEMCPY 1 #define HAVE_WMEMMOVE 1 #define HAVE_READDIR_R 1 #define HAVE_DIRFD 1 configure: exit 0