Closed kkurzacz-intel closed 5 months ago
@kkurzacz-intel Apologies for the late reply. Is the issue related to https://github.com/intel/asynch_mode_nginx/issues/72?
The issue mentioned here is fixed with the commit below in QAT Engine and released in QAT Engine v1.6.0 https://github.com/intel/QAT_Engine/commit/3a1fca3138c96054721bebe19861b0cd6dc449af. Hence closing this.
Problem
I can't find a way to correctly build nginx with the qat-enabled openssl, which does not stay in common system path
Reason why problem happenned
I want to compare async nginx with qat support vs common nginx from linux repository. To compare, I also want openssl with qat support to not override the stock system version. In another words I want to compare all stock (everything from official repo) nginx vs nginx with qat enabled and all it's dependent libraries.
What I have did
I started with build of qat engine. I have chosen "Example 5: Using
make depend
for building dependant libraries and build QAT Engine" from QAT Engine example builds. This will also take care about installing openssl. So I./configure
qat engine with following flag:Now when I try to
./configure
andmake
async nginx, everything is fine until I try to use nginx.QAT-sample.conf file. Then I'm getting following errors:FYI: As I mentioned, I want to keep nginx from linux repo as well, so that's why I don't install this async nginx. Probably I should use the prefix flag to install it somewhere, but let's postpone it for now.
Reading issue #47 made me verify openssl, and it seems all right:
My
./configure
looks like follows:So despite pointing to compiled openssl libs, I cannot start nginx.
I have found the
--with-openssl
flag for./configure
. Initially I thought I can use to point to binary, so I tried--with-openssl=/usr/local/ssl
. However, this flag seems to build search path using.openssl
subfolder. When I figured out that this flag is meant to point to openssl source files, I tried to use path of the openssl downloaded duringmake depend
of qat engine. It downloads openssl to openssl subfolder of main repository.So, qat engine repository is /home/kkurzacz/benchmark/qat/qat-engine Openssl is then downloaded into /home/kkurzacz/benchmark/qat/qat-engine/openssl
However, it also doesn't work (this way of configure of async nginx):
What is mostly confusing for me, is that search path for openssl libs is done like:
Can you please tell me how to build async nginx with my openssl lib which is downloaded via make depend of qat engine?