Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80680 - x11-libs/libsvg-cairo won't compile
Summary: x11-libs/libsvg-cairo won't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 75348
  Show dependency tree
 
Reported: 2005-02-04 00:35 UTC by Lukasz Strzygowski (RETIRED)
Modified: 2005-02-04 14:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Strzygowski (RETIRED) gentoo-dev 2005-02-04 00:35:59 UTC
Error message:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/X11R6/include -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT svg_cairo_sprintf_alloc.lo -MD -MP -MF .deps/svg_cairo_sprintf_alloc.Tpo -c svg_cairo_sprintf_alloc.c -o svg_cairo_sprintf_alloc.o >/dev/null 2>&1
In file included from svg_cairo.c:32:
svg-cairo-internal.h:91: error: parse error before "va_list"
svg_cairo.c: In function `_svg_cairo_set_gradient':
svg_cairo.c:604: warning: passing arg 2 of `cairo_set_pattern' from incompatible pointer type
svg_cairo.c: In function `_svg_cairo_set_pattern':
svg_cairo.c:650: warning: passing arg 2 of `cairo_set_pattern' from incompatible pointer type
make[2]: *** [svg_cairo.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/libsvg-cairo-0.1.4/work/libsvg-cairo-0.1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libsvg-cairo-0.1.4/work/libsvg-cairo-0.1.4'
make: *** [all] Error 2


Solution:

src_unpack() {
    unpack ${A}
    sed -i -e "32i#include <stdarg.h>" ${S}/src/svg-cairo-internal.h
}
Comment 1 Tom Payne (RETIRED) gentoo-dev 2005-02-04 14:42:10 UTC
Thanks very much lucass -- now in CVS.