There is no any errors while running ./configure:
NGINX_INSTALL_DIR='/usr/local/QAT_nginx'
OPENSSL_LIB='/usr/local/openssl-1.1.0g'
./configure \
--prefix=$NGINX_INSTALL_DIR \
--with-http_ssl_module \
--add-dynamic-module=modules/nginx_qat_module/ \
--with-cc-opt="-DNGX_SECURE_MEM -I$OPENSSL_LIB/include -Wno-error=deprecated-declarations" \
--with-ld-opt="-Wl,-rpath=$OPENSSL_LIB/lib -L$OPENSSL_LIB/lib" \
But some errors while running 'make':
/usr/bin/ld: objs/addon/nginx_qat_module/ngx_ssl_engine_qat_module.o: relocation R_X86_64_PC32 against symbol 'ngx_ssl_engine_qat_module' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: [objs/ngx_ssl_engine_qat_module.so] Error 1
make[1]: Leaving directory '/usr/local/src/ssl/asynch_mode_nginx-0.3.6'
make: [build] Error 2
Due to install QATzip failed, I didn't add nginx_qatzip_module while running './configure'
Hello Team,
There is no any errors while running ./configure: NGINX_INSTALL_DIR='/usr/local/QAT_nginx' OPENSSL_LIB='/usr/local/openssl-1.1.0g' ./configure \ --prefix=$NGINX_INSTALL_DIR \ --with-http_ssl_module \ --add-dynamic-module=modules/nginx_qat_module/ \ --with-cc-opt="-DNGX_SECURE_MEM -I$OPENSSL_LIB/include -Wno-error=deprecated-declarations" \ --with-ld-opt="-Wl,-rpath=$OPENSSL_LIB/lib -L$OPENSSL_LIB/lib" \
But some errors while running 'make': /usr/bin/ld: objs/addon/nginx_qat_module/ngx_ssl_engine_qat_module.o: relocation R_X86_64_PC32 against symbol 'ngx_ssl_engine_qat_module' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[1]: [objs/ngx_ssl_engine_qat_module.so] Error 1 make[1]: Leaving directory '/usr/local/src/ssl/asynch_mode_nginx-0.3.6' make: [build] Error 2
Due to install QATzip failed, I didn't add nginx_qatzip_module while running './configure'
OS; CentOS 6.8 kernel: 2.6.32-642.el6.x86_64 asynch_mode_nginx version: 0.3.6 openssl version: openssl-1.1.0g QAT Driver version: qat1.7.l.4.4.0-00023
How to work around this problem?
Thanks in advance!