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

[patches/pok3r] zerror: fix build due to SIGSTKSZ no longer being statically-defined #5

Open
wants to merge 1 commit into
base: patches/pok3r
Choose a base branch
from

Conversation

hansemro
Copy link

SIGSTKSZ is now a run-time variable and this PR removes static keyword from affected variable to fix compilation on Linux.

Reference: https://lists.gnu.org/archive/html/bug-m4/2021-03/msg00000.html

Error from pok3rtool build without commit:

/home/hansemro/Documents/pok3rtool/libchaos/chaos/base/zerror.cpp:800:20: warning: ISO C++ forbids variable length array ‘alternate_stack’ [-Wvla]
  800 |     static uint8_t alternate_stack[SIGSTKSZ];
      |                    ^~~~~~~~~~~~~~~
/home/hansemro/Documents/pok3rtool/libchaos/chaos/base/zerror.cpp:800:20: error: storage size of ‘alternate_stack’ isn’t constant

SIGSTKSZ is now a run-time variable and so static keyword is removed
from affected variable.

Reference: https://lists.gnu.org/archive/html/bug-m4/2021-03/msg00000.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant