[cairo] Building Cairo on RH 7.3

Robert Love rblove at gmail.com
Wed Dec 19 08:17:52 PST 2007


> No idea if it has been done before. But you're definitely at the right
> place. How about some details on how it's failing?
>
> I don't think any versions other than 1.4.12 or 1.5.4 are really
> interesting.
>
> -Carl
>

OK, I grabbed 1.4.12 and untarred, then:

./configure --prefix=$HOME
make

got me this:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src
-I/home/u102k/include/freetype2 -I/home/u102k/include -I/home/u102k/include
-I/home/u102k/include/libpng12 -I/usr/X11R6/include -Wall -Wsign-compare
-Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -g -O2 -c cairo-type1-subset.c -Wp,-MD,.deps/cairo-
type1-subset.TPlo -o cairo-type1-subset.o >/dev/null 2>&1
source='cairo-xlib-surface.c' object='cairo-xlib-surface.lo' libtool=yes \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I. -I../pixman/src -I/home/u102k/include/freetype2 -I/home/u102k/include
-I/home/u102k/include   -I/home/u102k/include/libpng12
-I/usr/X11R6/include   -Wall -Wsign-compare
-Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs    -g -O2 -c -o cairo-xlib-surface.lo cairo-xlib-surface.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src
-I/home/u102k/include/freetype2 -I/home/u102k/include -I/home/u102k/include
-I/home/u102k/include/libpng12 -I/usr/X11R6/include -Wall -Wsign-compare
-Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -g -O2 -c cairo-xlib-surface.c -Wp,-MD,.deps/cairo-
xlib-surface.TPlo  -fPIC -DPIC -o .libs/cairo-xlib-surface.o
/usr/include/bits/string2.h: In function `__strcpy_small':
In file included from /usr/include/string.h:360,
                 from cairoint.h:55,
                 from cairo-xlib-surface.c:39:
/usr/include/bits/string2.h:439: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:447: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:452: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:457: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:459: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:464: warning: pointer of type `void *' used in
arithmetic
cairo-xlib-surface-private.h: At top level:
In file included from cairo-xlib-surface.c:43:
cairo-xlib-surface-private.h:91: parse error before `XTransform'
cairo-xlib-surface-private.h:91: warning: no semicolon at end of struct or
union
cairo-xlib-surface.c:83: parse error before `identity'
cairo-xlib-surface.c:83: warning: type defaults to `int' in declaration of
`identity'
cairo-xlib-surface.c:83: warning: braces around scalar initializer for
`identity'
cairo-xlib-surface.c:84: warning: braces around scalar initializer for
`identity'
cairo-xlib-surface.c:84: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:84: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:85: warning: braces around scalar initializer for
`identity'
cairo-xlib-surface.c:85: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:85: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:85: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:86: warning: braces around scalar initializer for
`identity'
cairo-xlib-surface.c:86: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:86: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:86: warning: excess elements in scalar initializer
after `identity'
cairo-xlib-surface.c:87: warning: data definition has no type or storage
class
cairo-xlib-surface.c: In function `_CAIRO_FORMAT_TO_XRENDER_FORMAT':
cairo-xlib-surface.c:133: `PictStandardA1' undeclared (first use in this
function)
cairo-xlib-surface.c:133: (Each undeclared identifier is reported only once
cairo-xlib-surface.c:133: for each function it appears in.)
cairo-xlib-surface.c:135: `PictStandardA8' undeclared (first use in this
function)
cairo-xlib-surface.c:137: `PictStandardRGB24' undeclared (first use in this
function)
cairo-xlib-surface.c:140: `PictStandardARGB32' undeclared (first use in this
function)
cairo-xlib-surface.c:142: implicit declaration of function
`XRenderFindStandardFormat'
cairo-xlib-surface.c:142: warning: return makes pointer from integer without
a cast

[many lines deleted]

cairo-xlib-surface.c:3169: dereferencing pointer to incomplete type
cairo-xlib-surface.c:3198: dereferencing pointer to incomplete type
cairo-xlib-surface.c:3203: dereferencing pointer to incomplete type
make[2]: *** [cairo-xlib-surface.lo] Error 1
make[2]: Leaving directory `/opt1/home/u102k/cairo-1.4.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt1/home/u102k/cairo-1.4.12'
make: *** [all] Error 2
[u102k at dws91 cairo-1.4.12]$


BTW, if I try the later version, I keep running into a problem with all the
make files having issue with -fno-strict-aliasing.  I don't think my GCC
supports that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20071219/5f871072/attachment.htm 


More information about the cairo mailing list