[gnutls-devel] GnuTLS | Build failure with TPM2 and GCC15 (#1764)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Nov 20 18:52:35 CET 2025



Jan Palus created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1764



## Description of problem:
Compilation fails if gnutls is configured with TPM2 and GCC15 is used.

## Version of gnutls used:
3.8.11

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
N/A

## How reproducible:

Steps to Reproduce:

 * Install GCC 15
 * `./configure --with-tpm2`
 * `make`

## Actual results:
Build failure:
```
In file included from tpm2/callbacks/rsa/rsa_callbacks.c:28:
./mem.h:48:36: error: unknown type name 'uint8_t'
   48 | unsigned _gnutls_mem_is_zero(const uint8_t *ptr, unsigned size);
      |                                    ^~~~~~~
./mem.h:37:1: note: 'uint8_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
   36 | #include "attribute.h"
  +++ |+#include <stdint.h>
   37 | 
```

## Expected results:
Build succeeds.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1764
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20251120/157634d5/attachment-0001.html>


More information about the Gnutls-devel mailing list