Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-27804 Fails to build - perf schema - thread id of type uintptr_t requires header #2006

Merged
merged 1 commit into from Feb 11, 2022

Conversation

sthibaul
Copy link
Contributor

@sthibaul sthibaul commented Feb 8, 2022

This uses uintptr_t, so needs including cstdint

Description

While building on GNU/Hurd, I got a build error in perfschema, because uintptr_t is used in my_thread.h but cstdint is not included.

How can this PR be tested?

This would need to introduce in the CI a profile that exercices the HAVE_INTEGER_PTHREAD_SELF case.

Basing the PR against the correct MariaDB version

  • This is a new feature and the PR is based against the latest MariaDB development branch
  • This is a bug fix and the PR is based against the earliest branch in which the bug can be reproduced

@CLAassistant
Copy link

CLAassistant commented Feb 8, 2022

CLA assistant check
All committers have signed the CLA.

@grooverdan
Copy link
Member

grooverdan commented Feb 8, 2022

seems right - https://www.cplusplus.com/reference/cstdint/, need to check if its always included in a C++ context.

… requires header

While building on GNU/Hurd and kfreebsd.

On the C++ standard uintptr_t can be defined in <cstdint>
ref: https://www.cplusplus.com/reference/cstdint/

Fixes: 0d44792
@grooverdan grooverdan changed the title Fix HAVE_INTEGER_PTHREAD_SELF build case MDEV-27804 Fails to build - perf schema - thread id of type uintptr_t requires header Feb 11, 2022
@grooverdan grooverdan added this to the 10.5 milestone Feb 11, 2022
@grooverdan grooverdan self-assigned this Feb 11, 2022
@grooverdan grooverdan merged commit 7c6ec0a into MariaDB:10.5 Feb 11, 2022
@grooverdan
Copy link
Member

Thanks @sthibaul for the PR. Merged. I'm sorry it just missed the 10.5.15 release and will be in 10.5.16.

@ottok
Copy link
Contributor

ottok commented Feb 18, 2022

This will be used in Debian on mariadb-10.6 1:10.6.7-1: https://salsa.debian.org/mariadb-team/mariadb-server/-/commit/bbec73bad0facc945fa285eb6d68d4eb9d374d05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants