ср, 3 нояб. 2021 г. в 18:57, Shawn Heisey <[email protected]>:

> I ran into a problem when I compiled haproxy 2.4.8.  I had installed
> openssl 3.0.1-dev from source between installing haproxy 2.4.7 and
> 2.4.8, and haproxy's build system picked up the newer openssl instead of
> the one packaged by Ubuntu.
>
> I tried adding SSL_INC and SSL_LIB to my make command:
>
>      make TARGET=linux-glibc \
>        USE_PCRE2_JIT=1 \
>        USE_OPENSSL=1 \
>        SSL_INC=/usr/include/openssl \
>        SSL_LIB=/usr/lib/x86_64-linux-gnu \
>

you either need to specify LD_LIBRARY_PATH or add rpath during link,
here's example how to use rpath via ADDLIB haproxy/.travis.yml at
57610c694e56a6b0d55bf42f1170bad93b7b3297 · haproxy/haproxy (github.com)
<https://github.com/haproxy/haproxy/blob/57610c694e56a6b0d55bf42f1170bad93b7b3297/.travis.yml#L68-L85>



>        USE_ZLIB=1 \
>        USE_SYSTEMD=1 \
>        CPU=native
>
> This didn't work.  The build continued to find openssl in /usr/local,
> which caused it to fail because haproxy doesn't support openssl 3.x
> yet.  Is there any way to get this working other than uninstalling the
> custom openssl?  Uninstalling the custom openssl does work, but I would
> prefer to not take that step.
>
> Thanks,
> Shawn
>
>
>

Reply via email to