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=aarch64-poky-linux --target=aarch64-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot --enable-largefile --disable-static --disable-acl --with-bz2lib --without-expat --with-xml2 --without-lz4 --with-lzo2 --without-mbedtls --without-nettle --without-openssl --enable-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/build-domu/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-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/bin/crossscripts PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/sbin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/sbin PATH: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/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-domu/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/arm-common | # general | ac_cv_va_val_copy=${ac_cv_va_val_copy=yes} | 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_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} | | # bash | ac_cv_c_long_double=${ac_cv_c_long_double=yes} | bash_cv_func_sigsetjmp=${bash_cv_func_sigsetjmp=missing} | | # coreutils | utils_cv_sys_open_max=${utils_cv_sys_open_max=1019} | | # cvs | cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes} | | # db (sleepycat) | db_cv_fcntl_f_setfd=${db_cv_fcntl_f_setfd=yes} | db_cv_sprintf_count=${db_cv_sprintf_count=yes} | db_cv_align_t=${db_cv_align_t='unsigned long long'} | db_cv_alignp_t=${db_cv_alignp_t='unsigned long'} | | # D-BUS | ac_cv_func_posix_getpwnam_r=${ac_cv_func_posix_getpwnam_r=yes} | | # edb | db_cv_spinlocks=${db_cv_spinlocks=no} | | # ettercap | ettercap_cv_type_socklen_t=${ettercap_cv_type_socklen_t=yes} | | # fget | compat_cv_func_snprintf_works=${compat_cv_func_snprintf_works=yes} | compat_cv_func_basename_works=${compat_cv_func_basename_works=no} | compat_cv_func_dirname_works=${compat_cv_func_dirname_works=no} | | # fnmatch | ac_cv_func_fnmatch_works=${ac_cv_func_fnmatch_works=yes} | | # gettext | am_cv_func_working_getline=${am_cv_func_working_getline=yes} | | # glib | glib_cv_stack_grows=${glib_cv_stack_grows=no} | glib_cv_uscore=${glib_cv_uscore=no} | glib_cv_use_pid_surrogate=${glib_cv_use_pid_surrogate=yes} | glib_cv_has__inline=${glib_cv_has__inline=yes} | glib_cv_has__inline__=${glib_cv_has__inline__=yes} | glib_cv_hasinline=${glib_cv_hasinline=yes} | glib_cv_sane_realloc=${glib_cv_sane_realloc=yes} | glib_cv_uscore=${glib_cv_uscore=no} | glib_cv_va_val_copy=${glib_cv_va_val_copy=yes} | glib_cv_rtldglobal_broken=${glib_cv_rtldglobal_broken=no} | glib_cv_sys_pthread_mutex_trylock_posix=${glib_cv_sys_pthread_mutex_trylock_posix=yes} | glib_cv_sys_pthread_getspecific_posix=${glib_cv_sys_pthread_getspecific_posix=yes} | glib_cv_sys_pthread_cond_timedwait_posix=${glib_cv_sys_pthread_cond_timedwait_posix=yes} | | # glib-2.0 | glib_cv_long_long_format=${glib_cv_long_long_format=ll} | glib_cv_sys_use_pid_niceness_surrogate=${glib_cv_sys_use_pid_niceness_surrogate=yes} | | #gstreamer | as_cv_unaligned_access=${as_cv_unaligned_access=no} | | # httppc | ac_cv_strerror_r_SUSv3=${ac_cv_strerror_r_SUSv3=no} | | # lftp | ac_cv_need_trio=${ac_cv_need_trio=no} | lftp_cv_va_val_copy=${lftp_cv_va_val_copy=yes} | | # libesmtp | acx_working_snprintf=${acx_working_snprintf=yes} | | # libidl | libIDL_cv_long_long_format=${libIDL_cv_long_long_format=ll} | | # libnet | ac_libnet_have_packet_socket=${ac_libnet_have_packet_socket=yes} | | # libpcap | ac_cv_linux_vers=${ac_cv_linux_vers=2} | | # libxfce4util | with_broken_putenv=${with_broken_putenv=no} | | # links | ac_cv_lib_png_png_create_info_struct=${ac_cv_lib_png_png_create_info_struct=yes} | | # mysql | mysql_cv_func_atomic_sub=${mysql_cv_func_atomic_sub=no} | mysql_cv_func_atomic_add=${mysql_cv_func_atomic_add=no} | | # nano | ac_cv_regexec_segfault_emptystr=${ac_cv_regexec_segfault_emptystr=no} | nano_cv_func_regexec_segv_emptystr=${nano_cv_func_regexec_segv_emptystr=no} | | # php | ac_cv_pread=${ac_cv_pread=no} | ac_cv_pwrite=${ac_cv_pwrite=no} | php_cv_lib_cookie_io_functions_use_off64_t=${php_cv_lib_cookie_io_functions_use_off64_t=yes} | | # rsync | rsync_cv_HAVE_BROKEN_LARGEFILE=${rsync_cv_HAVE_BROKEN_LARGEFILE=no} | rsync_cv_HAVE_SOCKETPAIR=${rsync_cv_HAVE_SOCKETPAIR=yes} | rsync_cv_HAVE_LONGLONG=${rsync_cv_HAVE_LONGLONG=yes} | rsync_cv_HAVE_OFF64_T=${rsync_cv_HAVE_OFF64_T=no} | rsync_cv_HAVE_SHORT_INO_T=${rsync_cv_HAVE_SHORT_INO_T=no} | rsync_cv_HAVE_UNSIGNED_CHAR=${rsync_cv_HAVE_UNSIGNED_CHAR=no} | rsync_cv_HAVE_BROKEN_READDIR=${rsync_cv_HAVE_BROKEN_READDIR=no} | rsync_cv_HAVE_GETTIMEOFDAY_TZ=${rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes} | rsync_cv_HAVE_SECURE_MKSTEMP=${rsync_cv_HAVE_SECURE_MKSTEMP=yes} | rsync_cv_REPLACE_INET_NTOA=${rsync_cv_REPLACE_INET_NTOA=no} | rsync_cv_REPLACE_INET_ATON=${rsync_cv_REPLACE_INET_ATON=no} | | # screen | screen_cv_sys_bcopy_overlap=${screen_cv_sys_bcopy_overlap=no} | 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_fifo_broken_impl=${screen_cv_sys_fifo_broken_impl=yes} | screen_cv_sys_fifo_usable=${screen_cv_sys_fifo_usable=yes} | 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} | | # slrn | slrn_cv_va_val_copy=${slrn_cv_va_val_copy=yes} | | # socat | ac_cv_ispeed_offset=${ac_cv_ispeed_offset=13} | sc_cv_termios_ispeed=${sc_cv_termios_ispeed=yes} | | # ssh | ac_cv_have_space_d_name_in_struct_dirent=${ac_cv_dirent_have_space_d_name=yes} | ac_cv_have_broken_snprintf=${ac_cv_have_broken_snprintf=no} | ac_cv_have_accrights_in_msghdr=${ac_cv_have_accrights_in_msghdr=no} | ac_cv_have_control_in_msghdr=${ac_cv_have_control_in_msghdr=yes} | ac_cv_have_openpty_ctty_bug=${ac_cv_have_openpty_ctty_bug=yes} | | # startup-notification | lf_cv_sane_realloc=yes | | # xffm | jm_cv_func_working_readdir=yes | | # evolution-data-server | ac_cv_libiconv_utf8=${ac_cv_libiconv_utf8=yes} | configure:2676: loading site script /home/rcar/www/s4sk-xen/build-xen/yocto/poky/meta/site/arm-64 | # definitions assuming 64-bit arm architecture | | # general | ac_cv_sizeof_wchar_t=4 | ac_cv_sizeof_size_t=8 | ac_cv_sizeof_ssize_t=8 | ac_cv_alignof_char=1 | ac_cv_alignof_double=8 | | # glib | #glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=24} | #glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=4} | #glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=24} | | # glib-2.0 | #glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=24} | #glib_cv_sizeof_intmax_t=${glib_cv_sizeof_intmax_t=8} | #glib_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=4} | #glib_cv_sizeof_size_t=${glib_cv_sizeof_size_t=4} | #glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=4} | ac_cv_alignof_guint32=4 | ac_cv_alignof_guint64=8 | ac_cv_alignof_unsigned_long=8 | | # ORBit2 (should be in meta-gnome/site/arm-64) | #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=4 | #ac_cv_alignof_CORBA_short=2 | #ac_cv_alignof_CORBA_struct=1 | #ac_cv_alignof_CORBA_wchar=2 | | # at-spi2-core | 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 | 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/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/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/share/aarch64-poky-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=no} | ac_cv_header_ncurses_h=${ac_cv_header_ncurses_h=yes} | ac_cv_header_ncurses_termcap_h=${ac_cv_header_ncurses_termcap_h=no} | 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-domu/tmp/hosttools/install -c configure:2903: checking whether build environment is sane configure:2918: result: yes configure:2968: checking for aarch64-poky-linux-strip configure:2995: result: aarch64-poky-linux-strip configure:3060: checking for a thread-safe mkdir -p configure:3099: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/mkdir -p configure:3106: checking for gawk configure:3122: found /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/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: aarch64-poky-linux-gnu configure:3573: checking for aarch64-poky-linux-gcc configure:3600: result: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot configure:3869: checking for C compiler version configure:3878: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot --version >&5 aarch64-poky-linux-gcc (GCC) 9.3.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: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -v >&5 Using built-in specs. COLLECT_GCC=aarch64-poky-linux-gcc COLLECT_LTO_WRAPPER=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/lto-wrapper Target: aarch64-poky-linux Configured with: ../../../../../../work-shared/gcc-9.3.0-r0/gcc-9.3.0/configure --build=x86_64-linux --host=x86_64-linux --target=aarch64-poky-linux --prefix=/host-native/usr --exec_prefix=/host-native/usr --bindir=/host-native/usr/bin/aarch64-poky-linux --sbindir=/host-native/usr/bin/aarch64-poky-linux --libexecdir=/host-native/usr/libexec/aarch64-poky-linux --datadir=/host-native/usr/share --sysconfdir=/host-native/etc --sharedstatedir=/host-native/com --localstatedir=/host-native/var --libdir=/host-native/usr/lib/aarch64-poky-linux --includedir=/host-native/usr/include --oldincludedir=/host-native/usr/include --infodir=/host-native/usr/share/info --mandir=/host-native/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/host-native --enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-default-pie --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=aarch64-poky-linux- --without-local-prefix --disable-install-libiberty --enable-lto --disable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=sysv --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/9.3.0 --with-sysroot=/not/exist --with-build-sysroot=/host --enable-poison-system-directories --with-system-zlib --disable-static --disable-nls --with-glibc-version=2.28 --enable-initfini-array --enable-__cxa_atexit Thread model: posix gcc version 9.3.0 (GCC) configure:3889: $? = 0 configure:3878: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -V >&5 aarch64-poky-linux-gcc: error: unrecognized command line option '-V' aarch64-poky-linux-gcc: fatal error: no input files compilation terminated. configure:3889: $? = 1 configure:3878: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -qversion >&5 aarch64-poky-linux-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? aarch64-poky-linux-gcc: fatal error: no input files compilation terminated. configure:3889: $? = 1 configure:3909: checking whether the C compiler works configure:3931: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now 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: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 configure:4005: $? = 0 configure:4027: result: configure:4049: checking whether we are cross compiling configure:4087: result: yes configure:4092: checking for suffix of object files configure:4114: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:4118: $? = 0 configure:4139: result: o configure:4143: checking whether we are using the GNU C compiler configure:4162: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:4162: $? = 0 configure:4171: result: yes configure:4180: checking whether aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot accepts -g configure:4200: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -g -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:4200: $? = 0 configure:4241: result: yes configure:4258: checking for aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot option to accept ISO C89 configure:4321: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:4321: $? = 0 configure:4334: result: none needed configure:4359: checking whether aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot understands -c and -o together configure:4381: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c conftest.c -o conftest2.o configure:4384: $? = 0 configure:4381: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c conftest.c -o conftest2.o configure:4384: $? = 0 configure:4396: result: yes configure:4416: checking whether make supports the include directive configure:4431: make -f confmf.GNU && cat confinc.out this is the am__doit target configure:4434: $? = 0 configure:4453: result: yes (GNU style) configure:4478: checking dependency style of aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot configure:4589: result: none configure:4611: checking how to run the C preprocessor configure:4681: result: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security configure:4701: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/limits.h:26, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:194, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/syslimits.h:7, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:34, from conftest.c:17: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:4701: $? = 0 configure:4715: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:16:10: fatal error: ac_nonexistent.h: No such file or directory 16 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:4715: $? = 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:4744: checking for grep that handles long lines and -e configure:4802: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep configure:4807: checking for egrep configure:4869: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep -E configure:4874: checking for ANSI C header files configure:4978: result: yes configure:4991: checking for sys/types.h configure:4991: result: yes configure:4991: checking for sys/stat.h configure:4991: result: yes configure:4991: checking for stdlib.h configure:4991: result: yes configure:4991: checking for string.h configure:4991: result: yes configure:4991: checking for memory.h configure:4991: result: yes configure:4991: checking for strings.h configure:4991: result: yes configure:4991: checking for inttypes.h configure:4991: result: yes configure:4991: checking for stdint.h configure:4991: result: yes configure:4991: checking for unistd.h configure:4991: result: yes configure:5004: checking minix/config.h usability configure:5004: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:59:10: fatal error: minix/config.h: No such file or directory 59 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:5004: $? = 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:5004: result: no configure:5004: checking minix/config.h presence configure:5004: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:26:10: fatal error: minix/config.h: No such file or directory 26 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:5004: $? = 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:5004: result: no configure:5004: checking for minix/config.h configure:5004: result: no configure:5025: checking whether it is safe to define __EXTENSIONS__ configure:5043: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:5043: $? = 0 configure:5050: result: yes configure:5413: checking how to print strings configure:5440: result: printf configure:5461: checking for a sed that does not truncate output configure:5525: result: sed configure:5543: checking for fgrep configure:5605: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep -F configure:5640: checking for ld used by aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot configure:5707: result: aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot configure:5714: checking if the linker (aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot ) is GNU ld configure:5729: result: yes configure:5741: checking for BSD- or MS-compatible name lister (nm) configure:5795: result: aarch64-poky-linux-nm configure:5925: checking the name lister (aarch64-poky-linux-nm) interface configure:5932: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:5935: aarch64-poky-linux-nm "conftest.o" configure:5938: output 0000000000000000 B some_variable configure:5939: result: BSD nm configure:5942: checking whether ln -s works configure:5946: result: yes configure:5954: checking the maximum length of command line arguments configure:6085: result: 1572864 configure:6133: checking how to convert x86_64-pc-linux-gnu file names to aarch64-poky-linux-gnu format configure:6173: result: func_convert_file_noop configure:6180: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:6200: result: func_convert_file_noop configure:6207: checking for aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot option to reload object files configure:6214: result: -r configure:6248: checking for aarch64-poky-linux-objdump configure:6275: result: aarch64-poky-linux-objdump configure:6344: checking how to recognize dependent libraries configure:6544: result: pass_all configure:6589: checking for aarch64-poky-linux-dlltool configure:6616: result: dlltool configure:6686: checking how to associate runtime and link libraries configure:6713: result: printf %s\n configure:6729: checking for aarch64-poky-linux-ar configure:6756: result: aarch64-poky-linux-gcc-ar configure:6837: checking for archiver @FILE support configure:6854: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:6854: $? = 0 configure:6857: aarch64-poky-linux-gcc-ar cru libconftest.a @conftest.lst >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ar: `u' modifier ignored since `D' is the default (see `U') configure:6860: $? = 0 configure:6865: aarch64-poky-linux-gcc-ar cru libconftest.a @conftest.lst >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ar: `u' modifier ignored since `D' is the default (see `U') /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ar: conftest.o: No such file or directory configure:6868: $? = 1 configure:6867: result: @ configure:6885: checking for aarch64-poky-linux-strip configure:6912: result: aarch64-poky-linux-strip configure:6984: checking for aarch64-poky-linux-ranlib configure:7011: result: aarch64-poky-linux-gcc-ranlib configure:7153: checking command to parse aarch64-poky-linux-nm output from aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot object configure:7306: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:7309: $? = 0 configure:7313: aarch64-poky-linux-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:7316: $? = 0 configure:7382: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c conftstm.o >&5 configure:7385: $? = 0 configure:7423: result: ok configure:7470: checking for sysroot configure:7505: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot configure:7512: checking for a working dd configure:7550: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/dd configure:7554: checking how to truncate binary pipes configure:7569: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/dd bs=4096 count=1 configure:7858: checking for aarch64-poky-linux-mt configure:7888: result: no configure:7898: checking for mt configure:7928: result: no configure:7948: checking if : is a manifest tool configure:7954: : '-?' configure:7962: result: no configure:8636: checking for dlfcn.h configure:8636: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:8636: $? = 0 configure:8636: result: yes configure:8891: checking for objdir configure:8906: result: .libs configure:9166: checking if aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot supports -fno-rtti -fno-exceptions configure:9184: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -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:9188: $? = 0 configure:9201: result: no configure:9559: checking for aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot option to produce PIC configure:9566: result: -fPIC -DPIC configure:9574: checking if aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot PIC flag -fPIC -DPIC works configure:9592: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -fPIC -DPIC -DPIC conftest.c >&5 configure:9596: $? = 0 configure:9609: result: yes configure:9638: checking if aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot static flag -static works configure:9666: result: yes configure:9681: checking if aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot supports -c -o file.o configure:9702: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -o out/conftest2.o conftest.c >&5 configure:9706: $? = 0 configure:9728: result: yes configure:9736: checking if aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot supports -c -o file.o configure:9783: result: yes configure:9816: checking whether the aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot linker (aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot ) supports shared libraries configure:11075: result: yes configure:11112: checking whether -lc should be explicitly linked in configure:11120: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:11123: $? = 0 configure:11138: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep -lc \>/dev/null 2\>\&1 configure:11141: $? = 0 configure:11155: result: no configure:11315: checking dynamic linker characteristics configure:11896: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now -Wl,-rpath -Wl,/foo conftest.c >&5 configure:11896: $? = 0 configure:12133: result: GNU/Linux ld.so configure:12255: checking how to hardcode library paths into programs configure:12280: result: immediate configure:12828: checking whether stripping libraries is possible configure:12833: result: yes configure:12868: checking if libtool supports shared libraries configure:12870: result: yes configure:12873: checking whether to build shared libraries configure:12898: result: yes configure:12901: checking whether to build static libraries configure:12905: result: no configure:9737: checking for aarch64-poky-linux-strip configure:9764: result: aarch64-poky-linux-strip configure:10041: checking for dirent.h that defines DIR configure:10060: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10060: $? = 0 configure:10068: result: yes configure:10081: checking for library containing opendir configure:10112: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 configure:10112: $? = 0 configure:10129: result: none required configure:10196: checking for sys/wait.h that is POSIX.1 compatible configure:10222: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10222: $? = 0 configure:10229: result: yes configure:10240: checking acl/libacl.h usability configure:10240: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:68:10: fatal error: acl/libacl.h: No such file or directory 68 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10240: $? = 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:10240: result: no configure:10240: checking acl/libacl.h presence configure:10240: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:35:10: fatal error: acl/libacl.h: No such file or directory 35 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10240: $? = 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:10240: result: no configure:10240: checking for acl/libacl.h configure:10240: result: no configure:10240: checking attr/xattr.h usability configure:10240: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:68:10: fatal error: attr/xattr.h: No such file or directory 68 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10240: $? = 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:10240: result: no configure:10240: checking attr/xattr.h presence configure:10240: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:35:10: fatal error: attr/xattr.h: No such file or directory 35 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10240: $? = 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:10240: result: no configure:10240: checking for attr/xattr.h configure:10240: result: no configure:10253: checking copyfile.h usability configure:10253: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:68:10: fatal error: copyfile.h: No such file or directory 68 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10253: $? = 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:10253: result: no configure:10253: checking copyfile.h presence configure:10253: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:35:10: fatal error: copyfile.h: No such file or directory 35 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10253: $? = 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:10253: result: no configure:10253: checking for copyfile.h configure:10253: result: no configure:10253: checking ctype.h usability configure:10253: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10253: $? = 0 configure:10253: result: yes configure:10253: checking ctype.h presence configure:10253: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/ctype.h:25, from conftest.c:35: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10253: $? = 0 configure:10253: result: yes configure:10253: checking for ctype.h configure:10253: result: yes configure:10266: checking errno.h usability configure:10266: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking errno.h presence configure:10266: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/errno.h:25, from conftest.c:36: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking for errno.h configure:10266: result: yes configure:10266: checking ext2fs/ext2_fs.h usability configure:10266: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking ext2fs/ext2_fs.h presence configure:10266: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/stdint.h:26, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include/stdint.h:9, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes/ext2fs/ext2_types.h:176, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes/ext2fs/ext2_fs.h:19, from conftest.c:37: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking for ext2fs/ext2_fs.h configure:10266: result: yes configure:10266: checking fcntl.h usability configure:10266: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking fcntl.h presence configure:10266: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/fcntl.h:25, from conftest.c:38: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking for fcntl.h configure:10266: result: yes configure:10266: checking grp.h usability configure:10266: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking grp.h presence configure:10266: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/grp.h:25, from conftest.c:39: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10266: $? = 0 configure:10266: result: yes configure:10266: checking for grp.h configure:10266: result: yes configure:10277: checking whether EXT2_IOC_GETFLAGS is usable configure:10294: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10294: $? = 0 configure:10301: result: yes configure:10315: checking for inttypes.h configure:10315: result: yes configure:10315: checking io.h usability configure:10315: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:75:10: fatal error: io.h: No such file or directory 75 | #include | ^~~~~~ compilation terminated. configure:10315: $? = 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:10315: result: no configure:10315: checking io.h presence configure:10315: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:42:10: fatal error: io.h: No such file or directory 42 | #include | ^~~~~~ compilation terminated. configure:10315: $? = 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:10315: result: no configure:10315: checking for io.h configure:10315: result: no configure:10315: checking langinfo.h usability configure:10315: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10315: $? = 0 configure:10315: result: yes configure:10315: checking langinfo.h presence configure:10315: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/nl_types.h:21, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/langinfo.h:23, from conftest.c:42: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10315: $? = 0 configure:10315: result: yes configure:10315: checking for langinfo.h configure:10315: result: yes configure:10315: checking limits.h usability configure:10315: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10315: $? = 0 configure:10315: result: yes configure:10315: checking limits.h presence configure:10315: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/limits.h:26, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:194, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/syslimits.h:7, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:34, from conftest.c:43: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10315: $? = 0 configure:10315: result: yes configure:10315: checking for limits.h configure:10315: result: yes configure:10328: checking linux/fiemap.h usability configure:10328: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking linux/fiemap.h presence configure:10328: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking for linux/fiemap.h configure:10328: result: yes configure:10328: checking linux/fs.h usability configure:10328: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking linux/fs.h presence configure:10328: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking for linux/fs.h configure:10328: result: yes configure:10328: checking linux/magic.h usability configure:10328: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking linux/magic.h presence configure:10328: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking for linux/magic.h configure:10328: result: yes configure:10328: checking linux/types.h usability configure:10328: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking linux/types.h presence configure:10328: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c configure:10328: $? = 0 configure:10328: result: yes configure:10328: checking for linux/types.h configure:10328: result: yes configure:10339: checking whether FS_IOC_GETFLAGS is usable configure:10356: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10356: $? = 0 configure:10363: result: yes configure:10377: checking locale.h usability configure:10377: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking locale.h presence configure:10377: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/locale.h:25, from conftest.c:49: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking for locale.h configure:10377: result: yes configure:10377: checking membership.h usability configure:10377: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:83:10: fatal error: membership.h: No such file or directory 83 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10377: $? = 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:10377: result: no configure:10377: checking membership.h presence configure:10377: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:50:10: fatal error: membership.h: No such file or directory 50 | #include | ^~~~~~~~~~~~~~ compilation terminated. configure:10377: $? = 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:10377: result: no configure:10377: checking for membership.h configure:10377: result: no configure:10377: checking paths.h usability configure:10377: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking paths.h presence configure:10377: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking for paths.h configure:10377: result: yes configure:10377: checking poll.h usability configure:10377: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking poll.h presence configure:10377: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/poll.h:22, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/poll.h:1, from conftest.c:51: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking for poll.h configure:10377: result: yes configure:10377: checking pthread.h usability configure:10377: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking pthread.h presence configure:10377: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/pthread.h:21, from conftest.c:52: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking for pthread.h configure:10377: result: yes configure:10377: checking pwd.h usability configure:10377: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking pwd.h presence configure:10377: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/pwd.h:25, from conftest.c:53: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10377: $? = 0 configure:10377: result: yes configure:10377: checking for pwd.h configure:10377: result: yes configure:10390: checking readpassphrase.h usability configure:10390: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:87:10: fatal error: readpassphrase.h: No such file or directory 87 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:10390: $? = 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:10390: result: no configure:10390: checking readpassphrase.h presence configure:10390: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:54:10: fatal error: readpassphrase.h: No such file or directory 54 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:10390: $? = 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:10390: result: no configure:10390: checking for readpassphrase.h configure:10390: result: no configure:10390: checking signal.h usability configure:10390: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10390: $? = 0 configure:10390: result: yes configure:10390: checking signal.h presence configure:10390: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/signal.h:25, from conftest.c:54: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10390: $? = 0 configure:10390: result: yes configure:10390: checking for signal.h configure:10390: result: yes configure:10390: checking spawn.h usability configure:10390: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10390: $? = 0 configure:10390: result: yes configure:10390: checking spawn.h presence configure:10390: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/spawn.h:22, from conftest.c:55: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10390: $? = 0 configure:10390: result: yes configure:10390: checking for spawn.h configure:10390: result: yes configure:10403: checking stdarg.h usability configure:10403: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10403: $? = 0 configure:10403: result: yes configure:10403: checking stdarg.h presence configure:10403: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c configure:10403: $? = 0 configure:10403: result: yes configure:10403: checking for stdarg.h configure:10403: result: yes configure:10403: checking for stdint.h configure:10403: result: yes configure:10403: checking for stdlib.h configure:10403: result: yes configure:10403: checking for string.h configure:10403: result: yes configure:10416: checking sys/acl.h usability configure:10416: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:93:10: fatal error: sys/acl.h: No such file or directory 93 | #include | ^~~~~~~~~~~ compilation terminated. configure:10416: $? = 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:10416: result: no configure:10416: checking sys/acl.h presence configure:10416: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:60:10: fatal error: sys/acl.h: No such file or directory 60 | #include | ^~~~~~~~~~~ compilation terminated. configure:10416: $? = 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:10416: result: no configure:10416: checking for sys/acl.h configure:10416: result: no configure:10416: checking sys/cdefs.h usability configure:10416: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10416: $? = 0 configure:10416: result: yes configure:10416: checking sys/cdefs.h presence configure:10416: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/cdefs.h:23, from conftest.c:60: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10416: $? = 0 configure:10416: result: yes configure:10416: checking for sys/cdefs.h configure:10416: result: yes configure:10416: checking sys/ea.h usability configure:10416: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:94:10: fatal error: sys/ea.h: No such file or directory 94 | #include | ^~~~~~~~~~ compilation terminated. configure:10416: $? = 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:10416: result: no configure:10416: checking sys/ea.h presence configure:10416: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:61:10: fatal error: sys/ea.h: No such file or directory 61 | #include | ^~~~~~~~~~ compilation terminated. configure:10416: $? = 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:10416: result: no configure:10416: checking for sys/ea.h configure:10416: result: no configure:10416: checking sys/extattr.h usability configure:10416: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:94:10: fatal error: sys/extattr.h: No such file or directory 94 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10416: $? = 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:10416: result: no configure:10416: checking sys/extattr.h presence configure:10416: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:61:10: fatal error: sys/extattr.h: No such file or directory 61 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10416: $? = 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:10416: result: no configure:10416: checking for sys/extattr.h configure:10416: result: no configure:10429: checking sys/ioctl.h usability configure:10429: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10429: $? = 0 configure:10429: result: yes configure:10429: checking sys/ioctl.h presence configure:10429: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/ioctl.h:21, from conftest.c:61: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10429: $? = 0 configure:10429: result: yes configure:10429: checking for sys/ioctl.h configure:10429: result: yes configure:10429: checking sys/mkdev.h usability configure:10429: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:95:10: fatal error: sys/mkdev.h: No such file or directory 95 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10429: $? = 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:10429: result: no configure:10429: checking sys/mkdev.h presence configure:10429: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:62:10: fatal error: sys/mkdev.h: No such file or directory 62 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10429: $? = 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:10429: result: no configure:10429: checking for sys/mkdev.h configure:10429: result: no configure:10429: checking sys/mount.h usability configure:10429: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10429: $? = 0 configure:10429: result: yes configure:10429: checking sys/mount.h presence configure:10429: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/mount.h:24, from conftest.c:62: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10429: $? = 0 configure:10429: result: yes configure:10429: checking for sys/mount.h configure:10429: result: yes configure:10442: checking sys/param.h usability configure:10442: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10442: $? = 0 configure:10442: result: yes configure:10442: checking sys/param.h presence configure:10442: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/types.h:25, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/param.h:25, from conftest.c:63: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10442: $? = 0 configure:10442: result: yes configure:10442: checking for sys/param.h configure:10442: result: yes configure:10442: checking sys/poll.h usability configure:10442: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10442: $? = 0 configure:10442: result: yes configure:10442: checking sys/poll.h presence configure:10442: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/poll.h:22, from conftest.c:64: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10442: $? = 0 configure:10442: result: yes configure:10442: checking for sys/poll.h configure:10442: result: yes configure:10442: checking sys/richacl.h usability configure:10442: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:98:10: fatal error: sys/richacl.h: No such file or directory 98 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10442: $? = 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:10442: result: no configure:10442: checking sys/richacl.h presence configure:10442: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:65:10: fatal error: sys/richacl.h: No such file or directory 65 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:10442: $? = 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:10442: result: no configure:10442: checking for sys/richacl.h configure:10442: result: no configure:10455: checking sys/select.h usability configure:10455: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking sys/select.h presence configure:10455: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/select.h:24, from conftest.c:65: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking for sys/select.h configure:10455: result: yes configure:10455: checking sys/statfs.h usability configure:10455: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking sys/statfs.h presence configure:10455: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/statfs.h:22, from conftest.c:66: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking for sys/statfs.h configure:10455: result: yes configure:10455: checking sys/statvfs.h usability configure:10455: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking sys/statvfs.h presence configure:10455: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/statvfs.h:22, from conftest.c:67: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking for sys/statvfs.h configure:10455: result: yes configure:10455: checking sys/sysmacros.h usability configure:10455: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking sys/sysmacros.h presence configure:10455: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/sysmacros.h:22, from conftest.c:68: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10455: $? = 0 configure:10455: result: yes configure:10455: checking for sys/sysmacros.h configure:10455: result: yes configure:10468: checking sys/time.h usability configure:10468: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking sys/time.h presence configure:10468: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/time.h:21, from conftest.c:69: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking for sys/time.h configure:10468: result: yes configure:10468: checking sys/utime.h usability configure:10468: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:103:10: fatal error: sys/utime.h: No such file or directory 103 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10468: $? = 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:10468: result: no configure:10468: checking sys/utime.h presence configure:10468: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:70:10: fatal error: sys/utime.h: No such file or directory 70 | #include | ^~~~~~~~~~~~~ compilation terminated. configure:10468: $? = 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:10468: result: no configure:10468: checking for sys/utime.h configure:10468: result: no configure:10468: checking sys/utsname.h usability configure:10468: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking sys/utsname.h presence configure:10468: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/utsname.h:25, from conftest.c:70: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking for sys/utsname.h configure:10468: result: yes configure:10468: checking sys/vfs.h usability configure:10468: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking sys/vfs.h presence configure:10468: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/statfs.h:22, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/vfs.h:4, from conftest.c:71: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking for sys/vfs.h configure:10468: result: yes configure:10468: checking sys/xattr.h usability configure:10468: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking sys/xattr.h presence configure:10468: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/xattr.h:21, from conftest.c:72: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10468: $? = 0 configure:10468: result: yes configure:10468: checking for sys/xattr.h configure:10468: result: yes configure:10481: checking time.h usability configure:10481: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking time.h presence configure:10481: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/time.h:25, from conftest.c:73: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking for time.h configure:10481: result: yes configure:10481: checking for unistd.h configure:10481: result: yes configure:10481: checking utime.h usability configure:10481: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking utime.h presence configure:10481: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/utime.h:25, from conftest.c:75: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking for utime.h configure:10481: result: yes configure:10481: checking wchar.h usability configure:10481: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking wchar.h presence configure:10481: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/wchar.h:27, from conftest.c:76: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking for wchar.h configure:10481: result: yes configure:10481: checking wctype.h usability configure:10481: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking wctype.h presence configure:10481: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/wctype.h:26, from conftest.c:77: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10481: $? = 0 configure:10481: result: yes configure:10481: checking for wctype.h configure:10481: result: yes configure:10493: checking windows.h usability configure:10493: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:111:10: fatal error: windows.h: No such file or directory 111 | #include | ^~~~~~~~~~~ compilation terminated. configure:10493: $? = 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:10493: result: no configure:10493: checking windows.h presence configure:10493: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:78:10: fatal error: windows.h: No such file or directory 78 | #include | ^~~~~~~~~~~ compilation terminated. configure:10493: $? = 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:10493: result: no configure:10493: checking for windows.h configure:10493: result: no configure:10507: checking for wincrypt.h configure:10507: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:83:10: fatal error: wincrypt.h: No such file or directory 83 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10507: $? = 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:10507: result: no configure:10507: checking for winioctl.h configure:10507: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:83:10: fatal error: winioctl.h: No such file or directory 83 | #include | ^~~~~~~~~~~~ compilation terminated. configure:10507: $? = 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:10507: result: no configure:10533: checking zlib.h usability configure:10533: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10533: $? = 0 configure:10533: result: yes configure:10533: checking zlib.h presence configure:10533: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/limits.h:26, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:194, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/syslimits.h:7, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:34, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/zconf.h:418, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/zlib.h:34, from conftest.c:78: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10533: $? = 0 configure:10533: result: yes configure:10533: checking for zlib.h configure:10533: result: yes configure:10543: checking for inflate in -lz configure:10568: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lz >&5 configure:10568: $? = 0 configure:10577: result: yes configure:10600: checking bzlib.h usability configure:10600: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:10600: $? = 0 configure:10600: result: yes configure:10600: checking bzlib.h presence configure:10600: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/stdio.h:27, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bzlib.h:75, from conftest.c:80: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:10600: $? = 0 configure:10600: result: yes configure:10600: checking for bzlib.h configure:10600: result: yes configure:10639: checking for BZ2_bzDecompressInit in -lbz2 configure:10664: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lbz2 -lz >&5 configure:10664: $? = 0 configure:10673: result: yes configure:10698: checking blake2.h usability configure:10698: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:115:10: fatal error: blake2.h: No such file or directory 115 | #include | ^~~~~~~~~~ compilation terminated. configure:10698: $? = 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:10698: result: no configure:10698: checking blake2.h presence configure:10698: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:82:10: fatal error: blake2.h: No such file or directory 82 | #include | ^~~~~~~~~~ compilation terminated. configure:10698: $? = 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:10698: result: no configure:10698: checking for blake2.h configure:10698: result: no configure:10708: checking for blake2sp_init in -lb2 configure:10733: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lb2 -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: cannot find -lb2 collect2: error: ld returned 1 exit status configure:10733: $? = 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:10742: result: no configure:10811: checking for ld configure:10939: result: aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot configure:10946: checking if the linker (aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot ) is GNU ld configure:10961: result: yes configure:10968: checking for shared library run path origin configure:10981: result: done configure:11002: checking 32-bit host C ABI configure:11064: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:11064: $? = 0 configure:11227: result: no configure:11264: checking for the common suffixes of directories in the library search path configure:11315: result: lib,lib configure:11815: checking for iconv configure:11839: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lbz2 -lz >&5 configure:11839: $? = 0 configure:11873: result: yes configure:11876: checking for working iconv configure:12029: result: guessing yes configure:12057: checking for iconv declaration configure:12086: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:12086: $? = 0 configure:12097: result: extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); configure:12112: checking for iconv.h configure:12112: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:12112: $? = 0 configure:12112: result: yes configure:12126: checking localcharset.h usability configure:12126: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:118:10: fatal error: localcharset.h: No such file or directory 118 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:12126: $? = 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:12126: result: no configure:12126: checking localcharset.h presence configure:12126: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:85:10: fatal error: localcharset.h: No such file or directory 85 | #include | ^~~~~~~~~~~~~~~~ compilation terminated. configure:12126: $? = 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:12126: result: no configure:12126: checking for localcharset.h configure:12126: result: no configure:12140: checking for locale_charset configure:12140: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccReNgJv.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:119: undefined reference to `locale_charset' collect2: error: ld returned 1 exit status configure:12140: $? = 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:12140: result: no configure:12152: checking for locale_charset in -lcharset configure:12177: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lcharset -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: cannot find -lcharset collect2: error: ld returned 1 exit status configure:12177: $? = 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:12186: result: no configure:12279: checking zstd.h usability configure:12279: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 conftest.c:118:10: fatal error: zstd.h: No such file or directory 118 | #include | ^~~~~~~~ compilation terminated. configure:12279: $? = 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:12279: result: no configure:12279: checking zstd.h presence configure:12279: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c conftest.c:85:10: fatal error: zstd.h: No such file or directory 85 | #include | ^~~~~~~~ compilation terminated. configure:12279: $? = 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:12279: result: no configure:12279: checking for zstd.h configure:12279: result: no configure:12289: checking for ZSTD_compressStream in -lzstd configure:12314: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lzstd -lbz2 -lz >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: cannot find -lzstd collect2: error: ld returned 1 exit status configure:12314: $? = 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:12323: result: no configure:12346: checking lzma.h usability configure:12346: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:12346: $? = 0 configure:12346: result: yes configure:12346: checking lzma.h presence configure:12346: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/inttypes.h:25, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/lzma.h:124, from conftest.c:85: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:12346: $? = 0 configure:12346: result: yes configure:12346: checking for lzma.h configure:12346: result: yes configure:12356: checking for lzma_stream_decoder in -llzma configure:12381: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzma -lbz2 -lz >&5 configure:12381: $? = 0 configure:12390: result: yes configure:12405: checking whether we have multithread support in lzma configure:12425: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now 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:12425: $? = 0 configure:12433: result: yes configure:12453: checking lzo/lzoconf.h usability configure:12453: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:12453: $? = 0 configure:12453: result: yes configure:12453: checking lzo/lzoconf.h presence configure:12453: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/limits.h:26, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:194, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/syslimits.h:7, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:34, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/lzo/lzoconf.h:40, from conftest.c:88: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:12453: $? = 0 configure:12453: result: yes configure:12453: checking for lzo/lzoconf.h configure:12453: result: yes configure:12453: checking lzo/lzo1x.h usability configure:12453: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c >&5 configure:12453: $? = 0 configure:12453: result: yes configure:12453: checking lzo/lzo1x.h presence configure:12453: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/limits.h:26, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:194, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/syslimits.h:7, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/include-fixed/limits.h:34, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/lzo/lzoconf.h:40, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/lzo/lzo1x.h:33, from conftest.c:89: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:12453: $? = 0 configure:12453: result: yes configure:12453: checking for lzo/lzo1x.h configure:12453: result: yes configure:12463: checking for lzo1x_decompress_safe in -llzo2 configure:12488: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz >&5 configure:12488: $? = 0 configure:12497: result: yes configure:12564: checking for aarch64-poky-linux-pkg-config configure:12597: result: no configure:12607: checking for pkg-config configure:12625: found /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/pkg-config configure:12637: result: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/pkg-config configure:12649: WARNING: using cross tools not prefixed with host triplet configure:12662: checking pkg-config is at least version 0.9.0 configure:12665: result: yes configure:12675: checking for libxml-2.0 configure:12682: $PKG_CONFIG --exists --print-errors "libxml-2.0" configure:12685: $? = 0 configure:12699: $PKG_CONFIG --exists --print-errors "libxml-2.0" configure:12702: $? = 0 configure:12832: result: yes configure:12837: checking for xmlInitParser in -lxml2 configure:12862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lxml2 -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:12862: $? = 0 configure:12871: result: yes configure:12887: checking libxml/xmlreader.h usability configure:12887: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:12887: $? = 0 configure:12887: result: yes configure:12887: checking libxml/xmlreader.h presence configure:12887: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/stdio.h:27, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2/libxml/tree.h:15, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2/libxml/xmlreader.h:14, from conftest.c:91: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:12887: $? = 0 configure:12887: result: yes configure:12887: checking for libxml/xmlreader.h configure:12887: result: yes configure:12887: checking libxml/xmlwriter.h usability configure:12887: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:12887: $? = 0 configure:12887: result: yes configure:12887: checking libxml/xmlwriter.h presence configure:12887: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/stdio.h:27, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2/libxml/xmlIO.h:13, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2/libxml/xmlwriter.h:18, from conftest.c:92: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:12887: $? = 0 configure:12887: result: yes configure:12887: checking for libxml/xmlwriter.h configure:12887: result: yes configure:12972: checking regex.h usability configure:12972: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:12972: $? = 0 configure:12972: result: yes configure:12972: checking regex.h presence configure:12972: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/types.h:25, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/regex.h:23, from conftest.c:93: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:12972: $? = 0 configure:12972: result: yes configure:12972: checking for regex.h configure:12972: result: yes configure:12983: checking for regcomp configure:12983: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:12983: $? = 0 configure:12983: result: yes configure:13253: checking whether C compiler accepts -Wall configure:13272: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13272: $? = 0 configure:13281: result: yes configure:13297: : CFLAGS="$CFLAGS" configure:13300: $? = 0 configure:13253: checking whether C compiler accepts -Wformat configure:13272: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13272: $? = 0 configure:13281: result: yes configure:13297: : CFLAGS="$CFLAGS" configure:13300: $? = 0 configure:13253: checking whether C compiler accepts -Wformat-security configure:13272: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13272: $? = 0 configure:13281: result: yes configure:13297: : CFLAGS="$CFLAGS" configure:13300: $? = 0 configure:13324: checking for an ANSI C-conforming const configure:13390: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13390: $? = 0 configure:13397: result: yes configure:13407: checking for uid_t in sys/types.h In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sys/types.h:25, from conftest.c:94: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:13426: result: yes configure:13445: checking for mode_t configure:13445: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13445: $? = 0 configure:13445: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:130:21: error: expected expression before ')' token 130 | if (sizeof ((mode_t))) | ^ configure:13445: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13445: result: yes configure:13458: checking for off_t configure:13458: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13458: $? = 0 configure:13458: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:130:20: error: expected expression before ')' token 130 | if (sizeof ((off_t))) | ^ configure:13458: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13458: result: yes configure:13469: checking for size_t configure:13469: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13469: $? = 0 configure:13469: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:130:21: error: expected expression before ')' token 130 | if (sizeof ((size_t))) | ^ configure:13469: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13469: result: yes configure:13480: checking for id_t configure:13480: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13480: $? = 0 configure:13480: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:130:19: error: expected expression before ')' token 130 | if (sizeof ((id_t))) | ^ configure:13480: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13480: result: yes configure:13491: checking for uintptr_t configure:13491: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13491: $? = 0 configure:13491: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:130:24: error: expected expression before ')' token 130 | if (sizeof ((uintptr_t))) | ^ configure:13491: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13491: result: yes configure:13504: checking for struct tm.tm_gmtoff configure:13504: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13504: $? = 0 configure:13504: result: yes configure:13516: checking for struct tm.__tm_gmtoff configure:13516: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:103:13: error: 'struct tm' has no member named '__tm_gmtoff'; did you mean 'tm_gmtoff'? 103 | if (ac_aggr.__tm_gmtoff) | ^~~~~~~~~~~ | tm_gmtoff conftest.c:102:18: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 102 | static struct tm ac_aggr; | ^~~~~~~ configure:13516: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13516: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:103:20: error: 'struct tm' has no member named '__tm_gmtoff'; did you mean 'tm_gmtoff'? 103 | if (sizeof ac_aggr.__tm_gmtoff) | ^~~~~~~~~~~ | tm_gmtoff conftest.c:102:18: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 102 | static struct tm ac_aggr; | ^~~~~~~ configure:13516: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13516: result: no configure:13531: checking for struct statfs.f_namemax configure:13531: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:103:22: error: storage size of 'ac_aggr' isn't known 103 | static struct statfs ac_aggr; | ^~~~~~~ conftest.c:103:22: warning: unused variable 'ac_aggr' [-Wunused-variable] configure:13531: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13531: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:103:22: error: storage size of 'ac_aggr' isn't known 103 | static struct statfs ac_aggr; | ^~~~~~~ conftest.c:103:22: warning: unused variable 'ac_aggr' [-Wunused-variable] configure:13531: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13531: result: no configure:13547: checking for struct statvfs.f_iosize configure:13547: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:103:13: error: 'struct statvfs' has no member named 'f_iosize'; did you mean 'f_bsize'? 103 | if (ac_aggr.f_iosize) | ^~~~~~~~ | f_bsize conftest.c:102:23: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 102 | static struct statvfs ac_aggr; | ^~~~~~~ configure:13547: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13547: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:103:20: error: 'struct statvfs' has no member named 'f_iosize'; did you mean 'f_bsize'? 103 | if (sizeof ac_aggr.f_iosize) | ^~~~~~~~ | f_bsize conftest.c:102:23: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 102 | static struct statvfs ac_aggr; | ^~~~~~~ configure:13547: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13547: result: no configure:13562: checking for struct stat.st_birthtime configure:13562: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:132:12: error: 'struct stat' has no member named 'st_birthtime' 132 | if (ac_aggr.st_birthtime) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13562: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13562: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:132:19: error: 'struct stat' has no member named 'st_birthtime' 132 | if (sizeof ac_aggr.st_birthtime) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13562: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13562: result: no configure:13574: checking for struct stat.st_birthtimespec.tv_nsec configure:13574: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:132:12: error: 'struct stat' has no member named 'st_birthtimespec' 132 | if (ac_aggr.st_birthtimespec.tv_nsec) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13574: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13574: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:132:19: error: 'struct stat' has no member named 'st_birthtimespec' 132 | if (sizeof ac_aggr.st_birthtimespec.tv_nsec) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13574: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13574: result: no configure:13584: checking for struct stat.st_mtimespec.tv_nsec configure:13584: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:132:12: error: 'struct stat' has no member named 'st_mtimespec' 132 | if (ac_aggr.st_mtimespec.tv_nsec) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13584: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13584: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:132:19: error: 'struct stat' has no member named 'st_mtimespec' 132 | if (sizeof ac_aggr.st_mtimespec.tv_nsec) | ^ conftest.c:131:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 131 | static struct stat ac_aggr; | ^~~~~~~ configure:13584: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13584: result: no configure:13594: checking for struct stat.st_mtim.tv_nsec configure:13594: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13594: $? = 0 configure:13594: result: yes configure:13604: checking for struct stat.st_mtime_n configure:13604: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:13: error: 'struct stat' has no member named 'st_mtime_n'; did you mean 'st_mtim'? 133 | if (ac_aggr.st_mtime_n) | ^~~~~~~~~~ | st_mtim conftest.c:132:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 132 | static struct stat ac_aggr; | ^~~~~~~ configure:13604: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13604: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:20: error: 'struct stat' has no member named 'st_mtime_n'; did you mean 'st_mtim'? 133 | if (sizeof ac_aggr.st_mtime_n) | ^~~~~~~~~~ | st_mtim conftest.c:132:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 132 | static struct stat ac_aggr; | ^~~~~~~ configure:13604: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13604: result: no configure:13614: checking for struct stat.st_umtime configure:13614: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:13: error: 'struct stat' has no member named 'st_umtime'; did you mean 'st_mtim'? 133 | if (ac_aggr.st_umtime) | ^~~~~~~~~ | st_mtim conftest.c:132:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 132 | static struct stat ac_aggr; | ^~~~~~~ configure:13614: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13614: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:20: error: 'struct stat' has no member named 'st_umtime'; did you mean 'st_mtim'? 133 | if (sizeof ac_aggr.st_umtime) | ^~~~~~~~~ | st_mtim conftest.c:132:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 132 | static struct stat ac_aggr; | ^~~~~~~ configure:13614: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13614: result: no configure:13624: checking for struct stat.st_mtime_usec configure:13624: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:12: error: 'struct stat' has no member named 'st_mtime_usec' 133 | if (ac_aggr.st_mtime_usec) | ^ conftest.c:132:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 132 | static struct stat ac_aggr; | ^~~~~~~ configure:13624: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13624: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:19: error: 'struct stat' has no member named 'st_mtime_usec' 133 | if (sizeof ac_aggr.st_mtime_usec) | ^ conftest.c:132:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 132 | static struct stat ac_aggr; | ^~~~~~~ configure:13624: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13624: result: no configure:13635: checking for struct stat.st_blksize configure:13635: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13635: $? = 0 configure:13635: result: yes configure:13646: checking for struct stat.st_flags configure:13646: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:134:12: error: 'struct stat' has no member named 'st_flags' 134 | if (ac_aggr.st_flags) | ^ conftest.c:133:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 133 | static struct stat ac_aggr; | ^~~~~~~ configure:13646: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13646: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:134:19: error: 'struct stat' has no member named 'st_flags' 134 | if (sizeof ac_aggr.st_flags) | ^ conftest.c:133:20: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 133 | static struct stat ac_aggr; | ^~~~~~~ configure:13646: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13646: result: no configure:13660: checking for uintmax_t configure:13660: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13660: $? = 0 configure:13660: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:133:24: error: expected expression before ')' token 133 | if (sizeof ((uintmax_t))) | ^ configure:13660: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13660: result: yes configure:13669: checking for unsigned long long configure:13669: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13669: $? = 0 configure:13669: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:134:33: error: expected expression before ')' token 134 | if (sizeof ((unsigned long long))) | ^ configure:13669: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13669: result: yes configure:13683: checking for unsigned long long int configure:13722: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:13722: $? = 0 configure:13731: result: yes configure:13741: checking for long long int configure:13791: result: yes configure:13801: checking for intmax_t configure:13801: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13801: $? = 0 configure:13801: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:137:23: error: expected expression before ')' token 137 | if (sizeof ((intmax_t))) | ^ configure:13801: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13801: result: yes configure:13820: checking for uintmax_t configure:13820: result: yes configure:13837: checking for int64_t configure:13837: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13837: $? = 0 configure:13837: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:141:53: warning: integer overflow in expression of type 'long int' results in '-9223372036854775808' [-Woverflow] 141 | < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))]; | ^ conftest.c:140:12: error: storage size of 'test_array' isn't constant 140 | static int test_array [1 - 2 * !((int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1) | ^~~~~~~~~~ conftest.c:140:12: warning: unused variable 'test_array' [-Wunused-variable] configure:13837: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13837: result: yes configure:13848: checking for uint64_t configure:13848: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13848: $? = 0 configure:13848: result: yes configure:13862: checking for int32_t configure:13862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13862: $? = 0 configure:13862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:141:53: warning: integer overflow in expression of type 'int' results in '-2147483648' [-Woverflow] 141 | < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))]; | ^ conftest.c:140:12: error: storage size of 'test_array' isn't constant 140 | static int test_array [1 - 2 * !((int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1) | ^~~~~~~~~~ conftest.c:140:12: warning: unused variable 'test_array' [-Wunused-variable] configure:13862: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13862: result: yes configure:13873: checking for uint32_t configure:13873: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13873: $? = 0 configure:13873: result: yes configure:13887: checking for int16_t configure:13887: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13887: $? = 0 configure:13887: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:140:12: error: size of array 'test_array' is negative 140 | static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1) | ^~~~~~~~~~ configure:13887: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:13887: result: yes configure:13898: checking for uint16_t configure:13898: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13898: $? = 0 configure:13898: result: yes configure:13910: checking for uint8_t configure:13910: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13910: $? = 0 configure:13910: result: yes configure:13925: checking whether SIZE_MAX is declared configure:13925: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13925: $? = 0 configure:13925: result: yes configure:13935: checking whether INT32_MAX is declared configure:13935: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13935: $? = 0 configure:13935: result: yes configure:13945: checking whether INT32_MIN is declared configure:13945: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13945: $? = 0 configure:13945: result: yes configure:13956: checking whether INT64_MAX is declared configure:13956: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13956: $? = 0 configure:13956: result: yes configure:13966: checking whether INT64_MIN is declared configure:13966: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13966: $? = 0 configure:13966: result: yes configure:13976: checking whether UINT64_MAX is declared configure:13976: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13976: $? = 0 configure:13976: result: yes configure:13986: checking whether UINT32_MAX is declared configure:13986: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13986: $? = 0 configure:13986: result: yes configure:13997: checking whether INTMAX_MAX is declared configure:13997: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:13997: $? = 0 configure:13997: result: yes configure:14007: checking whether INTMAX_MIN is declared configure:14007: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14007: $? = 0 configure:14007: result: yes configure:14017: checking whether UINTMAX_MAX is declared configure:14017: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14017: $? = 0 configure:14017: result: yes configure:14029: checking whether SSIZE_MAX is declared configure:14029: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14029: $? = 0 configure:14029: result: yes configure:14038: checking whether EFTYPE is declared configure:14038: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:123:10: error: 'EFTYPE' undeclared (first use in this function) 123 | (void) EFTYPE; | ^~~~~~ conftest.c:123:10: note: each undeclared identifier is reported only once for each function it appears in configure:14038: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14038: result: no configure:14046: checking whether EILSEQ is declared configure:14046: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14046: $? = 0 configure:14046: result: yes configure:14054: checking for wchar_t configure:14054: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14054: $? = 0 configure:14054: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:151:22: error: expected expression before ')' token 151 | if (sizeof ((wchar_t))) | ^ configure:14054: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14054: result: yes configure:14064: checking size of wchar_t configure:14083: result: 4 configure:14096: checking whether time.h and sys/time.h may both be included configure:14116: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14116: $? = 0 configure:14123: result: yes configure:14134: checking whether aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot needs -traditional In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/sgtty.h:21, from conftest.c:118: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/termios.h:25, from /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/termio.h:5, from conftest.c:118: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ configure:14168: result: no configure:14181: checking for sys/types.h configure:14181: result: yes configure:14195: checking for sys/mkdev.h configure:14195: result: no configure:14204: checking for sys/sysmacros.h configure:14204: result: yes configure:14214: checking for _LARGEFILE_SOURCE value needed for large files configure:14233: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14233: $? = 0 configure:14261: result: no configure:14282: checking for working memcmp configure:14335: result: yes configure:14344: checking whether lstat correctly handles trailing slash configure:14387: result: yes configure:14406: checking whether lstat accepts an empty string configure:14436: result: no configure:14452: checking whether stat accepts an empty string configure:14482: result: no configure:14498: checking whether strerror_r is declared configure:14498: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14498: $? = 0 configure:14498: result: yes configure:14511: checking for strerror_r configure:14511: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14511: $? = 0 configure:14511: result: yes configure:14520: checking whether strerror_r returns char * configure:14544: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14544: $? = 0 configure:14582: result: yes configure:14592: checking for strftime configure:14592: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:148:6: warning: conflicting types for built-in function 'strftime'; expected 'long unsigned int(char *, long unsigned int, const char *, const void *)' [-Wbuiltin-declaration-mismatch] 148 | char strftime (); | ^~~~~~~~ conftest.c:136:1: note: 'strftime' is declared in header '' 135 | # include 136 | #else configure:14592: $? = 0 configure:14592: result: yes configure:14647: checking for vprintf configure:14647: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:149:6: warning: conflicting types for built-in function 'vprintf'; expected 'int(const char *, __va_list)' [-Wbuiltin-declaration-mismatch] 149 | char vprintf (); | ^~~~~~~ conftest.c:137:1: note: 'vprintf' is declared in header '' 136 | # include 137 | #else configure:14647: $? = 0 configure:14647: result: yes configure:14653: checking for _doprnt configure:14653: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/cchNZVZC.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:161: undefined reference to `_doprnt' collect2: error: ld returned 1 exit status configure:14653: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14653: result: no configure:14668: checking for CreateHardLinkA configure:14703: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:136:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CreateHardLinkA' 136 | char __stdcall CreateHardLinkA ( const char *, const char *, void * ); | ^~~~~~~~~~~~~~~ conftest.c: In function 'main': conftest.c:148:5: error: 'CreateHardLinkA' undeclared (first use in this function) 148 | f = CreateHardLinkA; | ^~~~~~~~~~~~~~~ conftest.c:148:5: note: each undeclared identifier is reported only once for each function it appears in configure:14703: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14711: result: no configure:14719: checking for arc4random_buf configure:14719: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccXSldKl.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:161: undefined reference to `arc4random_buf' collect2: error: ld returned 1 exit status configure:14719: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14719: result: no configure:14719: checking for chflags configure:14719: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:155:1: error: unknown type name 'choke' 155 | choke me | ^~~~~ conftest.c:155:9: error: expected ';' before 'int' 155 | choke me | ^ | ; ...... 158 | int | ~~~ configure:14719: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14719: result: no configure:14719: checking for chown configure:14719: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14719: $? = 0 configure:14719: result: yes configure:14719: checking for chroot configure:14719: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14719: $? = 0 configure:14719: result: yes configure:14719: checking for ctime_r configure:14719: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14719: $? = 0 configure:14719: result: yes configure:14731: checking for fchdir configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14731: $? = 0 configure:14731: result: yes configure:14731: checking for fchflags configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:159:1: error: unknown type name 'choke' 159 | choke me | ^~~~~ conftest.c:159:9: error: expected ';' before 'int' 159 | choke me | ^ | ; ...... 162 | int | ~~~ configure:14731: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14731: result: no configure:14731: checking for fchmod configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14731: $? = 0 configure:14731: result: yes configure:14731: checking for fchown configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14731: $? = 0 configure:14731: result: yes configure:14731: checking for fcntl configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14731: $? = 0 configure:14731: result: yes configure:14731: checking for fdopendir configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14731: $? = 0 configure:14731: result: yes configure:14731: checking for fork configure:14731: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:158:6: warning: conflicting types for built-in function 'fork'; expected 'int(void)' [-Wbuiltin-declaration-mismatch] 158 | char fork (); | ^~~~ configure:14731: $? = 0 configure:14731: result: yes configure:14743: checking for fstat configure:14743: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14743: $? = 0 configure:14743: result: yes configure:14743: checking for fstatat configure:14743: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14743: $? = 0 configure:14743: result: yes configure:14743: checking for fstatfs configure:14743: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14743: $? = 0 configure:14743: result: yes configure:14743: checking for fstatvfs configure:14743: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14743: $? = 0 configure:14743: result: yes configure:14743: checking for ftruncate configure:14743: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14743: $? = 0 configure:14743: result: yes configure:14755: checking for futimens configure:14755: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14755: $? = 0 configure:14755: result: yes configure:14755: checking for futimes configure:14755: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14755: $? = 0 configure:14755: result: yes configure:14755: checking for futimesat configure:14755: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14755: $? = 0 configure:14755: result: yes configure:14767: checking for geteuid configure:14767: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14767: $? = 0 configure:14767: result: yes configure:14767: checking for getpid configure:14767: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14767: $? = 0 configure:14767: result: yes configure:14767: checking for getgrgid_r configure:14767: result: yes configure:14767: checking for getgrnam_r configure:14767: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14767: $? = 0 configure:14767: result: yes configure:14779: checking for getpwnam_r configure:14779: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14779: $? = 0 configure:14779: result: yes configure:14779: checking for getpwuid_r configure:14779: result: yes configure:14779: checking for getvfsbyname configure:14779: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccPvWhMy.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:184: undefined reference to `getvfsbyname' collect2: error: ld returned 1 exit status configure:14779: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14779: result: no configure:14779: checking for gmtime_r configure:14779: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14779: $? = 0 configure:14779: result: yes configure:14791: checking for lchflags configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccG6AJNd.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:185: undefined reference to `lchflags' collect2: error: ld returned 1 exit status configure:14791: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14791: result: no configure:14791: checking for lchmod configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:179:1: error: unknown type name 'choke' 179 | choke me | ^~~~~ conftest.c:179:9: error: expected ';' before 'int' 179 | choke me | ^ | ; ...... 182 | int | ~~~ configure:14791: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14791: result: no configure:14791: checking for lchown configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14791: $? = 0 configure:14791: result: yes configure:14791: checking for link configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14791: $? = 0 configure:14791: result: yes configure:14791: checking for localtime_r configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14791: $? = 0 configure:14791: result: yes configure:14791: checking for lstat configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14791: $? = 0 configure:14791: result: yes configure:14791: checking for lutimes configure:14791: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14791: $? = 0 configure:14791: result: yes configure:14803: checking for mbrtowc configure:14803: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14803: $? = 0 configure:14803: result: yes configure:14803: checking for memmove configure:14803: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:180:6: warning: conflicting types for built-in function 'memmove'; expected 'void *(void *, const void *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 180 | char memmove (); | ^~~~~~~ conftest.c:168:1: note: 'memmove' is declared in header '' 167 | # include 168 | #else configure:14803: $? = 0 configure:14803: result: yes configure:14803: checking for memset configure:14803: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:181:6: warning: conflicting types for built-in function 'memset'; expected 'void *(void *, int, long unsigned int)' [-Wbuiltin-declaration-mismatch] 181 | char memset (); | ^~~~~~ conftest.c:169:1: note: 'memset' is declared in header '' 168 | # include 169 | #else configure:14803: $? = 0 configure:14803: result: yes configure:14815: checking for mkdir configure:14815: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14815: $? = 0 configure:14815: result: yes configure:14815: checking for mkfifo configure:14815: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14815: $? = 0 configure:14815: result: yes configure:14815: checking for mknod configure:14815: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14815: $? = 0 configure:14815: result: yes configure:14815: checking for mkstemp configure:14815: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14815: $? = 0 configure:14815: result: yes configure:14827: checking for nl_langinfo configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14827: checking for openat configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14827: checking for pipe configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14827: checking for poll configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14827: checking for posix_spawnp configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14827: checking for readlink configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14827: checking for readlinkat configure:14827: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14827: $? = 0 configure:14827: result: yes configure:14838: checking for readpassphrase configure:14838: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccjGTVCf.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:204: undefined reference to `readpassphrase' collect2: error: ld returned 1 exit status configure:14838: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14838: result: no configure:14850: checking for select configure:14850: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14850: $? = 0 configure:14850: result: yes configure:14850: checking for setenv configure:14850: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14850: $? = 0 configure:14850: result: yes configure:14850: checking for setlocale configure:14850: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14850: $? = 0 configure:14850: result: yes configure:14850: checking for sigaction configure:14850: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14850: $? = 0 configure:14850: result: yes configure:14850: checking for statfs configure:14850: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14850: $? = 0 configure:14850: result: yes configure:14850: checking for statvfs configure:14850: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14850: $? = 0 configure:14850: result: yes configure:14862: checking for strchr configure:14862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:199:6: warning: conflicting types for built-in function 'strchr'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 199 | char strchr (); | ^~~~~~ conftest.c:187:1: note: 'strchr' is declared in header '' 186 | # include 187 | #else configure:14862: $? = 0 configure:14862: result: yes configure:14862: checking for strdup configure:14862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:200:6: warning: conflicting types for built-in function 'strdup'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch] 200 | char strdup (); | ^~~~~~ configure:14862: $? = 0 configure:14862: result: yes configure:14862: checking for strerror configure:14862: result: yes configure:14862: checking for strncpy_s configure:14862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccfAs3hG.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:213: undefined reference to `strncpy_s' collect2: error: ld returned 1 exit status configure:14862: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14862: result: no configure:14862: checking for strrchr configure:14862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 conftest.c:202:6: warning: conflicting types for built-in function 'strrchr'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 202 | char strrchr (); | ^~~~~~~ conftest.c:190:1: note: 'strrchr' is declared in header '' 189 | # include 190 | #else configure:14862: $? = 0 configure:14862: result: yes configure:14862: checking for symlink configure:14862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14862: $? = 0 configure:14862: result: yes configure:14862: checking for timegm configure:14862: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14862: $? = 0 configure:14862: result: yes configure:14874: checking for tzset configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14874: checking for unlinkat configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14874: checking for unsetenv configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14874: checking for utime configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14874: checking for utimensat configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14874: checking for utimes configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14874: checking for vfork configure:14874: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14874: $? = 0 configure:14874: result: yes configure:14886: checking for wcrtomb configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wcscmp configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wcscpy configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wcslen configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wctomb configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wmemcmp configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wmemcpy configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14886: checking for wmemmove configure:14886: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:14886: $? = 0 configure:14886: result: yes configure:14898: checking for _ctime64_s configure:14898: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/cco51n88.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `_ctime64_s' collect2: error: ld returned 1 exit status configure:14898: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14898: result: no configure:14898: checking for _fseeki64 configure:14898: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/cc4O28kh.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `_fseeki64' collect2: error: ld returned 1 exit status configure:14898: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14898: result: no configure:14910: checking for _get_timezone configure:14910: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccvEuCkI.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `_get_timezone' collect2: error: ld returned 1 exit status configure:14910: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14910: result: no configure:14910: checking for _gmtime64_s configure:14910: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccwvVyem.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `_gmtime64_s' collect2: error: ld returned 1 exit status configure:14910: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14910: result: no configure:14910: checking for _localtime64_s configure:14910: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/cc1JBOsU.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `_localtime64_s' collect2: error: ld returned 1 exit status configure:14910: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14910: result: no configure:14910: checking for _mkgmtime64 configure:14910: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccdClHk4.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `_mkgmtime64' collect2: error: ld returned 1 exit status configure:14910: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14910: result: no configure:14922: checking for cygwin_conv_path configure:14922: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: /tmp/ccr6AiA4.o: in function `main': /usr/src/debug/libarchive/3.4.2-r0/build/conftest.c:231: undefined reference to `cygwin_conv_path' collect2: error: ld returned 1 exit status configure:14922: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14922: result: no configure:14933: checking for struct vfsconf configure:14933: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:206:13: error: invalid application of 'sizeof' to incomplete type 'struct vfsconf' 206 | if (sizeof (struct vfsconf)) | ^~~~~~ configure:14933: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14933: result: no configure:14949: checking for struct xvfsconf configure:14949: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:206:13: error: invalid application of 'sizeof' to incomplete type 'struct xvfsconf' 206 | if (sizeof (struct xvfsconf)) | ^~~~~~ configure:14949: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:14949: result: no configure:14979: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:202:7: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] 202 | return(readdir_r(dir, &e, &r)); | ^~~~~~ In file included from conftest.c:197: /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/dirent.h:183:12: note: declared here 183 | extern int readdir_r (DIR *__restrict __dirp, | ^~~~~~~~~ conftest.c:202:14: warning: 'dir' is used uninitialized in this function [-Wuninitialized] 202 | return(readdir_r(dir, &e, &r)); | ~^~~~~~~~~~~~~~~~~~~~~~~ configure:14979: $? = 0 configure:14999: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:14999: $? = 0 configure:15010: checking whether D_MD_ORDER is declared configure:15010: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:211:10: error: 'D_MD_ORDER' undeclared (first use in this function) 211 | (void) D_MD_ORDER; | ^~~~~~~~~~ conftest.c:211:10: note: each undeclared identifier is reported only once for each function it appears in configure:15010: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:15010: result: no configure:15025: checking for struct dirent.d_namlen configure:15025: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:208:13: error: 'struct dirent' has no member named 'd_namlen'; did you mean 'd_name'? 208 | if (ac_aggr.d_namlen) | ^~~~~~~~ | d_name conftest.c:207:22: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 207 | static struct dirent ac_aggr; | ^~~~~~~ configure:15025: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:15025: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:208:20: error: 'struct dirent' has no member named 'd_namlen'; did you mean 'd_name'? 208 | if (sizeof ac_aggr.d_namlen) | ^~~~~~~~ | d_name conftest.c:207:22: warning: variable 'ac_aggr' set but not used [-Wunused-but-set-variable] 207 | static struct dirent ac_aggr; | ^~~~~~~ configure:15025: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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:15025: result: no configure:15043: checking for library containing setxattr configure:15074: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15074: $? = 0 configure:15091: result: none required configure:15099: checking whether EXTATTR_NAMESPACE_USER is declared configure:15099: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:200:10: fatal error: sys/extattr.h: No such file or directory 200 | #include | ^~~~~~~~~~~~~~~ compilation terminated. configure:15099: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #include | | | int | main () | { | #ifndef EXTATTR_NAMESPACE_USER | #ifdef __cplusplus | (void) EXTATTR_NAMESPACE_USER; | #else | (void) EXTATTR_NAMESPACE_USER; | #endif | #endif | | ; | return 0; | } configure:15099: result: no configure:15113: checking whether XATTR_NOFOLLOW is declared configure:15113: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c: In function 'main': conftest.c:210:10: error: 'XATTR_NOFOLLOW' undeclared (first use in this function) 210 | (void) XATTR_NOFOLLOW; | ^~~~~~~~~~~~~~ conftest.c:210:10: note: each undeclared identifier is reported only once for each function it appears in configure:15113: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | /* end confdefs.h. */ | #include | | | int | main () | { | #ifndef XATTR_NOFOLLOW | #ifdef __cplusplus | (void) XATTR_NOFOLLOW; | #else | (void) XATTR_NOFOLLOW; | #endif | #endif | | ; | return 0; | } configure:15113: result: no configure:15202: checking for fgetxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for flistxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for fsetxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for getxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for lgetxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for listxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for llistxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15202: checking for lsetxattr configure:15202: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 configure:15202: $? = 0 configure:15202: result: yes configure:15249: checking for extended attributes support configure:15255: result: Linux configure:15975: checking for special C compiler options needed for large files configure:16020: result: no configure:16026: checking for _FILE_OFFSET_BITS value needed for large files configure:16051: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 configure:16051: $? = 0 configure:16083: result: no configure:16182: checking support for ARCHIVE_CRYPTO_MD5_LIBC configure:16204: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16204: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16214: result: no configure:16228: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM configure:16250: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16250: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16260: result: no configure:16274: checking support for ARCHIVE_CRYPTO_RMD160_LIBC configure:16296: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16296: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16306: result: no configure:16320: checking support for ARCHIVE_CRYPTO_SHA1_LIBC configure:16342: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16342: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16352: result: no configure:16366: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM configure:16388: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16388: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16398: result: no configure:16412: checking support for ARCHIVE_CRYPTO_SHA256_LIBC configure:16434: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16434: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16444: result: no configure:16458: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2 configure:16480: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16480: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16490: result: no configure:16504: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3 configure:16526: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16526: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16536: result: no configure:16550: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM configure:16572: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16572: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16582: result: no configure:16596: checking support for ARCHIVE_CRYPTO_SHA384_LIBC configure:16618: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16618: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16628: result: no configure:16642: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2 configure:16664: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16664: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16674: result: no configure:16688: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3 configure:16710: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16710: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16720: result: no configure:16734: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM configure:16756: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16756: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16766: result: no configure:16780: checking support for ARCHIVE_CRYPTO_SHA512_LIBC configure:16802: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16802: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16812: result: no configure:16826: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2 configure:16848: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16848: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16858: result: no configure:16872: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3 configure:16894: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16894: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16904: result: no configure:16918: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM configure:16940: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:16940: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:16950: result: no configure:16965: checking for bcrypt.h configure:16965: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:215:10: fatal error: bcrypt.h: No such file or directory 215 | #include | ^~~~~~~~~~ compilation terminated. configure:16965: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 1 | /* end confdefs.h. */ | #ifdef HAVE_WINDOWS_H | # include | #endif | | | #include configure:16965: result: no configure:18180: checking md5.h usability configure:18180: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:243:10: fatal error: md5.h: No such file or directory 243 | #include | ^~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18180: result: no configure:18180: checking md5.h presence configure:18180: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c conftest.c:210:10: fatal error: md5.h: No such file or directory 210 | #include | ^~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 1 | /* end confdefs.h. */ | #include configure:18180: result: no configure:18180: checking for md5.h configure:18180: result: no configure:18180: checking ripemd.h usability configure:18180: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:243:10: fatal error: ripemd.h: No such file or directory 243 | #include | ^~~~~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18180: result: no configure:18180: checking ripemd.h presence configure:18180: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c conftest.c:210:10: fatal error: ripemd.h: No such file or directory 210 | #include | ^~~~~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 1 | /* end confdefs.h. */ | #include configure:18180: result: no configure:18180: checking for ripemd.h configure:18180: result: no configure:18180: checking sha.h usability configure:18180: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:243:10: fatal error: sha.h: No such file or directory 243 | #include | ^~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18180: result: no configure:18180: checking sha.h presence configure:18180: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c conftest.c:210:10: fatal error: sha.h: No such file or directory 210 | #include | ^~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 1 | /* end confdefs.h. */ | #include configure:18180: result: no configure:18180: checking for sha.h configure:18180: result: no configure:18180: checking sha256.h usability configure:18180: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:243:10: fatal error: sha256.h: No such file or directory 243 | #include | ^~~~~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18180: result: no configure:18180: checking sha256.h presence configure:18180: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c conftest.c:210:10: fatal error: sha256.h: No such file or directory 210 | #include | ^~~~~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 1 | /* end confdefs.h. */ | #include configure:18180: result: no configure:18180: checking for sha256.h configure:18180: result: no configure:18180: checking sha512.h usability configure:18180: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c >&5 conftest.c:243:10: fatal error: sha512.h: No such file or directory 243 | #include | ^~~~~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18180: result: no configure:18180: checking sha512.h presence configure:18180: aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 conftest.c conftest.c:210:10: fatal error: sha512.h: No such file or directory 210 | #include | ^~~~~~~~~~ compilation terminated. configure:18180: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 1 | /* end confdefs.h. */ | #include configure:18180: result: no configure:18180: checking for sha512.h configure:18180: result: no configure:18191: checking for MD5Init in -lmd configure:18216: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -lmd -llzo2 -llzma -lbz2 -lz -lxml2 >&5 /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld: cannot find -lmd collect2: error: ld returned 1 exit status configure:18216: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18225: result: no configure:18241: checking support for ARCHIVE_CRYPTO_MD5_LIBMD configure:18263: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:18263: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18273: result: no configure:18287: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD configure:18309: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:18309: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18319: result: no configure:18333: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD configure:18355: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:18355: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18365: result: no configure:18379: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD configure:18401: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:18401: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18411: result: no configure:18425: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD configure:18447: aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 -I. -I../libarchive-3.4.2 -I../libarchive-3.4.2/libarchive -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c -llzo2 -llzma -lbz2 -lz -lxml2 >&5 In file included from conftest.c:245: ../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:18447: $? = 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_LIBXML_XMLREADER_H 1 | #define HAVE_LIBXML_XMLWRITER_H 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 | #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 | #define HAVE_DECL_XATTR_NOFOLLOW 0 | #define HAVE_FGETXATTR 1 | #define HAVE_FLISTXATTR 1 | #define HAVE_FSETXATTR 1 | #define HAVE_GETXATTR 1 | #define HAVE_LGETXATTR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_LLISTXATTR 1 | #define HAVE_LSETXATTR 1 | #define ARCHIVE_XATTR_LINUX 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:18457: result: no configure:18847: 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:1295: creating Makefile config.status:1295: creating build/pkgconfig/libarchive.pc config.status:1295: creating config.h config.status:1509: executing depfiles commands config.status:1509: executing libtool commands config.status:1509: executing mkdirs commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv___va_copy=yes ac_cv_af_unix_large_dgram=yes 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_archive_xattr_linux=yes 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_long_double=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_dirent_have_space_d_name=yes ac_cv_env_CC_set=set ac_cv_env_CC_value='aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=' -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= ' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=' -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes' ac_cv_env_CPP_set=set ac_cv_env_CPP_value='aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now' 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-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/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-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/lib/pkgconfig:/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/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=aarch64-poky-linux ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=aarch64-poky-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___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_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_fgetxattr=yes ac_cv_func_flistxattr=yes ac_cv_func_fnmatch_works=yes ac_cv_func_fork=yes ac_cv_func_fsetxattr=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_getxattr=yes ac_cv_func_gmtime_r=yes ac_cv_func_lchflags=no ac_cv_func_lchmod=no ac_cv_func_lchown=yes ac_cv_func_lgetxattr=yes ac_cv_func_link=yes ac_cv_func_listxattr=yes ac_cv_func_llistxattr=yes ac_cv_func_locale_charset=no ac_cv_func_localtime_r=yes ac_cv_func_lsetxattr=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_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_accrights_in_msghdr=no ac_cv_have_broken_snprintf=no ac_cv_have_control_in_msghdr=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_EXTATTR_NAMESPACE_USER=no 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_XATTR_NOFOLLOW=no ac_cv_have_decl_strerror_r=yes ac_cv_have_decl_sys_siglist=no ac_cv_have_long_long_format=yes ac_cv_have_openpty_ctty_bug=yes ac_cv_have_space_d_name_in_struct_dirent=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_libxml_xmlreader_h=yes ac_cv_header_libxml_xmlwriter_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=no ac_cv_header_ncurses_h=yes ac_cv_header_ncurses_termcap_h=no 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=aarch64-poky-linux-gnu ac_cv_ispeed_offset=13 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_md_MD5Init=no ac_cv_lib_png_png_create_info_struct=yes ac_cv_lib_xml2_xmlInitParser=yes ac_cv_lib_z_inflate=yes ac_cv_lib_zstd_ZSTD_compressStream=no ac_cv_libiconv_utf8=yes ac_cv_libnet_endianess=lil ac_cv_linux_vers=2 ac_cv_lzma_has_mt=yes ac_cv_member_struct_dirent_d_namlen=no ac_cv_member_struct_stat_st_birthtime=no ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no ac_cv_member_struct_stat_st_blksize=yes ac_cv_member_struct_stat_st_flags=no ac_cv_member_struct_stat_st_mtim_tv_nsec=yes ac_cv_member_struct_stat_st_mtime_n=no ac_cv_member_struct_stat_st_mtime_usec=no ac_cv_member_struct_stat_st_mtimespec_tv_nsec=no ac_cv_member_struct_stat_st_umtime=no ac_cv_member_struct_statfs_f_namemax=no ac_cv_member_struct_statvfs_f_iosize=no ac_cv_member_struct_tm___tm_gmtoff=no ac_cv_member_struct_tm_tm_gmtoff=yes ac_cv_need_trio=no ac_cv_o_nonblock_inherited=no ac_cv_objext=o ac_cv_path_EGREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep -E' ac_cv_path_FGREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep -F' ac_cv_path_GREP=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep ac_cv_path_SED=sed ac_cv_path_ac_pt_PKG_CONFIG=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/pkg-config ac_cv_path_install='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/install -c' ac_cv_path_lt_DD=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/dd ac_cv_path_mkdir=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/mkdir ac_cv_pread=no ac_cv_prog_AR=aarch64-poky-linux-gcc-ar ac_cv_prog_AWK=gawk ac_cv_prog_CC='aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot' ac_cv_prog_CPP='aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security' ac_cv_prog_DLLTOOL=dlltool ac_cv_prog_OBJDUMP=aarch64-poky-linux-objdump ac_cv_prog_RANLIB=aarch64-poky-linux-gcc-ranlib ac_cv_prog_STRIP=aarch64-poky-linux-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_pwrite=no ac_cv_regexec_segfault_emptystr=no ac_cv_safe_to_define___extensions__=yes ac_cv_search_opendir='none required' ac_cv_search_setxattr='none required' ac_cv_sizeof_pid_t=4 ac_cv_sizeof_size_t=8 ac_cv_sizeof_ssize_t=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=yes 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_libdirstems=lib,lib acl_cv_libext=a acl_cv_libname_spec='lib$name' acl_cv_library_names_spec='$libname$shrext' 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='guessing 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=no 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=missing 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 compat_cv_func_basename_works=no compat_cv_func_dirname_works=no compat_cv_func_snprintf_works=yes cvs_cv_func_printf_ptr=yes db_cv_align_t='unsigned long long' db_cv_alignp_t='unsigned 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_spinlocks=no db_cv_sprintf_count=yes ettercap_cv_type_socklen_t=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_host_cpu_c_abi_32bit=no 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=no glib_cv_sane_realloc=yes 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_sys_use_pid_niceness_surrogate=yes glib_cv_uscore=no glib_cv_use_pid_surrogate=yes glib_cv_va_copy=yes glib_cv_va_val_copy=yes gt_cv_locale_fr=fr_FR hw_cv_func_snprintf_c99=yes hw_cv_func_vsnprintf_c99=yes jm_cv_func_working_readdir=yes la_cv_type_uid_t=yes lf_cv_sane_realloc=yes lftp_cv_va_val_copy=yes 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='aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot ' lt_cv_path_NM=aarch64-poky-linux-nm lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_gnu_ld=yes lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath=no lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' lt_cv_sys_global_symbol_to_import= lt_cv_sys_lib_dlsearch_path_spec='/usr/lib /lib' 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-domu/tmp/hosttools/dd bs=4096 count=1' mr_cv_target_elf=yes mysql_cv_func_atomic_add=no mysql_cv_func_atomic_sub=no nano_cv_func_regexec_segv_emptystr=no php_cv_lib_cookie_io_functions_use_off64_t=yes pkg_cv_LIBXML2_PC_CFLAGS=-I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2 pkg_cv_LIBXML2_PC_LIBS=-lxml2 rsync_cv_HAVE_BROKEN_LARGEFILE=no rsync_cv_HAVE_BROKEN_READDIR=no rsync_cv_HAVE_C99_VSNPRINTF=yes rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes rsync_cv_HAVE_LONGLONG=yes rsync_cv_HAVE_OFF64_T=no rsync_cv_HAVE_SECURE_MKSTEMP=yes rsync_cv_HAVE_SHORT_INO_T=no rsync_cv_HAVE_SOCKETPAIR=yes rsync_cv_HAVE_UNSIGNED_CHAR=no rsync_cv_REPLACE_INET_ATON=no rsync_cv_REPLACE_INET_NTOA=no 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 sc_cv_termios_ispeed=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=/var/log shadow_cv_maildir=/var/spool/mail shadow_cv_mailfile=Mailbox shadow_cv_passwd_dir=/usr/bin shadow_cv_utmpdir=/var/run slrn_cv_va_val_copy=yes sudo_cv_func_unsetenv_void=no tcl_cv_api_serial=termios utils_cv_sys_open_max=1019 xorg_cv_malloc0_returns_null=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/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='aarch64-poky-linux-gcc-ar' ARCHIVE_LIBTOOL_VERSION='17:2:4' AS='aarch64-poky-linux-as ' AUTOCONF='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing autoconf' AUTOHEADER='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/libarchive-3.4.2/build/autoconf/missing autoheader' AUTOMAKE='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/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='aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot' CCDEPMODE='depmode=none' CFLAGS=' -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0=/usr/src/debug/libarchive/3.4.2-r0 -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native= -Wall -Wformat -Wformat-security' CPP='aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security' CPPFLAGS=' -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/extra-includes -I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2' 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-domu/tmp/hosttools/grep -E' EXEEXT='' FGREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/hosttools/grep -F' GREP='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/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='aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot ' LDFLAGS='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now' LIBARCHIVE_VERSION_NUMBER='3004002' LIBARCHIVE_VERSION_STRING='3.4.2' LIBICONV='' LIBOBJS='' LIBS='-llzo2 -llzma -lbz2 -lz -lxml2' LIBTOOL='$(top_builddir)/aarch64-poky-linux-libtool' LIBXML2_PC_CFLAGS='-I/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/include/libxml2' LIBXML2_PC_LIBS='-lxml2' 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-domu/tmp/work/aarch64-poky-linux/libarchive/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-domu/tmp/hosttools/mkdir -p' NM='aarch64-poky-linux-nm' NMEDIT='' OBJDUMP='aarch64-poky-linux-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='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot-native/usr/bin/pkg-config' PKG_CONFIG_LIBDIR='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/lib/pkgconfig' PKG_CONFIG_PATH='/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/lib/pkgconfig:/home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/recipe-sysroot/usr/share/pkgconfig' PLATFORMCPPFLAGS='' RANLIB='aarch64-poky-linux-gcc-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='aarch64-poky-linux-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='/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='/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='/usr' host='aarch64-poky-linux-gnu' host_alias='aarch64-poky-linux' host_cpu='aarch64' host_os='linux-gnu' host_vendor='poky' htmldir='${docdir}' includedir='/usr/include' infodir='/usr/share/info' install_sh='${SHELL} /home/rcar/www/s4sk-xen/build-xen/yocto/build-domu/tmp/work/aarch64-poky-linux/libarchive/3.4.2-r0/libarchive-3.4.2/build/autoconf/install-sh' libdir='/usr/lib' libexecdir='/usr/libexec' localedir='${datarootdir}/locale' localstatedir='/var' mandir='/usr/share/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='/usr/sbin' sharedstatedir='/com' sysconfdir='/etc' target_alias='aarch64-poky-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_LIBXML_XMLREADER_H 1 #define HAVE_LIBXML_XMLWRITER_H 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 #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0 #define HAVE_DECL_XATTR_NOFOLLOW 0 #define HAVE_FGETXATTR 1 #define HAVE_FLISTXATTR 1 #define HAVE_FSETXATTR 1 #define HAVE_GETXATTR 1 #define HAVE_LGETXATTR 1 #define HAVE_LISTXATTR 1 #define HAVE_LLISTXATTR 1 #define HAVE_LSETXATTR 1 #define ARCHIVE_XATTR_LINUX 1 configure: exit 0