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.4.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ ../libarchive-3.4.2/configure --build=x86_64-linux --host=x86_64-linux --target=x86_64-linux --prefix=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr --exec_prefix=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr --bindir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/bin --sbindir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/sbin --libexecdir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/libexec --datadir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/share --sysconfdir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/etc --sharedstatedir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/com --localstatedir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/var --libdir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib --includedir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include --oldincludedir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include --infodir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/share/info --mandir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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-mbedtls --without-nettle --without-openssl --disable-xattr --with-lzma --with-zlib ## --------- ## ## Platform. ## ## --------- ## hostname = Ubuntu20 uname -m = x86_64 uname -r = 5.15.0-91-generic uname -s = Linux uname -v = #101~20.04.1-Ubuntu SMP Thu Nov 16 14:22:28 UTC 2023 /usr/bin/uname -p = x86_64 /bin/uname -X = unknown /bin/arch = x86_64 /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/rcar/www/s4sk-xen/build-xen/yocto/poky/scripts/native-intercept PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/usr/bin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/poky/scripts PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/bin/x86_64-linux PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/bin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/sbin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/bin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/sbin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/bin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/poky/bitbake/bin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools ## ----------- ## ## Core tests. ## ## ----------- ## configure:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/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:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/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 | ac_cv_func_chown_works=${ac_cv_func_chown_works=yes} | ac_cv_func_utime_null=${ac_cv_func_utime_null=yes} | gl_cv_func_fstatat_zero_flag=${gl_cv_func_fstatat_zero_flag=yes} | gl_cv_func_link_follows_symlink=${gl_cv_func_link_follows_symlink=no} | gl_cv_func_unlink_busy_text=${gl_cv_func_unlink_busy_text=yes} | gl_cv_have_proc_uptime=${gl_cv_have_proc_uptime=yes} | gl_cv_pipes_are_fifos=${gl_cv_pipes_are_fifos='yes (1)'} | | # 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:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/poky/meta/site/common-glibc | # general | ac_cv_func_calloc_0_nonnull=${ac_cv_func_calloc_0_nonnull=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} | ac_cv_func_strtod=${ac_cv_func_strtod=yes} | | # bash | 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} | gl_cv_func_getcwd_abort_bug=${gl_cv_func_getcwd_abort_bug=no} | gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} | gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max=yes} | ac_cv_func_getgroups_works=${ac_cv_func_getgroups_works=yes} | gl_cv_func_nanosleep=${gl_cv_func_nanosleep='no (mishandles large arguments)'} | gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes} | gl_cv_func_working_mktime=${gl_cv_func_working_mktime=yes} | gl_cv_func_working_utimes=${gl_cv_func_working_utimes=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:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/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:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/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} | | # General | ac_cv_have_decl_sys_siglist=${ac_cv_have_decl_sys_siglist=no} | | # bash | bash_cv_under_sys_siglist=${bash_cv_under_sys_siglist=no} | bash_cv_sys_siglist=${bash_cv_sys_siglist=no} configure:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/meta-openembedded/meta-networking/site/endian-little | # rp-pppoe | rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev} configure:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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:2824: checking for a BSD-compatible install configure:2892: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/install -c configure:2903: checking whether build environment is sane configure:2918: result: yes configure:3060: checking for a thread-safe mkdir -p configure:3099: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/mkdir -p configure:3106: checking for gawk configure:3122: found /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/gawk configure:3133: result: gawk configure:3144: checking whether make sets $(MAKE) configure:3166: result: yes configure:3195: checking whether make supports nested variables configure:3212: result: yes configure:3339: checking whether to enable maintainer-specific portions of Makefiles configure:3348: result: yes configure:3372: checking whether make supports nested variables configure:3389: result: yes configure:3467: checking build system type configure:3481: result: x86_64-pc-linux-gnu configure:3501: checking host system type configure:3514: result: x86_64-pc-linux-gnu configure:3573: checking for x86_64-linux-gcc configure:3600: result: gcc configure:3869: checking for C compiler version configure:3878: gcc --version >&5 gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Copyright (C) 2019 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:3889: $? = 0 configure:3878: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:hsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.2' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-9QDOt0/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2) configure:3889: $? = 0 configure:3878: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3889: $? = 1 configure:3878: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:3889: $? = 1 configure:3909: checking whether the C compiler works configure:3931: gcc -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:3935: $? = 0 configure:3983: result: yes configure:3986: checking for C compiler default output file name configure:3988: result: a.out configure:3994: checking for suffix of executables configure:4001: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:4005: $? = 0 configure:4027: result: configure:4049: checking whether we are cross compiling configure:4057: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:4061: $? = 0 configure:4068: ./conftest configure:4072: $? = 0 configure:4060: result: no configure:4065: checking for suffix of object files configure:4087: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4091: $? = 0 configure:4112: result: o configure:4116: checking whether we are using the GNU C compiler configure:4135: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4135: $? = 0 configure:4144: result: yes configure:4153: checking whether gcc accepts -g configure:4173: gcc -c -g -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4173: $? = 0 configure:4214: result: yes configure:4231: checking for gcc option to accept ISO C89 configure:4294: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:4294: $? = 0 configure:4307: result: none needed configure:4332: checking whether gcc understands -c and -o together configure:4354: gcc -c conftest.c -o conftest2.o configure:4357: $? = 0 configure:4354: gcc -c conftest.c -o conftest2.o configure:4357: $? = 0 configure:4369: result: yes configure:4389: checking whether make supports the include directive configure:4404: make -f confmf.GNU && cat confinc.out this is the am__doit target configure:4407: $? = 0 configure:4426: result: yes (GNU style) configure:4451: checking dependency style of gcc configure:4562: result: none configure:4584: checking how to run the C preprocessor configure:4654: result: gcc -E configure:4674: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:4674: $? = 0 configure:4688: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:16:10: fatal error: ac_nonexistent.h: No such file or directory 16 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:4688: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.2" | /* end confdefs.h. */ | #include configure:4717: checking for grep that handles long lines and -e configure:4775: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep configure:4780: checking for egrep configure:4842: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -E configure:4847: checking for ANSI C header files configure:4951: result: yes configure:4964: checking for sys/types.h configure:4964: result: yes configure:4964: checking for sys/stat.h configure:4964: result: yes configure:4964: checking for stdlib.h configure:4964: result: yes configure:4964: checking for string.h configure:4964: result: yes configure:4964: checking for memory.h configure:4964: result: yes configure:4964: checking for strings.h configure:4964: result: yes configure:4964: checking for inttypes.h configure:4964: result: yes configure:4964: checking for stdint.h configure:4964: result: yes configure:4964: checking for unistd.h configure:4964: result: yes configure:4977: checking minix/config.h usability configure:4977: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:59:10: fatal error: minix/config.h: No such file or directory 59 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:4977: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:4977: result: no configure:4977: checking minix/config.h presence configure:4977: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:26:10: fatal error: minix/config.h: No such file or directory 26 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:4977: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:4977: result: no configure:4977: checking for minix/config.h configure:4977: result: no configure:4998: checking whether it is safe to define __EXTENSIONS__ configure:5016: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:5016: $? = 0 configure:5023: result: yes configure:5386: checking how to print strings configure:5413: result: printf configure:5434: checking for a sed that does not truncate output configure:5498: result: sed configure:5516: checking for fgrep configure:5578: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -F configure:5613: checking for ld used by gcc configure:5680: result: ld configure:5687: checking if the linker (ld ) is GNU ld configure:5702: result: yes configure:5714: checking for BSD- or MS-compatible name lister (nm) configure:5768: result: nm configure:5898: checking the name lister (nm) interface configure:5905: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:5908: nm "conftest.o" configure:5911: output 0000000000000000 B some_variable configure:5912: result: BSD nm configure:5915: checking whether ln -s works configure:5919: result: yes configure:5927: checking the maximum length of command line arguments configure:6058: result: 1572864 configure:6106: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format configure:6146: result: func_convert_file_noop configure:6153: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:6173: result: func_convert_file_noop configure:6180: checking for ld option to reload object files configure:6187: result: -r configure:6221: checking for x86_64-linux-objdump configure:6248: result: objdump configure:6317: checking how to recognize dependent libraries configure:6517: result: pass_all configure:6562: checking for x86_64-linux-dlltool configure:6589: result: dlltool configure:6659: checking how to associate runtime and link libraries configure:6686: result: printf %s\n configure:6702: checking for x86_64-linux-ar configure:6729: result: ar configure:6810: checking for archiver @FILE support configure:6827: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:6827: $? = 0 configure:6830: ar cru libconftest.a @conftest.lst >&5 ar: `u' modifier ignored since `D' is the default (see `U') configure:6833: $? = 0 configure:6838: 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:6841: $? = 1 configure:6840: result: @ configure:6858: checking for x86_64-linux-strip configure:6885: result: strip configure:6957: checking for x86_64-linux-ranlib configure:6984: result: ranlib configure:7126: checking command to parse nm output from gcc object configure:7279: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:7282: $? = 0 configure:7286: 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:7289: $? = 0 configure:7355: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c conftstm.o >&5 configure:7358: $? = 0 configure:7396: result: ok configure:7443: checking for sysroot configure:7478: result: no configure:7485: checking for a working dd configure:7523: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/dd configure:7527: checking how to truncate binary pipes configure:7542: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/dd bs=4096 count=1 configure:7678: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:7681: $? = 0 configure:7831: checking for x86_64-linux-mt configure:7861: result: no configure:7871: checking for mt configure:7901: result: no configure:7921: checking if : is a manifest tool configure:7927: : '-?' configure:7935: result: no configure:8609: checking for dlfcn.h configure:8609: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:8609: $? = 0 configure:8609: result: yes configure:8864: checking for objdir configure:8879: result: .libs configure:9143: checking if gcc supports -fno-rtti -fno-exceptions configure:9161: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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++/D/ObjC++ but not for C configure:9165: $? = 0 configure:9178: result: no configure:9536: checking for gcc option to produce PIC configure:9543: result: -fPIC -DPIC configure:9551: checking if gcc PIC flag -fPIC -DPIC works configure:9569: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -fPIC -DPIC -DPIC conftest.c >&5 configure:9573: $? = 0 configure:9586: result: yes configure:9615: checking if gcc static flag -static works configure:9643: result: yes configure:9658: checking if gcc supports -c -o file.o configure:9679: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -o out/conftest2.o conftest.c >&5 configure:9683: $? = 0 configure:9705: result: yes configure:9713: checking if gcc supports -c -o file.o configure:9760: result: yes configure:9793: checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries configure:11052: result: yes configure:11089: checking whether -lc should be explicitly linked in configure:11097: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:11100: $? = 0 configure:11115: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -lc \>/dev/null 2\>\&1 configure:11118: $? = 0 configure:11132: result: no configure:11292: checking dynamic linker characteristics configure:11873: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wl,-rpath -Wl,/foo conftest.c >&5 configure:11873: $? = 0 configure:12110: result: GNU/Linux ld.so configure:12232: checking how to hardcode library paths into programs configure:12257: result: immediate configure:12805: checking whether stripping libraries is possible configure:12810: result: yes configure:12845: checking if libtool supports shared libraries configure:12847: result: yes configure:12850: checking whether to build shared libraries configure:12875: result: yes configure:12878: checking whether to build static libraries configure:12882: result: no configure:9714: checking for x86_64-linux-strip configure:9741: result: strip configure:10018: checking for dirent.h that defines DIR configure:10037: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10037: $? = 0 configure:10045: result: yes configure:10058: checking for library containing opendir configure:10089: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c >&5 configure:10089: $? = 0 configure:10106: result: none required configure:10173: checking for sys/wait.h that is POSIX.1 compatible configure:10199: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10199: $? = 0 configure:10206: result: yes configure:10217: checking acl/libacl.h usability configure:10217: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:68:10: fatal error: acl/libacl.h: No such file or directory 68 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10217: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:10217: result: no configure:10217: checking acl/libacl.h presence configure:10217: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:35:10: fatal error: acl/libacl.h: No such file or directory 35 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10217: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:10217: result: no configure:10217: checking for acl/libacl.h configure:10217: result: no configure:10217: checking attr/xattr.h usability configure:10217: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:68:10: fatal error: attr/xattr.h: No such file or directory 68 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10217: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:10217: result: no configure:10217: checking attr/xattr.h presence configure:10217: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:35:10: fatal error: attr/xattr.h: No such file or directory 35 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10217: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:10217: result: no configure:10217: checking for attr/xattr.h configure:10217: result: no configure:10230: checking copyfile.h usability configure:10230: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:68:10: fatal error: copyfile.h: No such file or directory 68 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10230: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:10230: result: no configure:10230: checking copyfile.h presence configure:10230: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:35:10: fatal error: copyfile.h: No such file or directory 35 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10230: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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:10230: result: no configure:10230: checking for copyfile.h configure:10230: result: no configure:10230: checking ctype.h usability configure:10230: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10230: $? = 0 configure:10230: result: yes configure:10230: checking ctype.h presence configure:10230: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10230: $? = 0 configure:10230: result: yes configure:10230: checking for ctype.h configure:10230: result: yes configure:10243: checking errno.h usability configure:10243: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking errno.h presence configure:10243: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking for errno.h configure:10243: result: yes configure:10243: checking ext2fs/ext2_fs.h usability configure:10243: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking ext2fs/ext2_fs.h presence configure:10243: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking for ext2fs/ext2_fs.h configure:10243: result: yes configure:10243: checking fcntl.h usability configure:10243: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking fcntl.h presence configure:10243: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking for fcntl.h configure:10243: result: yes configure:10243: checking grp.h usability configure:10243: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking grp.h presence configure:10243: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10243: $? = 0 configure:10243: result: yes configure:10243: checking for grp.h configure:10243: result: yes configure:10254: checking whether EXT2_IOC_GETFLAGS is usable configure:10271: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10271: $? = 0 configure:10278: result: yes configure:10292: checking for inttypes.h configure:10292: result: yes configure:10292: checking io.h usability configure:10292: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:75:10: fatal error: io.h: No such file or directory 75 | #include | ^~~~~~ compilation terminated. configure:10292: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10292: result: no configure:10292: checking io.h presence configure:10292: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:42:10: fatal error: io.h: No such file or directory 42 | #include | ^~~~~~ compilation terminated. configure:10292: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10292: result: no configure:10292: checking for io.h configure:10292: result: no configure:10292: checking langinfo.h usability configure:10292: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10292: $? = 0 configure:10292: result: yes configure:10292: checking langinfo.h presence configure:10292: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10292: $? = 0 configure:10292: result: yes configure:10292: checking for langinfo.h configure:10292: result: yes configure:10292: checking limits.h usability configure:10292: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10292: $? = 0 configure:10292: result: yes configure:10292: checking limits.h presence configure:10292: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10292: $? = 0 configure:10292: result: yes configure:10292: checking for limits.h configure:10292: result: yes configure:10305: checking linux/fiemap.h usability configure:10305: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking linux/fiemap.h presence configure:10305: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking for linux/fiemap.h configure:10305: result: yes configure:10305: checking linux/fs.h usability configure:10305: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking linux/fs.h presence configure:10305: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking for linux/fs.h configure:10305: result: yes configure:10305: checking linux/magic.h usability configure:10305: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking linux/magic.h presence configure:10305: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking for linux/magic.h configure:10305: result: yes configure:10305: checking linux/types.h usability configure:10305: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking linux/types.h presence configure:10305: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10305: $? = 0 configure:10305: result: yes configure:10305: checking for linux/types.h configure:10305: result: yes configure:10316: checking whether FS_IOC_GETFLAGS is usable configure:10333: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10333: $? = 0 configure:10340: result: yes configure:10354: checking locale.h usability configure:10354: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking locale.h presence configure:10354: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking for locale.h configure:10354: result: yes configure:10354: checking membership.h usability configure:10354: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:83:10: fatal error: membership.h: No such file or directory 83 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10354: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10354: result: no configure:10354: checking membership.h presence configure:10354: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:50:10: fatal error: membership.h: No such file or directory 50 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10354: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10354: result: no configure:10354: checking for membership.h configure:10354: result: no configure:10354: checking paths.h usability configure:10354: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking paths.h presence configure:10354: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking for paths.h configure:10354: result: yes configure:10354: checking poll.h usability configure:10354: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking poll.h presence configure:10354: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking for poll.h configure:10354: result: yes configure:10354: checking pthread.h usability configure:10354: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking pthread.h presence configure:10354: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking for pthread.h configure:10354: result: yes configure:10354: checking pwd.h usability configure:10354: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking pwd.h presence configure:10354: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10354: $? = 0 configure:10354: result: yes configure:10354: checking for pwd.h configure:10354: result: yes configure:10367: checking readpassphrase.h usability configure:10367: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:87:10: fatal error: readpassphrase.h: No such file or directory 87 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:10367: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10367: result: no configure:10367: checking readpassphrase.h presence configure:10367: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:54:10: fatal error: readpassphrase.h: No such file or directory 54 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:10367: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10367: result: no configure:10367: checking for readpassphrase.h configure:10367: result: no configure:10367: checking signal.h usability configure:10367: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10367: $? = 0 configure:10367: result: yes configure:10367: checking signal.h presence configure:10367: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10367: $? = 0 configure:10367: result: yes configure:10367: checking for signal.h configure:10367: result: yes configure:10367: checking spawn.h usability configure:10367: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10367: $? = 0 configure:10367: result: yes configure:10367: checking spawn.h presence configure:10367: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10367: $? = 0 configure:10367: result: yes configure:10367: checking for spawn.h configure:10367: result: yes configure:10380: checking stdarg.h usability configure:10380: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10380: $? = 0 configure:10380: result: yes configure:10380: checking stdarg.h presence configure:10380: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10380: $? = 0 configure:10380: result: yes configure:10380: checking for stdarg.h configure:10380: result: yes configure:10380: checking for stdint.h configure:10380: result: yes configure:10380: checking for stdlib.h configure:10380: result: yes configure:10380: checking for string.h configure:10380: result: yes configure:10393: checking sys/acl.h usability configure:10393: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:93:10: fatal error: sys/acl.h: No such file or directory 93 | #include | ^~~~~~~~~~~ compilation terminated. configure:10393: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10393: result: no configure:10393: checking sys/acl.h presence configure:10393: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:60:10: fatal error: sys/acl.h: No such file or directory 60 | #include | ^~~~~~~~~~~ compilation terminated. configure:10393: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10393: result: no configure:10393: checking for sys/acl.h configure:10393: result: no configure:10393: checking sys/cdefs.h usability configure:10393: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10393: $? = 0 configure:10393: result: yes configure:10393: checking sys/cdefs.h presence configure:10393: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10393: $? = 0 configure:10393: result: yes configure:10393: checking for sys/cdefs.h configure:10393: result: yes configure:10393: checking sys/ea.h usability configure:10393: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:94:10: fatal error: sys/ea.h: No such file or directory 94 | #include | ^~~~~~~~~~ compilation terminated. configure:10393: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10393: result: no configure:10393: checking sys/ea.h presence configure:10393: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:61:10: fatal error: sys/ea.h: No such file or directory 61 | #include | ^~~~~~~~~~ compilation terminated. configure:10393: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10393: result: no configure:10393: checking for sys/ea.h configure:10393: result: no configure:10393: checking sys/extattr.h usability configure:10393: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:94:10: fatal error: sys/extattr.h: No such file or directory 94 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10393: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10393: result: no configure:10393: checking sys/extattr.h presence configure:10393: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:61:10: fatal error: sys/extattr.h: No such file or directory 61 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10393: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10393: result: no configure:10393: checking for sys/extattr.h configure:10393: result: no configure:10406: checking sys/ioctl.h usability configure:10406: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10406: $? = 0 configure:10406: result: yes configure:10406: checking sys/ioctl.h presence configure:10406: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10406: $? = 0 configure:10406: result: yes configure:10406: checking for sys/ioctl.h configure:10406: result: yes configure:10406: checking sys/mkdev.h usability configure:10406: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:95:10: fatal error: sys/mkdev.h: No such file or directory 95 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10406: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10406: result: no configure:10406: checking sys/mkdev.h presence configure:10406: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:62:10: fatal error: sys/mkdev.h: No such file or directory 62 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10406: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10406: result: no configure:10406: checking for sys/mkdev.h configure:10406: result: no configure:10406: checking sys/mount.h usability configure:10406: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10406: $? = 0 configure:10406: result: yes configure:10406: checking sys/mount.h presence configure:10406: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10406: $? = 0 configure:10406: result: yes configure:10406: checking for sys/mount.h configure:10406: result: yes configure:10419: checking sys/param.h usability configure:10419: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10419: $? = 0 configure:10419: result: yes configure:10419: checking sys/param.h presence configure:10419: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10419: $? = 0 configure:10419: result: yes configure:10419: checking for sys/param.h configure:10419: result: yes configure:10419: checking sys/poll.h usability configure:10419: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10419: $? = 0 configure:10419: result: yes configure:10419: checking sys/poll.h presence configure:10419: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10419: $? = 0 configure:10419: result: yes configure:10419: checking for sys/poll.h configure:10419: result: yes configure:10419: checking sys/richacl.h usability configure:10419: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:98:10: fatal error: sys/richacl.h: No such file or directory 98 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10419: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10419: result: no configure:10419: checking sys/richacl.h presence configure:10419: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:65:10: fatal error: sys/richacl.h: No such file or directory 65 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10419: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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:10419: result: no configure:10419: checking for sys/richacl.h configure:10419: result: no configure:10432: checking sys/select.h usability configure:10432: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking sys/select.h presence configure:10432: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking for sys/select.h configure:10432: result: yes configure:10432: checking sys/statfs.h usability configure:10432: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking sys/statfs.h presence configure:10432: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking for sys/statfs.h configure:10432: result: yes configure:10432: checking sys/statvfs.h usability configure:10432: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking sys/statvfs.h presence configure:10432: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking for sys/statvfs.h configure:10432: result: yes configure:10432: checking sys/sysmacros.h usability configure:10432: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking sys/sysmacros.h presence configure:10432: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10432: $? = 0 configure:10432: result: yes configure:10432: checking for sys/sysmacros.h configure:10432: result: yes configure:10445: checking sys/time.h usability configure:10445: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking sys/time.h presence configure:10445: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking for sys/time.h configure:10445: result: yes configure:10445: checking sys/utime.h usability configure:10445: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:103:10: fatal error: sys/utime.h: No such file or directory 103 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10445: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:10445: result: no configure:10445: checking sys/utime.h presence configure:10445: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:70:10: fatal error: sys/utime.h: No such file or directory 70 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10445: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_H 1 | #define HAVE_SYS_TIME_H 1 | /* end confdefs.h. */ | #include configure:10445: result: no configure:10445: checking for sys/utime.h configure:10445: result: no configure:10445: checking sys/utsname.h usability configure:10445: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking sys/utsname.h presence configure:10445: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking for sys/utsname.h configure:10445: result: yes configure:10445: checking sys/vfs.h usability configure:10445: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking sys/vfs.h presence configure:10445: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking for sys/vfs.h configure:10445: result: yes configure:10445: checking sys/xattr.h usability configure:10445: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking sys/xattr.h presence configure:10445: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10445: $? = 0 configure:10445: result: yes configure:10445: checking for sys/xattr.h configure:10445: result: yes configure:10458: checking time.h usability configure:10458: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking time.h presence configure:10458: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking for time.h configure:10458: result: yes configure:10458: checking for unistd.h configure:10458: result: yes configure:10458: checking utime.h usability configure:10458: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking utime.h presence configure:10458: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking for utime.h configure:10458: result: yes configure:10458: checking wchar.h usability configure:10458: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking wchar.h presence configure:10458: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking for wchar.h configure:10458: result: yes configure:10458: checking wctype.h usability configure:10458: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking wctype.h presence configure:10458: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10458: $? = 0 configure:10458: result: yes configure:10458: checking for wctype.h configure:10458: result: yes configure:10470: checking windows.h usability configure:10470: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:111:10: fatal error: windows.h: No such file or directory 111 | #include | ^~~~~~~~~~~ compilation terminated. configure:10470: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:10470: result: no configure:10470: checking windows.h presence configure:10470: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:78:10: fatal error: windows.h: No such file or directory 78 | #include | ^~~~~~~~~~~ compilation terminated. configure:10470: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:10470: result: no configure:10470: checking for windows.h configure:10470: result: no configure:10484: checking for wincrypt.h configure:10484: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:83:10: fatal error: wincrypt.h: No such file or directory 83 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10484: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:10484: result: no configure:10484: checking for winioctl.h configure:10484: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:83:10: fatal error: winioctl.h: No such file or directory 83 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10484: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:10484: result: no configure:10510: checking zlib.h usability configure:10510: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10510: $? = 0 configure:10510: result: yes configure:10510: checking zlib.h presence configure:10510: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10510: $? = 0 configure:10510: result: yes configure:10510: checking for zlib.h configure:10510: result: yes configure:10520: checking for inflate in -lz configure:10545: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lz >&5 configure:10545: $? = 0 configure:10554: result: yes configure:10577: checking bzlib.h usability configure:10577: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:10577: $? = 0 configure:10577: result: yes configure:10577: checking bzlib.h presence configure:10577: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:10577: $? = 0 configure:10577: result: yes configure:10577: checking for bzlib.h configure:10577: result: yes configure:10616: checking for BZ2_bzDecompressInit in -lbz2 configure:10641: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 configure:10641: $? = 0 configure:10650: result: yes configure:10675: checking blake2.h usability configure:10675: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:115:10: fatal error: blake2.h: No such file or directory 115 | #include | ^~~~~~~~~~ compilation terminated. configure:10675: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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 | /* 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:10675: result: no configure:10675: checking blake2.h presence configure:10675: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:82:10: fatal error: blake2.h: No such file or directory 82 | #include | ^~~~~~~~~~ compilation terminated. configure:10675: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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 | /* end confdefs.h. */ | #include configure:10675: result: no configure:10675: checking for blake2.h configure:10675: result: no configure:10685: checking for blake2sp_init in -lb2 configure:10710: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lb2 -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: cannot find -lb2 collect2: error: ld returned 1 exit status configure:10710: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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 | /* 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 blake2sp_init (); | int | main () | { | return blake2sp_init (); | ; | return 0; | } configure:10719: result: no configure:10788: checking for ld used by GCC configure:10852: result: ld -m elf_x86_64 configure:10859: checking if the linker (ld -m elf_x86_64) is GNU ld configure:10872: result: yes configure:10879: checking for shared library run path origin configure:10892: result: done configure:11470: checking for iconv configure:11494: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 configure:11494: $? = 0 configure:11528: result: yes configure:11531: checking for working iconv configure:11660: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 configure:11660: $? = 0 configure:11660: ./conftest configure:11660: $? = 0 configure:11672: result: yes configure:11700: checking for iconv declaration configure:11729: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:11729: $? = 0 configure:11740: result: extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); configure:11753: checking for iconv.h configure:11753: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:11753: $? = 0 configure:11753: result: yes configure:11767: checking localcharset.h usability configure:11767: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:118:10: fatal error: localcharset.h: No such file or directory 118 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:11767: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:11767: result: no configure:11767: checking localcharset.h presence configure:11767: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:85:10: fatal error: localcharset.h: No such file or directory 85 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:11767: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:11767: result: no configure:11767: checking for localcharset.h configure:11767: result: no configure:11781: checking for locale_charset configure:11781: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cc4oDvaf.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `locale_charset' collect2: error: ld returned 1 exit status configure:11781: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:11781: result: no configure:11793: checking for locale_charset in -lcharset configure:11818: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lcharset -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: cannot find -lcharset collect2: error: ld returned 1 exit status configure:11818: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:11827: result: no configure:11920: checking zstd.h usability configure:11920: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:118:10: fatal error: zstd.h: No such file or directory 118 | #include | ^~~~~~~~ compilation terminated. configure:11920: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:11920: result: no configure:11920: checking zstd.h presence configure:11920: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:85:10: fatal error: zstd.h: No such file or directory 85 | #include | ^~~~~~~~ compilation terminated. configure:11920: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:11920: result: no configure:11920: checking for zstd.h configure:11920: result: no configure:11930: checking for ZSTD_compressStream in -lzstd configure:11955: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lzstd -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: cannot find -lzstd collect2: error: ld returned 1 exit status configure:11955: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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 ZSTD_compressStream (); | int | main () | { | return ZSTD_compressStream (); | ; | return 0; | } configure:11964: result: no configure:11987: checking lzma.h usability configure:11987: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:11987: $? = 0 configure:11987: result: yes configure:11987: checking lzma.h presence configure:11987: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:11987: $? = 0 configure:11987: result: yes configure:11987: checking for lzma.h configure:11987: result: yes configure:11997: checking for lzma_stream_decoder in -llzma configure:12022: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzma -lbz2 -lz >&5 configure:12022: $? = 0 configure:12031: result: yes configure:12046: checking whether we have multithread support in lzma configure:12066: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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] 95 | lzma_stream_encoder_mt(0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ configure:12066: $? = 0 configure:12074: result: yes configure:12094: checking lzo/lzoconf.h usability configure:12094: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:12094: $? = 0 configure:12094: result: yes configure:12094: checking lzo/lzoconf.h presence configure:12094: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:12094: $? = 0 configure:12094: result: yes configure:12094: checking for lzo/lzoconf.h configure:12094: result: yes configure:12094: checking lzo/lzo1x.h usability configure:12094: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:12094: $? = 0 configure:12094: result: yes configure:12094: checking lzo/lzo1x.h presence configure:12094: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:12094: $? = 0 configure:12094: result: yes configure:12094: checking for lzo/lzo1x.h configure:12094: result: yes configure:12104: checking for lzo1x_decompress_safe in -llzo2 configure:12129: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:12129: $? = 0 configure:12138: result: yes configure:12613: checking regex.h usability configure:12613: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:12613: $? = 0 configure:12613: result: yes configure:12613: checking regex.h presence configure:12613: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c configure:12613: $? = 0 configure:12613: result: yes configure:12613: checking for regex.h configure:12613: result: yes configure:12624: checking for regcomp configure:12624: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:12624: $? = 0 configure:12624: result: yes configure:12894: checking whether C compiler accepts -Wall configure:12913: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:12913: $? = 0 configure:12922: result: yes configure:12938: : CFLAGS="$CFLAGS" configure:12941: $? = 0 configure:12894: checking whether C compiler accepts -Wformat configure:12913: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:12913: $? = 0 configure:12922: result: yes configure:12938: : CFLAGS="$CFLAGS" configure:12941: $? = 0 configure:12894: checking whether C compiler accepts -Wformat-security configure:12913: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:12913: $? = 0 configure:12922: result: yes configure:12938: : CFLAGS="$CFLAGS" configure:12941: $? = 0 configure:12965: checking for an ANSI C-conforming const configure:13031: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13031: $? = 0 configure:13038: result: yes configure:13048: checking for uid_t in sys/types.h configure:13067: result: yes configure:13086: checking for mode_t configure:13086: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13086: $? = 0 configure:13086: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:21: error: expected expression before ')' token 128 | if (sizeof ((mode_t))) | ^ configure:13086: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13086: result: yes configure:13099: checking for off_t configure:13099: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13099: $? = 0 configure:13099: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:20: error: expected expression before ')' token 128 | if (sizeof ((off_t))) | ^ configure:13099: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13099: result: yes configure:13110: checking for size_t configure:13110: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13110: $? = 0 configure:13110: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:21: error: expected expression before ')' token 128 | if (sizeof ((size_t))) | ^ configure:13110: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13110: result: yes configure:13121: checking for id_t configure:13121: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13121: $? = 0 configure:13121: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:19: error: expected expression before ')' token 128 | if (sizeof ((id_t))) | ^ configure:13121: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13121: result: yes configure:13132: checking for uintptr_t configure:13132: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13132: $? = 0 configure:13132: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:128:24: error: expected expression before ')' token 128 | if (sizeof ((uintptr_t))) | ^ configure:13132: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13132: result: yes configure:13145: checking for struct tm.tm_gmtoff configure:13145: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13145: $? = 0 configure:13145: result: yes configure:13157: checking for struct tm.__tm_gmtoff configure:13157: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:13: error: 'struct tm' has no member named '__tm_gmtoff'; did you mean 'tm_gmtoff'? 101 | if (ac_aggr.__tm_gmtoff) | ^~~~~~~~~~~ | tm_gmtoff conftest.c:100:18: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 100 | static struct tm ac_aggr; | ^~~~~~~ configure:13157: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13157: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:20: error: 'struct tm' has no member named '__tm_gmtoff'; did you mean 'tm_gmtoff'? 101 | if (sizeof ac_aggr.__tm_gmtoff) | ^~~~~~~~~~~ | tm_gmtoff conftest.c:100:18: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 100 | static struct tm ac_aggr; | ^~~~~~~ configure:13157: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13157: result: no configure:13172: checking for struct statfs.f_namemax configure:13172: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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 101 | static struct statfs ac_aggr; | ^~~~~~~ conftest.c:101:22: warning: unused variable 'ac_aggr' [-Wunused-variable] configure:13172: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13172: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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 101 | static struct statfs ac_aggr; | ^~~~~~~ conftest.c:101:22: warning: unused variable 'ac_aggr' [-Wunused-variable] configure:13172: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13172: result: no configure:13188: checking for struct statvfs.f_iosize configure:13188: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:13: error: 'struct statvfs' has no member named 'f_iosize'; did you mean 'f_bsize'? 101 | if (ac_aggr.f_iosize) | ^~~~~~~~ | f_bsize conftest.c:100:23: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 100 | static struct statvfs ac_aggr; | ^~~~~~~ configure:13188: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13188: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:101:20: error: 'struct statvfs' has no member named 'f_iosize'; did you mean 'f_bsize'? 101 | if (sizeof ac_aggr.f_iosize) | ^~~~~~~~ | f_bsize conftest.c:100:23: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 100 | static struct statvfs ac_aggr; | ^~~~~~~ configure:13188: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13188: result: no configure:13203: checking for struct stat.st_birthtime configure:13203: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 130 | if (ac_aggr.st_birthtime) | ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 129 | static struct stat ac_aggr; | ^~~~~~~ configure:13203: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13203: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 130 | if (sizeof ac_aggr.st_birthtime) | ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 129 | static struct stat ac_aggr; | ^~~~~~~ configure:13203: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13203: result: no configure:13215: checking for struct stat.st_birthtimespec.tv_nsec configure:13215: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 130 | if (ac_aggr.st_birthtimespec.tv_nsec) | ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 129 | static struct stat ac_aggr; | ^~~~~~~ configure:13215: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13215: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 130 | if (sizeof ac_aggr.st_birthtimespec.tv_nsec) | ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 129 | static struct stat ac_aggr; | ^~~~~~~ configure:13215: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13215: result: no configure:13225: checking for struct stat.st_mtimespec.tv_nsec configure:13225: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 130 | if (ac_aggr.st_mtimespec.tv_nsec) | ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 129 | static struct stat ac_aggr; | ^~~~~~~ configure:13225: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13225: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 130 | if (sizeof ac_aggr.st_mtimespec.tv_nsec) | ^ conftest.c:129:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 129 | static struct stat ac_aggr; | ^~~~~~~ configure:13225: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13225: result: no configure:13235: checking for struct stat.st_mtim.tv_nsec configure:13235: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13235: $? = 0 configure:13235: result: yes configure:13245: checking for struct stat.st_mtime_n configure:13245: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:13: error: 'struct stat' has no member named 'st_mtime_n'; did you mean 'st_mtim'? 131 | if (ac_aggr.st_mtime_n) | ^~~~~~~~~~ | st_mtim conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 130 | static struct stat ac_aggr; | ^~~~~~~ configure:13245: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13245: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:20: error: 'struct stat' has no member named 'st_mtime_n'; did you mean 'st_mtim'? 131 | if (sizeof ac_aggr.st_mtime_n) | ^~~~~~~~~~ | st_mtim conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 130 | static struct stat ac_aggr; | ^~~~~~~ configure:13245: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13245: result: no configure:13255: checking for struct stat.st_umtime configure:13255: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:13: error: 'struct stat' has no member named 'st_umtime'; did you mean 'st_mtim'? 131 | if (ac_aggr.st_umtime) | ^~~~~~~~~ | st_mtim conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 130 | static struct stat ac_aggr; | ^~~~~~~ configure:13255: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13255: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:20: error: 'struct stat' has no member named 'st_umtime'; did you mean 'st_mtim'? 131 | if (sizeof ac_aggr.st_umtime) | ^~~~~~~~~ | st_mtim conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 130 | static struct stat ac_aggr; | ^~~~~~~ configure:13255: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13255: result: no configure:13265: checking for struct stat.st_mtime_usec configure:13265: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 131 | if (ac_aggr.st_mtime_usec) | ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 130 | static struct stat ac_aggr; | ^~~~~~~ configure:13265: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13265: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 131 | if (sizeof ac_aggr.st_mtime_usec) | ^ conftest.c:130:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 130 | static struct stat ac_aggr; | ^~~~~~~ configure:13265: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13265: result: no configure:13276: checking for struct stat.st_blksize configure:13276: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13276: $? = 0 configure:13276: result: yes configure:13287: checking for struct stat.st_flags configure:13287: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 132 | if (ac_aggr.st_flags) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13287: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13287: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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' 132 | if (sizeof ac_aggr.st_flags) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13287: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13287: result: no configure:13301: checking for uintmax_t configure:13301: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13301: $? = 0 configure:13301: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:131:24: error: expected expression before ')' token 131 | if (sizeof ((uintmax_t))) | ^ configure:13301: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13301: result: yes configure:13310: checking for unsigned long long configure:13310: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13310: $? = 0 configure:13310: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:132:33: error: expected expression before ')' token 132 | if (sizeof ((unsigned long long))) | ^ configure:13310: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13310: result: yes configure:13324: checking for unsigned long long int configure:13363: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:13363: $? = 0 configure:13372: result: yes configure:13382: checking for long long int configure:13420: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:13420: $? = 0 configure:13420: ./conftest configure:13420: $? = 0 configure:13432: result: yes configure:13442: checking for intmax_t configure:13442: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13442: $? = 0 configure:13442: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:135:23: error: expected expression before ')' token 135 | if (sizeof ((intmax_t))) | ^ configure:13442: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13442: result: yes configure:13461: checking for uintmax_t configure:13461: result: yes configure:13478: checking for int64_t configure:13478: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13478: $? = 0 configure:13478: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:139:53: warning: integer overflow in expression of type 'long int' results in '-9223372036854775808' [-Woverflow] 139 | < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))]; | ^ conftest.c:138:12: error: storage size of 'test_array' isn't constant 138 | 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:13478: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13478: result: yes configure:13489: checking for uint64_t configure:13489: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13489: $? = 0 configure:13489: result: yes configure:13503: checking for int32_t configure:13503: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13503: $? = 0 configure:13503: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:139:53: warning: integer overflow in expression of type 'int' results in '-2147483648' [-Woverflow] 139 | < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))]; | ^ conftest.c:138:12: error: storage size of 'test_array' isn't constant 138 | 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:13503: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13503: result: yes configure:13514: checking for uint32_t configure:13514: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13514: $? = 0 configure:13514: result: yes configure:13528: checking for int16_t configure:13528: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13528: $? = 0 configure:13528: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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 138 | static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1) | ^~~~~~~~~~ configure:13528: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13528: result: yes configure:13539: checking for uint16_t configure:13539: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13539: $? = 0 configure:13539: result: yes configure:13551: checking for uint8_t configure:13551: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13551: $? = 0 configure:13551: result: yes configure:13566: checking whether SIZE_MAX is declared configure:13566: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13566: $? = 0 configure:13566: result: yes configure:13576: checking whether INT32_MAX is declared configure:13576: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13576: $? = 0 configure:13576: result: yes configure:13586: checking whether INT32_MIN is declared configure:13586: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13586: $? = 0 configure:13586: result: yes configure:13597: checking whether INT64_MAX is declared configure:13597: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13597: $? = 0 configure:13597: result: yes configure:13607: checking whether INT64_MIN is declared configure:13607: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13607: $? = 0 configure:13607: result: yes configure:13617: checking whether UINT64_MAX is declared configure:13617: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13617: $? = 0 configure:13617: result: yes configure:13627: checking whether UINT32_MAX is declared configure:13627: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13627: $? = 0 configure:13627: result: yes configure:13638: checking whether INTMAX_MAX is declared configure:13638: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13638: $? = 0 configure:13638: result: yes configure:13648: checking whether INTMAX_MIN is declared configure:13648: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13648: $? = 0 configure:13648: result: yes configure:13658: checking whether UINTMAX_MAX is declared configure:13658: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13658: $? = 0 configure:13658: result: yes configure:13670: checking whether SSIZE_MAX is declared configure:13670: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13670: $? = 0 configure:13670: result: yes configure:13679: checking whether EFTYPE is declared configure:13679: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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) 121 | (void) EFTYPE; | ^~~~~~ conftest.c:121:10: note: each undeclared identifier is reported only once for each function it appears in configure:13679: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13679: result: no configure:13687: checking whether EILSEQ is declared configure:13687: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13687: $? = 0 configure:13687: result: yes configure:13695: checking for wchar_t configure:13695: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13695: $? = 0 configure:13695: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:149:22: error: expected expression before ')' token 149 | if (sizeof ((wchar_t))) | ^ configure:13695: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:13695: result: yes configure:13705: checking size of wchar_t configure:13710: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:13710: $? = 0 configure:13710: ./conftest configure:13710: $? = 0 configure:13724: result: 4 configure:13737: checking whether time.h and sys/time.h may both be included configure:13757: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:13757: $? = 0 configure:13764: result: yes configure:13775: checking whether gcc needs -traditional configure:13809: result: no configure:13822: checking for sys/types.h configure:13822: result: yes configure:13836: checking for sys/mkdev.h configure:13836: result: no configure:13845: checking for sys/sysmacros.h configure:13845: result: yes configure:13855: checking for _LARGEFILE_SOURCE value needed for large files configure:13874: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:13874: $? = 0 configure:13902: result: no configure:13923: checking for working memcmp configure:13976: result: yes configure:13985: checking whether lstat correctly handles trailing slash configure:14028: result: yes configure:14047: checking whether lstat accepts an empty string configure:14077: result: no configure:14093: checking whether stat accepts an empty string configure:14123: result: no configure:14139: checking whether strerror_r is declared configure:14139: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:14139: $? = 0 configure:14139: result: yes configure:14152: checking for strerror_r configure:14152: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14152: $? = 0 configure:14152: result: yes configure:14161: checking whether strerror_r returns char * configure:14185: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:14185: $? = 0 configure:14223: result: yes configure:14233: checking for strftime configure:14233: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'long unsigned int(char *, long unsigned int, const char *, const void *)' [-Wbuiltin-declaration-mismatch] 146 | char strftime (); | ^~~~~~~~ conftest.c:134:1: note: 'strftime' is declared in header '' 133 | # include 134 | #else configure:14233: $? = 0 configure:14233: result: yes configure:14288: checking for vprintf configure:14288: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'int(const char *, __va_list_tag *)' [-Wbuiltin-declaration-mismatch] 147 | char vprintf (); | ^~~~~~~ conftest.c:135:1: note: 'vprintf' is declared in header '' 134 | # include 135 | #else configure:14288: $? = 0 configure:14288: result: yes configure:14294: checking for _doprnt configure:14294: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccPAXRkn.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_doprnt' collect2: error: ld returned 1 exit status configure:14294: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14294: result: no configure:14309: checking for CreateHardLinkA configure:14344: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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' 134 | 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) 146 | f = CreateHardLinkA; | ^~~~~~~~~~~~~~~ conftest.c:146:5: note: each undeclared identifier is reported only once for each function it appears in configure:14344: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14352: result: no configure:14360: checking for arc4random_buf configure:14360: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccQE08vm.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `arc4random_buf' collect2: error: ld returned 1 exit status configure:14360: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14360: result: no configure:14360: checking for chflags configure:14360: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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' 153 | choke me | ^~~~~ conftest.c:153:9: error: expected ';' before 'int' 153 | choke me | ^ | ; ...... 156 | int | ~~~ configure:14360: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14360: result: no configure:14360: checking for chown configure:14360: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14360: $? = 0 configure:14360: result: yes configure:14360: checking for chroot configure:14360: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14360: $? = 0 configure:14360: result: yes configure:14360: checking for ctime_r configure:14360: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14360: $? = 0 configure:14360: result: yes configure:14372: checking for fchdir configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14372: $? = 0 configure:14372: result: yes configure:14372: checking for fchflags configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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' 157 | choke me | ^~~~~ conftest.c:157:9: error: expected ';' before 'int' 157 | choke me | ^ | ; ...... 160 | int | ~~~ configure:14372: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14372: result: no configure:14372: checking for fchmod configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14372: $? = 0 configure:14372: result: yes configure:14372: checking for fchown configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14372: $? = 0 configure:14372: result: yes configure:14372: checking for fcntl configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14372: $? = 0 configure:14372: result: yes configure:14372: checking for fdopendir configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14372: $? = 0 configure:14372: result: yes configure:14372: checking for fork configure:14372: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'int(void)' [-Wbuiltin-declaration-mismatch] 156 | char fork (); | ^~~~ configure:14372: $? = 0 configure:14372: result: yes configure:14384: checking for fstat configure:14384: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14384: $? = 0 configure:14384: result: yes configure:14384: checking for fstatat configure:14384: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14384: $? = 0 configure:14384: result: yes configure:14384: checking for fstatfs configure:14384: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14384: $? = 0 configure:14384: result: yes configure:14384: checking for fstatvfs configure:14384: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14384: $? = 0 configure:14384: result: yes configure:14384: checking for ftruncate configure:14384: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14384: $? = 0 configure:14384: result: yes configure:14396: checking for futimens configure:14396: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14396: $? = 0 configure:14396: result: yes configure:14396: checking for futimes configure:14396: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14396: $? = 0 configure:14396: result: yes configure:14396: checking for futimesat configure:14396: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14396: $? = 0 configure:14396: result: yes configure:14408: checking for geteuid configure:14408: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14408: $? = 0 configure:14408: result: yes configure:14408: checking for getpid configure:14408: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14408: $? = 0 configure:14408: result: yes configure:14408: checking for getgrgid_r configure:14408: result: yes configure:14408: checking for getgrnam_r configure:14408: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14408: $? = 0 configure:14408: result: yes configure:14420: checking for getpwnam_r configure:14420: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14420: $? = 0 configure:14420: result: yes configure:14420: checking for getpwuid_r configure:14420: result: yes configure:14420: checking for getvfsbyname configure:14420: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccqDi1Mq.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `getvfsbyname' collect2: error: ld returned 1 exit status configure:14420: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14420: result: no configure:14420: checking for gmtime_r configure:14420: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14420: $? = 0 configure:14420: result: yes configure:14432: checking for lchflags configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccxwvshJ.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `lchflags' collect2: error: ld returned 1 exit status configure:14432: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14432: result: no configure:14432: checking for lchmod configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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' 177 | choke me | ^~~~~ conftest.c:177:9: error: expected ';' before 'int' 177 | choke me | ^ | ; ...... 180 | int | ~~~ configure:14432: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14432: result: no configure:14432: checking for lchown configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14432: $? = 0 configure:14432: result: yes configure:14432: checking for link configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14432: $? = 0 configure:14432: result: yes configure:14432: checking for localtime_r configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14432: $? = 0 configure:14432: result: yes configure:14432: checking for lstat configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14432: $? = 0 configure:14432: result: yes configure:14432: checking for lutimes configure:14432: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14432: $? = 0 configure:14432: result: yes configure:14444: checking for mbrtowc configure:14444: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14444: $? = 0 configure:14444: result: yes configure:14444: checking for memmove configure:14444: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'void *(void *, const void *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 178 | char memmove (); | ^~~~~~~ conftest.c:166:1: note: 'memmove' is declared in header '' 165 | # include 166 | #else configure:14444: $? = 0 configure:14444: result: yes configure:14444: checking for memset configure:14444: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'void *(void *, int, long unsigned int)' [-Wbuiltin-declaration-mismatch] 179 | char memset (); | ^~~~~~ conftest.c:167:1: note: 'memset' is declared in header '' 166 | # include 167 | #else configure:14444: $? = 0 configure:14444: result: yes configure:14456: checking for mkdir configure:14456: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14456: $? = 0 configure:14456: result: yes configure:14456: checking for mkfifo configure:14456: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14456: $? = 0 configure:14456: result: yes configure:14456: checking for mknod configure:14456: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14456: $? = 0 configure:14456: result: yes configure:14456: checking for mkstemp configure:14456: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14456: $? = 0 configure:14456: result: yes configure:14468: checking for nl_langinfo configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14468: checking for openat configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14468: checking for pipe configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14468: checking for poll configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14468: checking for posix_spawnp configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14468: checking for readlink configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14468: checking for readlinkat configure:14468: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14468: $? = 0 configure:14468: result: yes configure:14479: checking for readpassphrase configure:14479: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cckVHx1Z.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `readpassphrase' collect2: error: ld returned 1 exit status configure:14479: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14479: result: no configure:14491: checking for select configure:14491: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14491: $? = 0 configure:14491: result: yes configure:14491: checking for setenv configure:14491: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14491: $? = 0 configure:14491: result: yes configure:14491: checking for setlocale configure:14491: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14491: $? = 0 configure:14491: result: yes configure:14491: checking for sigaction configure:14491: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14491: $? = 0 configure:14491: result: yes configure:14491: checking for statfs configure:14491: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14491: $? = 0 configure:14491: result: yes configure:14491: checking for statvfs configure:14491: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14491: $? = 0 configure:14491: result: yes configure:14503: checking for strchr configure:14503: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 197 | char strchr (); | ^~~~~~ conftest.c:185:1: note: 'strchr' is declared in header '' 184 | # include 185 | #else configure:14503: $? = 0 configure:14503: result: yes configure:14503: checking for strdup configure:14503: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch] 198 | char strdup (); | ^~~~~~ configure:14503: $? = 0 configure:14503: result: yes configure:14503: checking for strerror configure:14503: result: yes configure:14503: checking for strncpy_s configure:14503: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccmy6Vqx.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `strncpy_s' collect2: error: ld returned 1 exit status configure:14503: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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:14503: result: no configure:14503: checking for strrchr configure:14503: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 200 | char strrchr (); | ^~~~~~~ conftest.c:188:1: note: 'strrchr' is declared in header '' 187 | # include 188 | #else configure:14503: $? = 0 configure:14503: result: yes configure:14503: checking for symlink configure:14503: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14503: $? = 0 configure:14503: result: yes configure:14503: checking for timegm configure:14503: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14503: $? = 0 configure:14503: result: yes configure:14515: checking for tzset configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14515: checking for unlinkat configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14515: checking for unsetenv configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14515: checking for utime configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14515: checking for utimensat configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14515: checking for utimes configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14515: checking for vfork configure:14515: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14515: $? = 0 configure:14515: result: yes configure:14527: checking for wcrtomb configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wcscmp configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wcscpy configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wcslen configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wctomb configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wmemcmp configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wmemcpy configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14527: checking for wmemmove configure:14527: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:14527: $? = 0 configure:14527: result: yes configure:14539: checking for _ctime64_s configure:14539: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccFQFLD1.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_ctime64_s' collect2: error: ld returned 1 exit status configure:14539: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14539: result: no configure:14539: checking for _fseeki64 configure:14539: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cciwVlO4.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_fseeki64' collect2: error: ld returned 1 exit status configure:14539: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14539: result: no configure:14551: checking for _get_timezone configure:14551: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cccNPOtj.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_get_timezone' collect2: error: ld returned 1 exit status configure:14551: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14551: result: no configure:14551: checking for _gmtime64_s configure:14551: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cclCSUJz.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_gmtime64_s' collect2: error: ld returned 1 exit status configure:14551: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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 _gmtime64_s to an innocuous variant, in case declares _gmtime64_s. | For example, HP-UX 11i declares gettimeofday. */ | #define _gmtime64_s innocuous__gmtime64_s | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _gmtime64_s (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _gmtime64_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 _gmtime64_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__gmtime64_s || defined __stub____gmtime64_s | choke me | #endif | | int | main () | { | return _gmtime64_s (); | ; | return 0; | } configure:14551: result: no configure:14551: checking for _localtime64_s configure:14551: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cc7l6dJz.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_localtime64_s' collect2: error: ld returned 1 exit status configure:14551: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14551: result: no configure:14551: checking for _mkgmtime64 configure:14551: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/cc4Mx13T.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `_mkgmtime64' collect2: error: ld returned 1 exit status configure:14551: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14551: result: no configure:14563: checking for cygwin_conv_path configure:14563: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: /tmp/ccZNdxhf.o: in function `main': conftest.c:(.text.startup+0xb): undefined reference to `cygwin_conv_path' collect2: error: ld returned 1 exit status configure:14563: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14563: result: no configure:14574: checking for struct vfsconf configure:14574: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:204:13: error: invalid application of 'sizeof' to incomplete type 'struct vfsconf' 204 | if (sizeof (struct vfsconf)) | ^~~~~~ configure:14574: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14574: result: no configure:14590: checking for struct xvfsconf configure:14590: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:204:13: error: invalid application of 'sizeof' to incomplete type 'struct xvfsconf' 204 | if (sizeof (struct xvfsconf)) | ^~~~~~ configure:14590: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14590: result: no configure:14620: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:200:7: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] 200 | return(readdir_r(dir, &e, &r)); | ^~~~~~ In file included from conftest.c:195: /usr/include/dirent.h:183:12: note: declared here 183 | extern int readdir_r (DIR *__restrict __dirp, | ^~~~~~~~~ conftest.c:200:14: warning: 'dir' is used uninitialized in this function [-Wuninitialized] 200 | return(readdir_r(dir, &e, &r)); | ~^~~~~~~~~~~~~~~~~~~~~~~ configure:14620: $? = 0 configure:14640: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:14640: $? = 0 configure:14651: checking whether D_MD_ORDER is declared configure:14651: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:209:10: error: 'D_MD_ORDER' undeclared (first use in this function) 209 | (void) D_MD_ORDER; | ^~~~~~~~~~ conftest.c:209:10: note: each undeclared identifier is reported only once for each function it appears in configure:14651: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14651: result: no configure:14666: checking for struct dirent.d_namlen configure:14666: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:206:13: error: 'struct dirent' has no member named 'd_namlen'; did you mean 'd_name'? 206 | if (ac_aggr.d_namlen) | ^~~~~~~~ | d_name conftest.c:205:22: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 205 | static struct dirent ac_aggr; | ^~~~~~~ configure:14666: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14666: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c: In function 'main': conftest.c:206:20: error: 'struct dirent' has no member named 'd_namlen'; did you mean 'd_name'? 206 | if (sizeof ac_aggr.d_namlen) | ^~~~~~~~ | d_name conftest.c:205:22: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 205 | static struct dirent ac_aggr; | ^~~~~~~ configure:14666: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:14666: result: no configure:15616: checking for special C compiler options needed for large files configure:15661: result: no configure:15667: checking for _FILE_OFFSET_BITS value needed for large files configure:15692: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 configure:15692: $? = 0 configure:15724: result: no configure:15823: checking support for ARCHIVE_CRYPTO_MD5_LIBC configure:15845: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:60:10: fatal error: md5.h: No such file or directory 60 | #include | ^~~~~~~ compilation terminated. configure:15845: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:15855: result: no configure:15869: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM configure:15891: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:111:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory 111 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. configure:15891: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:15901: result: no configure:15915: checking support for ARCHIVE_CRYPTO_RMD160_LIBC configure:15937: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:63:10: fatal error: rmd160.h: No such file or directory 63 | #include | ^~~~~~~~~~ compilation terminated. configure:15937: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:15947: result: no configure:15961: checking support for ARCHIVE_CRYPTO_SHA1_LIBC configure:15983: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:66:10: fatal error: sha1.h: No such file or directory 66 | #include | ^~~~~~~~ compilation terminated. configure:15983: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:15993: result: no configure:16007: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM configure:16029: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:111:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory 111 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. configure:16029: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16039: result: no configure:16053: checking support for ARCHIVE_CRYPTO_SHA256_LIBC configure:16075: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16075: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16085: result: no configure:16099: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2 configure:16121: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16121: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16131: result: no configure:16145: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3 configure:16167: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16167: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16177: result: no configure:16191: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM configure:16213: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:111:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory 111 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. configure:16213: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16223: result: no configure:16237: checking support for ARCHIVE_CRYPTO_SHA384_LIBC configure:16259: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16259: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16269: result: no configure:16283: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2 configure:16305: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16305: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16315: result: no configure:16329: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3 configure:16351: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16351: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16361: result: no configure:16375: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM configure:16397: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:111:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory 111 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. configure:16397: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16407: result: no configure:16421: checking support for ARCHIVE_CRYPTO_SHA512_LIBC configure:16443: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16443: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16453: result: no configure:16467: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2 configure:16489: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16489: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16499: result: no configure:16513: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3 configure:16535: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:77:10: fatal error: sha2.h: No such file or directory 77 | #include | ^~~~~~~~ compilation terminated. configure:16535: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16545: result: no configure:16559: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM configure:16581: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:111:10: fatal error: CommonCrypto/CommonDigest.h: No such file or directory 111 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. configure:16581: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:16591: result: no configure:16606: checking for bcrypt.h configure:16606: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:202:10: fatal error: bcrypt.h: No such file or directory 202 | #include | ^~~~~~~~~~ compilation terminated. configure:16606: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:16606: result: no configure:17821: checking md5.h usability configure:17821: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:230:10: fatal error: md5.h: No such file or directory 230 | #include | ^~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking md5.h presence configure:17821: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:197:10: fatal error: md5.h: No such file or directory 197 | #include | ^~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking for md5.h configure:17821: result: no configure:17821: checking ripemd.h usability configure:17821: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:230:10: fatal error: ripemd.h: No such file or directory 230 | #include | ^~~~~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking ripemd.h presence configure:17821: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:197:10: fatal error: ripemd.h: No such file or directory 197 | #include | ^~~~~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking for ripemd.h configure:17821: result: no configure:17821: checking sha.h usability configure:17821: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:230:10: fatal error: sha.h: No such file or directory 230 | #include | ^~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking sha.h presence configure:17821: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:197:10: fatal error: sha.h: No such file or directory 197 | #include | ^~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking for sha.h configure:17821: result: no configure:17821: checking sha256.h usability configure:17821: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:230:10: fatal error: sha256.h: No such file or directory 230 | #include | ^~~~~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking sha256.h presence configure:17821: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:197:10: fatal error: sha256.h: No such file or directory 197 | #include | ^~~~~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking for sha256.h configure:17821: result: no configure:17821: checking sha512.h usability configure:17821: gcc -c -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c >&5 conftest.c:230:10: fatal error: sha512.h: No such file or directory 230 | #include | ^~~~~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking sha512.h presence configure:17821: gcc -E -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include conftest.c conftest.c:197:10: fatal error: sha512.h: No such file or directory 197 | #include | ^~~~~~~~~~ compilation terminated. configure:17821: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17821: result: no configure:17821: checking for sha512.h configure:17821: result: no configure:17832: checking for MD5Init in -lmd configure:17857: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lmd -llzo2 -llzma -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/ld: cannot find -lmd collect2: error: ld returned 1 exit status configure:17857: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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:17866: result: no configure:17882: checking support for ARCHIVE_CRYPTO_MD5_LIBMD configure:17904: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:90:10: fatal error: md5.h: No such file or directory 90 | #include | ^~~~~~~ compilation terminated. configure:17904: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:17914: result: no configure:17928: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD configure:17950: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:93:10: fatal error: ripemd.h: No such file or directory 93 | #include | ^~~~~~~~~~ compilation terminated. configure:17950: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:17960: result: no configure:17974: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD configure:17996: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:96:10: fatal error: sha.h: No such file or directory 96 | #include | ^~~~~~~ compilation terminated. configure:17996: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:18006: result: no configure:18020: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD configure:18042: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:99:10: fatal error: sha256.h: No such file or directory 99 | #include | ^~~~~~~~~~ compilation terminated. configure:18042: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:18052: result: no configure:18066: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD configure:18088: gcc -o conftest -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security -isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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:232: ../libarchive-3.4.2/libarchive/archive_digest_private.h:102:10: fatal error: sha512.h: No such file or directory 102 | #include | ^~~~~~~~~~ compilation terminated. configure:18088: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libarchive" | #define PACKAGE_TARNAME "libarchive" | #define PACKAGE_VERSION "3.4.2" | #define PACKAGE_STRING "libarchive 3.4.2" | #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" | #define PACKAGE_URL "" | #define PACKAGE "libarchive" | #define VERSION "3.4.2" | #define LIBARCHIVE_VERSION_STRING "3.4.2" | #define LIBARCHIVE_VERSION_NUMBER "3004002" | #define BSDCPIO_VERSION_STRING "3.4.2" | #define BSDTAR_VERSION_STRING "3.4.2" | #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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_MBEDTLS) | | static int | __archive_mbedtls_md5init(archive_md5_ctx *ctx) | { | mbedtls_md5_init(ctx); | if (mbedtls_md5_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5update(archive_md5_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_md5_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_md5final(archive_md5_ctx *ctx, void *md) | { | if (mbedtls_md5_finish_ret(ctx, md) == 0) { | mbedtls_md5_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_md5_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_ripemd160init(archive_rmd160_ctx *ctx) | { | mbedtls_ripemd160_init(ctx); | if (mbedtls_ripemd160_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160update(archive_rmd160_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_ripemd160_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_ripemd160final(archive_rmd160_ctx *ctx, void *md) | { | if (mbedtls_ripemd160_finish_ret(ctx, md) == 0) { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_ripemd160_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha1init(archive_sha1_ctx *ctx) | { | mbedtls_sha1_init(ctx); | if (mbedtls_sha1_starts_ret(ctx) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1update(archive_sha1_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha1_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha1final(archive_sha1_ctx *ctx, void *md) | { | if (mbedtls_sha1_finish_ret(ctx, md) == 0) { | mbedtls_sha1_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha1_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha256init(archive_sha256_ctx *ctx) | { | mbedtls_sha256_init(ctx); | if (mbedtls_sha256_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256update(archive_sha256_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha256_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha256final(archive_sha256_ctx *ctx, void *md) | { | if (mbedtls_sha256_finish_ret(ctx, md) == 0) { | mbedtls_sha256_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha256_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha384init(archive_sha384_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 1) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384update(archive_sha384_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha384final(archive_sha384_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | | static int | __archive_mbedtls_sha512init(archive_sha512_ctx *ctx) | { | mbedtls_sha512_init(ctx); | if (mbedtls_sha512_starts_ret(ctx, 0) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512update(archive_sha512_ctx *ctx, const void *indata, | size_t insize) | { | if (mbedtls_sha512_update_ret(ctx, indata, insize) == 0) | return (ARCHIVE_OK); | else | return (ARCHIVE_FATAL); | } | | static int | __archive_mbedtls_sha512final(archive_sha512_ctx *ctx, void *md) | { | if (mbedtls_sha512_finish_ret(ctx, md) == 0) { | mbedtls_sha512_free(ctx); | return (ARCHIVE_OK); | } else { | mbedtls_sha512_free(ctx); | return (ARCHIVE_FATAL); | } | } | | #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_MBEDTLS) | &__archive_mbedtls_md5init, | &__archive_mbedtls_md5update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_ripemd160init, | &__archive_mbedtls_ripemd160update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha1init, | &__archive_mbedtls_sha1update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha256init, | &__archive_mbedtls_sha256update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha384init, | &__archive_mbedtls_sha384update, | &__archive_mbedtls_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_MBEDTLS) | &__archive_mbedtls_sha512init, | &__archive_mbedtls_sha512update, | &__archive_mbedtls_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:18098: result: no configure:18488: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by libarchive config.status 3.4.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on Ubuntu20 config.status:1284: creating Makefile config.status:1284: creating build/pkgconfig/libarchive.pc config.status:1284: creating config.h config.status:1498: executing depfiles commands config.status:1498: executing libtool commands config.status:1498: 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/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib/pkgconfig ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib/pkgconfig:/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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__gmtime64_s=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_calloc_0_nonnull=yes ac_cv_func_chflags=no ac_cv_func_chown=yes ac_cv_func_chown_works=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_getgroups_works=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_strtod=yes ac_cv_func_symlink=yes ac_cv_func_timegm=yes ac_cv_func_tzset=yes ac_cv_func_unlinkat=yes ac_cv_func_unsetenv=yes ac_cv_func_utime=yes ac_cv_func_utime_null=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=no 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=no ac_cv_header_bcrypt_h=no ac_cv_header_blake2_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_header_zstd_h=no ac_cv_host=x86_64-pc-linux-gnu ac_cv_lib_b2_blake2sp_init=no 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_lib_zstd_ZSTD_compressStream=no 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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -E' ac_cv_path_FGREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -F' ac_cv_path_GREP=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep ac_cv_path_SED=sed ac_cv_path_install='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/install -c' ac_cv_path_lt_DD=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/dd ac_cv_path_mkdir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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=no bash_cv_type_rlimit=rlim_t bash_cv_ulimit_maxfds=yes bash_cv_under_sys_siglist=no 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_getcwd_abort_bug=no gl_cv_func_getcwd_null=yes gl_cv_func_getcwd_path_max=yes gl_cv_func_link_follows_symlink=no 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_nanosleep='no (mishandles large arguments)' gl_cv_func_sleep_works=yes gl_cv_func_unlink_busy_text=yes gl_cv_func_wcrtomb_retval=yes gl_cv_func_wctob_works=yes gl_cv_func_working_mkstemp=yes gl_cv_func_working_mktime=yes gl_cv_func_working_utimes=yes gl_cv_have_proc_uptime=yes gl_cv_header_working_fcntl_h=yes gl_cv_pipes_are_fifos='yes (1)' 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=yes 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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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 rpppoe_cv_pack_bitfields=rev 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=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/var/log shadow_cv_maildir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/var/spool/mail shadow_cv_mailfile=Mailbox shadow_cv_passwd_dir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/bin shadow_cv_utmpdir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing aclocal-1.16' 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='17:2:4' AS='as ' AUTOCONF='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing autoconf' AUTOHEADER='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing autoheader' AUTOMAKE='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing automake-1.16' AWK='gawk' BSDCAT_VERSION_STRING='3.4.2' BSDCPIO_VERSION_STRING='3.4.2' BSDTAR_VERSION_STRING='3.4.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/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Wformat -Wformat-security' CPP='gcc -E' CPPFLAGS='-isystem/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -E' EXEEXT='' FGREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep -F' GREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/hosttools/grep' INC_BLAKE2_FALSE='#' INC_BLAKE2_TRUE='' 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/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2' LIBARCHIVE_VERSION_NUMBER='3004002' LIBARCHIVE_VERSION_STRING='3.4.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} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/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.4.2' PACKAGE_TARNAME='libarchive' PACKAGE_URL='' PACKAGE_VERSION='3.4.2' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib/pkgconfig' PKG_CONFIG_PATH='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib/pkgconfig:/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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.4.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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include' infodir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/share/info' install_sh='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/libarchive-3.4.2/build/autoconf/install-sh' libdir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/lib' libexecdir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/libexec' localedir='${datarootdir}/locale' localstatedir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/var' mandir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/share/man' mkdir_p='$(MKDIR_P)' oldincludedir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/include' pdfdir='${docdir}' prefix='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/usr/sbin' sharedstatedir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.2-r0/recipe-sysroot-native/com' sysconfdir='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domd/tmp/work/x86_64-linux/libarchive-native/3.4.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.4.2" #define PACKAGE_STRING "libarchive 3.4.2" #define PACKAGE_BUGREPORT "libarchive-discuss@googlegroups.com" #define PACKAGE_URL "" #define PACKAGE "libarchive" #define VERSION "3.4.2" #define LIBARCHIVE_VERSION_STRING "3.4.2" #define LIBARCHIVE_VERSION_NUMBER "3004002" #define BSDCPIO_VERSION_STRING "3.4.2" #define BSDTAR_VERSION_STRING "3.4.2" #define BSDCAT_VERSION_STRING "3.4.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_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_SYSMACROS_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_UNLINKAT 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