in reply to Can't build Net::AMQP::RabbitMQ

The relevant error seems to be

amqp_openssl.c:547:22: error: ‘TLS1_3_VERSION’ undeclared (first use i +n this function) *tls_version = TLS1_3_VERSION;

So, what version is your libssl? Most likely you need to find a newer/older version of libssl to match whatever amqp expects, or patch amqp to work with the different version your CentOS provides.

Also note that your Perl version is really old and unsupported by now.

Replies are listed 'Best First'.
Re^2: Can't build Net::AMQP::RabbitMQ
by Anonymous Monk on Jun 27, 2025 at 16:55 UTC

    (OP here.)

    Thanks. This is our test box, which is unfortunately out of date. Our prod machine is, well, not out of date. I was able to install this module on the prod machine, but I do need it on test too.

    I'll talk to our sysadmin about possibilities. This'll end up breaking stuff, I'm sure.... Aargh.

      OP here again, just wanted to follow up.

      We ended up just building a new VM, running a recent Rocky Linux and Perl 5.38.2. No problem building Net::AMQP::RabbitMQ on this, and we're off and running. It did not end up breaking anything else.

      Thanks for the suggestions; I would have assumed this package wouldn't absolutely require a fully recent system, but I would have been wrong.

Re^2: Can't build Net::AMQP::RabbitMQ
by NERDVANA (Priest) on Jun 27, 2025 at 16:50 UTC
    ChatGPT says it requires OpenSSL 1.1.1:
    The macro TLS1_3_VERSION was added in OpenSSL version 1.1.1. Details:

    Macro Definition:

    #define TLS1_3_VERSION 0x0304

    Purpose: This macro identifies the version number used internally by OpenSSL to denote TLS 1.3 (which is 0x0304, following the convention for TLS versions where 0x0303 is TLS 1.2, and so on).

    OpenSSL 1.1.1 Release Date: September 11, 2018

    Support: TLS 1.3 support was first introduced in OpenSSL 1.1.1. Earlier versions such as 1.1.0 or 1.0.x do not define this macro or support TLS 1.3 at all.

      Did you confirm? This is useless unless confirmed. Don't post such misleading junk.

        The purpose of the disclaimer was to let people know it was just a lead to follow, not concrete information.

        Since you seem offended, I verified it: https://github.com/openssl/openssl/blob/51cda01c61870c2433fbbd54d69f2267362ea608/CHANGES.md#changes-between-110i-and-111-11-sep-2018. Version 1.1.1 was released in 2018-09-11 and contains changelog entries:

        • Support for TLSv1.3 added. Note that users upgrading from an earlier version of OpenSSL should review their configuration settings to ensure that they are still appropriate for TLSv1.3. For further information see: https://wiki.openssl.org/index.php/TLS1.3
        • Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3. In order to avoid issues where legacy TLSv1.2 ciphersuite configuration would otherwise inadvertently disable all TLSv1.3 ciphersuites the configuration has been separated out. See the ciphers man page or the SSL_CTX_set_ciphersuites() man page for more information.