asterisk / asterisk

The official Asterisk Project repository.
https://www.asterisk.org
Other
1.97k stars 924 forks source link

[bug]: Build failure with uclibc-ng #729

Closed ffontaine closed 1 week ago

ffontaine commented 2 weeks ago

Severity

Blocker

Versions

18.22.0, 20.7.0, 21.2.0

Components/Modules

res/stasis

Operating Environment

Linux with uclibc-ng toolchain (buildroot)

Frequency of Occurrence

Constant

Issue Description

Compilation fails with uclibc-ng.

Relevant log output

stasis/control.c: In function 'exec_command_on_condition':
stasis/control.c:313:3: warning: implicit declaration of function 'pthread_kill'; did you mean 'pthread_yield'? [-Wimplicit-function-declaration]
  313 |   pthread_kill(control->control_thread, SIGURG);
      |   ^~~~~~~~~~~~
      |   pthread_yield
stasis/control.c:313:41: error: 'SIGURG' undeclared (first use in this function)
  313 |   pthread_kill(control->control_thread, SIGURG);
      |                                         ^~~~~~

Asterisk Issue Guidelines