* [Buildroot] [PATCH v2 1/1] package/apache: Include ap_config_auto.h to define _GNU_SOURCE
@ 2024-10-28 22:21 Bernd Kuhls
2024-10-29 18:37 ` Thomas Petazzoni via buildroot
2024-11-13 16:16 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2024-10-28 22:21 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/2f6/2f6b7bbb4c97e4c91b3abd6bb205e237e57045fa/
and many more.
The bug was introduced by bumping apache to 2.4.59 with buildroot commit
e0bbfaea0e983c1ce42a9c3085f3ca3dd796852f which includes
https://github.com/apache/httpd/commit/008e6afcfdae36bce1b5f3fc0cb9519375fd99cf
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: Fixed missing _GNU_SOURCE define (Thomas)
...lude-ap_config_auto.h-to-define-_GNU.patch | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 package/apache/0004-ap_log_error-Include-ap_config_auto.h-to-define-_GNU.patch
diff --git a/package/apache/0004-ap_log_error-Include-ap_config_auto.h-to-define-_GNU.patch b/package/apache/0004-ap_log_error-Include-ap_config_auto.h-to-define-_GNU.patch
new file mode 100644
index 0000000000..40386147cf
--- /dev/null
+++ b/package/apache/0004-ap_log_error-Include-ap_config_auto.h-to-define-_GNU.patch
@@ -0,0 +1,40 @@
+From f7a85d0d2b76db75dc976e8dfa1101c954ea1a74 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Mon, 28 Oct 2024 23:13:05 +0100
+Subject: [PATCH] ap_log_error: Include ap_config_auto.h to define
+ _GNU_SOURCE
+
+gettid() needs _GNU_SOURCE defined which is provided by ap_config_auto.h
+
+Fixes buildroot error:
+http://autobuild.buildroot.net/results/2f6/2f6b7bbb4c97e4c91b3abd6bb205e237e57045fa//build-end.log
+
+log.c: In function 'log_tid':
+log.c:637:21: error: implicit declaration of function 'gettid'; did you mean 'getgid'? [-Wimplicit-function-declaration]
+ 637 | pid_t tid = gettid();
+
+Upstream: https://github.com/apache/httpd/pull/496
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ server/log.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/server/log.c b/server/log.c
+index 91dcf2c3eb..e709288858 100644
+--- a/server/log.c
++++ b/server/log.c
+@@ -21,6 +21,10 @@
+ *
+ */
+
++#if !defined(WIN32) && !defined(NETWARE)
++#include "ap_config_auto.h"
++#endif
++
+ #include "apr.h"
+ #include "apr_general.h" /* for signal stuff */
+ #include "apr_strings.h"
+--
+2.39.5
+
--
2.39.5
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/apache: Include ap_config_auto.h to define _GNU_SOURCE
2024-10-28 22:21 [Buildroot] [PATCH v2 1/1] package/apache: Include ap_config_auto.h to define _GNU_SOURCE Bernd Kuhls
@ 2024-10-29 18:37 ` Thomas Petazzoni via buildroot
2024-11-13 16:16 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-10-29 18:37 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On Mon, 28 Oct 2024 23:21:01 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> Fixes:
> http://autobuild.buildroot.net/results/2f6/2f6b7bbb4c97e4c91b3abd6bb205e237e57045fa/
> and many more.
>
> The bug was introduced by bumping apache to 2.4.59 with buildroot commit
> e0bbfaea0e983c1ce42a9c3085f3ca3dd796852f which includes
> https://github.com/apache/httpd/commit/008e6afcfdae36bce1b5f3fc0cb9519375fd99cf
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> v2: Fixed missing _GNU_SOURCE define (Thomas)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/apache: Include ap_config_auto.h to define _GNU_SOURCE
2024-10-28 22:21 [Buildroot] [PATCH v2 1/1] package/apache: Include ap_config_auto.h to define _GNU_SOURCE Bernd Kuhls
2024-10-29 18:37 ` Thomas Petazzoni via buildroot
@ 2024-11-13 16:16 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-11-13 16:16 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
>>>>> "Bernd" == Bernd Kuhls <bernd@kuhls.net> writes:
> Fixes:
> http://autobuild.buildroot.net/results/2f6/2f6b7bbb4c97e4c91b3abd6bb205e237e57045fa/
> and many more.
> The bug was introduced by bumping apache to 2.4.59 with buildroot commit
> e0bbfaea0e983c1ce42a9c3085f3ca3dd796852f which includes
> https://github.com/apache/httpd/commit/008e6afcfdae36bce1b5f3fc0cb9519375fd99cf
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> v2: Fixed missing _GNU_SOURCE define (Thomas)
Committed to 2024.02.x and 2024.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-13 16:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 22:21 [Buildroot] [PATCH v2 1/1] package/apache: Include ap_config_auto.h to define _GNU_SOURCE Bernd Kuhls
2024-10-29 18:37 ` Thomas Petazzoni via buildroot
2024-11-13 16:16 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox