krishi has asked for the wisdom of the Perl Monks concerning the following question:

Hi folks,
I am trying to install the cairo-1.4.10 on solaris9.
While executing make command, I am getting an error of the following type :

cairo-xlib-surface.c:152: error: dereferencing pointer to incomplete type
cairo-xlib-surface.c:83: warning: braces around scalar initializer
cairo-xlib-surface.c:83: warning: (near initialization for `identity'
In file included from cairo-xlib-surface.c:43:
cairo-xlib-surface-private.h:91: error: syntax error before "XTransform"
cairo-xlib-surface-private.h:91: warning: no semicolon at end of struct or union

These are just some of the errors.
Actually I am repeatedly getting these type of errors on almost every line of cairo-xlib-surface.c file.
Any help will be very welcome.
Thanks in advance,
Krishi.

Replies are listed 'Best First'.
Re: (OT) installing cairo library
by Joost (Canon) on Dec 13, 2007 at 11:17 UTC
Re: (OT) installing cairo library
by syphilis (Archbishop) on Dec 13, 2007 at 10:52 UTC
    Actually I am repeatedly getting these type of errors on almost every line of cairo-xlib-surface.c file.
    Any help will be very welcome


    Not sure that this can be categorised as "help", but note that the error occurs in cairo-xlib-surface-private.h, *not* cairo-xlib-surface.c.

    Do you get any previous warnings that a .h file could not be found ?

    Cheers,
    Rob
      Hi Rob,
      No, I didn't get any warnings that .h file not found.
      But I got this error:
      cairo-xlib-surface-private.h:91: error: syntax error before "XTransform"
      cairo-xlib-surface-private.h:91: warning: no semicolon at end of struct or union
      cairo-xlib-surface.c:83: error: syntax 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
      cairo-xlib-surface.c:83: warning: (near initialization for `identity')
      cairo-xlib-surface.c:84: warning: braces around scalar initializer
      And so on for almost every line in cairo-xlib-surface.c .
      Thanks, Krishi
        No, I didn't get any warnings that .h file not found.

        Well, that's odd. Line 91 simply contains:
        XTransform xtransform;
        which is certainly not a syntax error if a header file that defines the XTransform type was found. And Google doesn't return anything for "cairo-xlib-surface-private.h:91".

        I think Joost is right :-)

        Cheers,
        Rob