All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/asterisk: fix uclibc-ng build
@ 2024-05-01 15:00 Fabrice Fontaine
  2024-05-01 16:27 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-05-01 15:00 UTC (permalink / raw
  To: buildroot; +Cc: Yann E . MORIN, Fabrice Fontaine

Fix the following uclibc-ng build failure raised since bump to version
20.7.0 in commit 0e6d4d2171ce70d3aa6693f860a36ff08fc4d2b3 and
https://github.com/asterisk/asterisk/commit/2694792e13c7f3ab1911c4a69fba0df32c544177:

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);
      |                                         ^~~~~~

Fixes: 0e6d4d2171ce70d3aa6693f860a36ff08fc4d2b3
 - http://autobuild.buildroot.org/results/d16e4ca4bd26234f84d17da24c04a8c19faba6c5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...es-stasis-control.c-include-signal.h.patch | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/asterisk/0005-res-stasis-control.c-include-signal.h.patch

diff --git a/package/asterisk/0005-res-stasis-control.c-include-signal.h.patch b/package/asterisk/0005-res-stasis-control.c-include-signal.h.patch
new file mode 100644
index 0000000000..fc615c4a19
--- /dev/null
+++ b/package/asterisk/0005-res-stasis-control.c-include-signal.h.patch
@@ -0,0 +1,43 @@
+From 8391dc3891337ecff8becefe1927a30d3922b848 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Wed, 1 May 2024 16:50:50 +0200
+Subject: [PATCH] res/stasis/control.c: include signal.h
+
+Include signal.h to avoid the following build failure with uclibc-ng
+raised since
+https://github.com/asterisk/asterisk/commit/2694792e13c7f3ab1911c4a69fba0df32c544177:
+
+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);
+      |                                         ^~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/d16e4ca4bd26234f84d17da24c04a8c19faba6c5
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream: https://github.com/asterisk/asterisk/pull/728
+---
+ res/stasis/control.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/res/stasis/control.c b/res/stasis/control.c
+index 360f20790..4ed0e2af1 100644
+--- a/res/stasis/control.c
++++ b/res/stasis/control.c
+@@ -41,6 +41,8 @@
+ #include "asterisk/musiconhold.h"
+ #include "asterisk/app.h"
+ 
++#include <signal.h>
++
+ AST_LIST_HEAD(app_control_rules, stasis_app_control_rule);
+ 
+ /*!
+-- 
+2.43.0
+
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/asterisk: fix uclibc-ng build
  2024-05-01 15:00 [Buildroot] [PATCH 1/1] package/asterisk: fix uclibc-ng build Fabrice Fontaine
@ 2024-05-01 16:27 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2024-05-01 16:27 UTC (permalink / raw
  To: Fabrice Fontaine; +Cc: buildroot

Fabrice, All,

On 2024-05-01 17:00 +0200, Fabrice Fontaine spake thusly:
> Fix the following uclibc-ng build failure raised since bump to version
> 20.7.0 in commit 0e6d4d2171ce70d3aa6693f860a36ff08fc4d2b3 and
> https://github.com/asterisk/asterisk/commit/2694792e13c7f3ab1911c4a69fba0df32c544177:
> 
> 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);
>       |                                         ^~~~~~
> 
> Fixes: 0e6d4d2171ce70d3aa6693f860a36ff08fc4d2b3
>  - http://autobuild.buildroot.org/results/d16e4ca4bd26234f84d17da24c04a8c19faba6c5
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...es-stasis-control.c-include-signal.h.patch | 43 +++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 package/asterisk/0005-res-stasis-control.c-include-signal.h.patch
> 
> diff --git a/package/asterisk/0005-res-stasis-control.c-include-signal.h.patch b/package/asterisk/0005-res-stasis-control.c-include-signal.h.patch
> new file mode 100644
> index 0000000000..fc615c4a19
> --- /dev/null
> +++ b/package/asterisk/0005-res-stasis-control.c-include-signal.h.patch
> @@ -0,0 +1,43 @@
> +From 8391dc3891337ecff8becefe1927a30d3922b848 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Wed, 1 May 2024 16:50:50 +0200
> +Subject: [PATCH] res/stasis/control.c: include signal.h
> +
> +Include signal.h to avoid the following build failure with uclibc-ng
> +raised since
> +https://github.com/asterisk/asterisk/commit/2694792e13c7f3ab1911c4a69fba0df32c544177:
> +
> +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);
> +      |                                         ^~~~~~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/d16e4ca4bd26234f84d17da24c04a8c19faba6c5
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Upstream: https://github.com/asterisk/asterisk/pull/728
> +---
> + res/stasis/control.c | 2 ++
> + 1 file changed, 2 insertions(+)
> +
> +diff --git a/res/stasis/control.c b/res/stasis/control.c
> +index 360f20790..4ed0e2af1 100644
> +--- a/res/stasis/control.c
> ++++ b/res/stasis/control.c
> +@@ -41,6 +41,8 @@
> + #include "asterisk/musiconhold.h"
> + #include "asterisk/app.h"
> + 
> ++#include <signal.h>
> ++
> + AST_LIST_HEAD(app_control_rules, stasis_app_control_rule);
> + 
> + /*!
> +-- 
> +2.43.0
> +
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-01 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 15:00 [Buildroot] [PATCH 1/1] package/asterisk: fix uclibc-ng build Fabrice Fontaine
2024-05-01 16:27 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.