Package Details: libsvg-cairo 0.1.6-13

Git Clone URL: https://aur.archlinux.org/libsvg-cairo.git (read-only, click to copy)
Package Base: libsvg-cairo
Description: A library for rendering SVG documents
Upstream URL: https://cairographics.org/
Keywords: lib svg
Licenses: LGPL-2.1-only
Submitter: None
Maintainer: zoorat
Last Packager: zoorat
Votes: 131
Popularity: 0.000126
First Submitted: 2007-11-04 02:06 (UTC)
Last Updated: 2025-01-10 06:29 (UTC)

Latest Comments

zoorat commented on 2025-01-10 06:30 (UTC)

@dreieck Thanks a lot.

dreieck commented on 2025-01-08 19:18 (UTC)

You need to make the license identifier SPDX compliant:

libsvg-cairo E: LGPL is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.

Regards and thanks for the package!

dreieck commented on 2025-01-08 19:07 (UTC)

Build fails with svg_paint.c:42:31: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] and a lot of similar errors:

[...]
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -w -flto=auto -MT svg_style.lo -MD -MP -MF .deps/svg_style.Tpo -c svg_style.c  -fPIC -DPIC -o .libs/svg_style.o
svg_paint.c: In function '_svg_paint_init':
svg_paint.c:42:31: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   42 |         char            *id = malloc (length+1);
      |                               ^~~~~~
svg_paint.c:26:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
   25 | #include "svgint.h"
  +++ |+#include <stdlib.h>
   26 | 
svg_element.c: In function '_svg_element_create':
svg_element.c:33:16: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   33 |     *element = malloc( sizeof (svg_element_t));
      |                ^~~~~~
svg_paint.c:50:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   50 |         free (id);
      |         ^~~~
svg_paint.c:50:9: note: include '<stdlib.h>' or provide a declaration of 'free'
svg_element.c:26:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
   25 | #include "svgint.h"
  +++ |+#include <stdlib.h>
   26 | 
[...]

Maybe you need to add some backwards compatibility compiler options to build this with up to date GCC.

Regards!

micwoj92 commented on 2021-05-02 22:17 (UTC)

Hello, could you update links to https?