The file “include/snmp_pp/auth_priv.h” includes <openssl/macros.h>, in order to check preprocessor symbols - and uses one to decide whether to include an openssl v3 header.
However, the file <openssl/macros.h> was (AFAICT) only introduced in openssl v3…
From my information openssl/macros.h was available already in 2019 in OpenSSL but OpenSSL was introduced 2021. Do you have a concrete compilation error with more details and the used OpenSSL version that we can debug?
I have a openssl-1.1.1h.tar.gz that does not contain the macros.h file, so I think we should just replace the macros.h with opensslv.h which defines the used OPENSSL_VERSION_NUMBER.