Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63958 closed defect (fixed)

haproxy @2.4.8_1: build error with OpenSSL 3

Reported by: l2dy (Zero King) Owned by: aphor (Jeremy McMillan)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: judaew (Vadym-Valdis Yudaiev)
Port: haproxy

Description

src/ssl_sock.c:2273:5: error: token is not a valid binary operator in a preprocessor subexpression
#if SSL_OP_NO_TLSv1_3
    ^~~~~~~~~~~~~~~~~
/opt/local/include/openssl/ssl.h:422:58: note: expanded from macro 'SSL_OP_NO_TLSv1_3'
# define SSL_OP_NO_TLSv1_3                               SSL_OP_BIT(29)
                                                         ^~~~~~~~~~~~~~
/opt/local/include/openssl/ssl.h:343:35: note: expanded from macro 'SSL_OP_BIT'
#define SSL_OP_BIT(n)  ((uint64_t)1 << (uint64_t)n)
                        ~~~~~~~~~~^
src/ssl_sock.c:2279:5: error: token is not a valid binary operator in a preprocessor subexpression
#if SSL_OP_NO_TLSv1_3
    ^~~~~~~~~~~~~~~~~
/opt/local/include/openssl/ssl.h:422:58: note: expanded from macro 'SSL_OP_NO_TLSv1_3'
# define SSL_OP_NO_TLSv1_3                               SSL_OP_BIT(29)
                                                         ^~~~~~~~~~~~~~
/opt/local/include/openssl/ssl.h:343:35: note: expanded from macro 'SSL_OP_BIT'
#define SSL_OP_BIT(n)  ((uint64_t)1 << (uint64_t)n)
                        ~~~~~~~~~~^

https://github.com/haproxy/haproxy/issues/1276

Change History (3)

comment:1 Changed 3 years ago by Vadim-Valdis Yudaev <judaew@…>

Resolution: fixed
Status: assignedclosed

In 2213bde08fc2e975a4da33da31bd9b1918d6c8bc/macports-ports (master):

haproxy: Currently requires OpenSSL 1.1

Closed: #63958

comment:2 Changed 3 years ago by aphor (Jeremy McMillan)

For reference, upstream ticket describes haproxy OpenSSL 3.0 support progress.

https://github.com/haproxy/haproxy/issues/1276

comment:3 Changed 3 years ago by Vadym-Valdis Yudaiev <judaew@…>

In e0d8327fb611edf7563ccb8b5c3adb88cebfb37b/macports-ports (master):

haproxy: update to 2.5.7 and use openssl3

See: #63958

Note: See TracTickets for help on using tickets.