intel / QAT_Engine

Intel QuickAssist Technology( QAT) OpenSSL Engine (an OpenSSL Plug-In Engine) which provides cryptographic acceleration for both hardware and optimized software using Intel QuickAssist Technology enabled Intel platforms. https://developer.intel.com/quickassist
BSD 3-Clause "New" or "Revised" License
402 stars 127 forks source link

QAT driver: redefinition of ‘crypto_aead_set_reqsize’ #129

Open tonyhutter opened 4 years ago

tonyhutter commented 4 years ago

Not sure if this is the right place to report this, but I'm hitting an error while building https://01.org/sites/default/files/downloads//qat1.7.l.4.7.0-00006.tar.gz on the latest Centos 6.10:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gawk... (cached) gawk
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... none
checking for cc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for C compiler vendor... gnu
checking for a sed that does not truncate output... /bin/sed
checking for C compiler version... 4.4.7
checking for C++ compiler vendor... gnu
checking for C++ compiler version... 4.4.7
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libudev.h usability... yes
checking libudev.h presence... yes
checking for libudev.h... yes
checking for libudev... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for pid_t... yes
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for alarm... yes
checking for getpagesize... (cached) yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for rmdir... yes
checking for select... yes
checking for strerror... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoull... yes
checking for kernel sources... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

$ make
make  all-am
make[1]: Entering directory `/home/hutter/qat'
make[2]: Entering directory `/home/hutter/qat/quickassist/qat'
make -C /lib/modules/2.6.32-754.25.1.el6.x86_64/build M=/home/hutter/qat/quickassist/qat modules
make[3]: Entering directory `/usr/src/kernels/2.6.32-754.25.1.el6.x86_64'
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c3xxx/adf_drv.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.o
  LD [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c3xxx/qat_c3xxx.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c3xxxvf/adf_drv.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.o
  LD [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c3xxxvf/qat_c3xxxvf.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c62x/adf_drv.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.o
  LD [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c62x/qat_c62x.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c62xvf/adf_drv.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c62xvf/adf_c62xvf_hw_data.o
  LD [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_c62xvf/qat_c62xvf.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_cfg.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_isr.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_ctl_drv.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_dev_mgr.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_dev_err.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_init.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_accel_engine.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_aer.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_transport.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_admin.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_hw_arbiter.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_uclo.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_hal.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_cfg_dev_dbg.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_heartbeat.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_heartbeat_dbg.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_ver_dbg.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_clock.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_pf2vf_dbg.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_fw_counters.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/adf_cnvnr_freq_counters.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_crypto.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_asym_algs.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/../../../../compat/qat_compat.o
  CC [M]  /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs_old.o
In file included from /home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs_old.c:52:
include/crypto/internal/aead.h:79: error: redefinition of ‘crypto_aead_set_reqsize’
/home/hutter/qat/quickassist/qat/compat/qat_compat.h:432: note: previous definition of ‘crypto_aead_set_reqsize’ was here
make[6]: *** [/home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common/qat_algs_old.o] Error 1
make[5]: *** [/home/hutter/qat/quickassist/qat/drivers/crypto/qat/qat_common] Error 2
make[4]: *** [/home/hutter/qat/quickassist/qat/drivers/crypto/qat] Error 2
make[3]: *** [_module_/home/hutter/qat/quickassist/qat] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.32-754.25.1.el6.x86_64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/hutter/qat/quickassist/qat'
make[1]: *** [qat-driver-all] Error 2
make[1]: Leaving directory `/home/hutter/qat'
make: *** [all] Error 2
Yogaraj-Alamenda commented 4 years ago

@tonyhutter Sorry we missed this issue. Is it still not resolved. If not, I can check with the driver team internally to let you know update on this