Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80680

Summary: x11-libs/libsvg-cairo won't compile
Product: Gentoo Linux Reporter: Lukasz Strzygowski (RETIRED) <lucass>
Component: New packagesAssignee: Tom Payne (RETIRED) <twp>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 75348    

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.