All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/frotz: fix build with gcc 14
@ 2024-05-17  8:20 Thomas Huth
  2024-07-12 15:16 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2024-05-17  8:20 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Change -std=c99 into -std=gnu99 in the CFLAGS to avoid the following
build failure with gcc 14:

fastmem.c: In function 'z_restore':
fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
  842 |                 f_setup.aux_name = strdup(default_name);
      |                                    ^~~~~~
      |                                    strcmp

Fixes:
 - http://autobuild.buildroot.org/results/df3b3b98265ec3a75578614746b2d1426c90e125

Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
---
 v2: Use gnu99 instead of removing c99

 package/frotz/frotz.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/frotz/frotz.mk b/package/frotz/frotz.mk
index 5af235137c..4c477c396d 100644
--- a/package/frotz/frotz.mk
+++ b/package/frotz/frotz.mk
@@ -21,7 +21,7 @@ endif
 define FROTZ_BUILD_CMDS
 	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr CONFIG_DIR=/etc \
 		SOUND_TYPE=none CURSES="$(FROTZ_CURSES)" USE_UTF8=$(FROTZ_UTF8) \
-		CFLAGS="$(TARGET_CFLAGS) -std=c99"
+		CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
 endef
 
 define FROTZ_INSTALL_TARGET_CMDS
-- 
2.44.0

_______________________________________________
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] package/frotz: fix build with gcc 14
  2024-05-17  8:20 [Buildroot] [PATCH v2] package/frotz: fix build with gcc 14 Thomas Huth
@ 2024-07-12 15:16 ` Thomas Petazzoni via buildroot
  2024-08-06 22:15   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-12 15:16 UTC (permalink / raw)
  To: Thomas Huth; +Cc: Fabrice Fontaine, buildroot

On Fri, 17 May 2024 10:20:07 +0200
Thomas Huth <huth@tuxfamily.org> wrote:

> Change -std=c99 into -std=gnu99 in the CFLAGS to avoid the following
> build failure with gcc 14:
> 
> fastmem.c: In function 'z_restore':
> fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
>   842 |                 f_setup.aux_name = strdup(default_name);
>       |                                    ^~~~~~
>       |                                    strcmp
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/df3b3b98265ec3a75578614746b2d1426c90e125
> 
> Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> Signed-off-by: Thomas Huth <huth@tuxfamily.org>
> ---
>  v2: Use gnu99 instead of removing c99

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] package/frotz: fix build with gcc 14
  2024-07-12 15:16 ` Thomas Petazzoni via buildroot
@ 2024-08-06 22:15   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-08-06 22:15 UTC (permalink / raw)
  To: Thomas Petazzoni via buildroot
  Cc: Thomas Huth, Fabrice Fontaine, Thomas Petazzoni

>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:

 > On Fri, 17 May 2024 10:20:07 +0200
 > Thomas Huth <huth@tuxfamily.org> wrote:

 >> Change -std=c99 into -std=gnu99 in the CFLAGS to avoid the following
 >> build failure with gcc 14:
 >> 
 >> fastmem.c: In function 'z_restore':
 >> fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
 >> 842 |                 f_setup.aux_name = strdup(default_name);
 >> |                                    ^~~~~~
 >> |                                    strcmp
 >> 
 >> Fixes:
 >> - http://autobuild.buildroot.org/results/df3b3b98265ec3a75578614746b2d1426c90e125
 >> 
 >> Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
 >> Signed-off-by: Thomas Huth <huth@tuxfamily.org>
 >> ---
 >> v2: Use gnu99 instead of removing c99

 > Applied to master, thanks.

Committed to 2024.05.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-08-06 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17  8:20 [Buildroot] [PATCH v2] package/frotz: fix build with gcc 14 Thomas Huth
2024-07-12 15:16 ` Thomas Petazzoni via buildroot
2024-08-06 22:15   ` Peter Korsgaard

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.