Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libsvg: fix build with gcc 14.x
@ 2025-10-27 19:18 Bernd Kuhls
  2025-12-27 15:44 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2025-10-27 19:18 UTC (permalink / raw)
  To: buildroot; +Cc: Carsten Schoenert

Fixes:
https://autobuild.buildroot.net/results/12e/12e2481afb8acd3149f7ce5692d0f113f2419cd3/

No active upstream was found:
https://lists.freedesktop.org/pipermail/cairo/2010-July/020272.html
https://www.freshports.org/graphics/libsvg/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/libsvg/0003-stdlib.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/libsvg/0003-stdlib.patch

diff --git a/package/libsvg/0003-stdlib.patch b/package/libsvg/0003-stdlib.patch
new file mode 100644
index 0000000000..8434d3b4e1
--- /dev/null
+++ b/package/libsvg/0003-stdlib.patch
@@ -0,0 +1,18 @@
+Add stdlib.h include to fix build with gcc 14.x
+
+Upstream: dead
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+
+diff -uNr libsvg-0.1.4.orig/src/svgint.h libsvg-0.1.4/src/svgint.h
+--- libsvg-0.1.4.orig/src/svgint.h	2005-06-03 18:17:59.000000000 +0200
++++ libsvg-0.1.4/src/svgint.h	2025-10-27 19:40:34.231457892 +0100
+@@ -23,6 +23,8 @@
+ #ifndef SVGINT_H
+ #define SVGINT_H
+ 
++#include <stdlib.h>
++
+ #ifdef LIBSVG_EXPAT
+ 
+ #include <expat.h>
-- 
2.47.3

_______________________________________________
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/libsvg: fix build with gcc 14.x
  2025-10-27 19:18 [Buildroot] [PATCH 1/1] package/libsvg: fix build with gcc 14.x Bernd Kuhls
@ 2025-12-27 15:44 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-12-27 15:44 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot, Carsten Schoenert

Hello Bernd,

On Mon, 27 Oct 2025 20:18:29 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> Fixes:
> https://autobuild.buildroot.net/results/12e/12e2481afb8acd3149f7ce5692d0f113f2419cd3/
> 
> No active upstream was found:
> https://lists.freedesktop.org/pipermail/cairo/2010-July/020272.html
> https://www.freshports.org/graphics/libsvg/
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
>  package/libsvg/0003-stdlib.patch | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644 package/libsvg/0003-stdlib.patch

Thanks for the patch. However:

- The problem also occurs with GCC 13.x, so it's not a GCC 14.x issue

- On my side, I also have build failures like this:

  svgint.h:40:9: error: unknown type name 'xmlParserCtxtPtr'
   40 | typedef xmlParserCtxtPtr svg_xml_parser_context_t;
      |         ^~~~~~~~~~~~~~~~

  as visible at https://autobuild.buildroot.net/results/895/895fdba2f3fcaa42aa93946f2532351d39b16647/build-end.log

So since the latest release of libsvg-cairo and libsvg was from 2005, I
sent a patch series to just drop both packages:

  https://lore.kernel.org/buildroot/20251227154005.2015199-1-thomas.petazzoni@bootlin.com/

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] 2+ messages in thread

end of thread, other threads:[~2025-12-27 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 19:18 [Buildroot] [PATCH 1/1] package/libsvg: fix build with gcc 14.x Bernd Kuhls
2025-12-27 15:44 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox