dri make: syntax error

From: T. Herman (Ted.Herman_at_acm.org)
Date: 08/06/04

  • Next message: Dances With Crows: "Re: Xgamma"
    Date: 5 Aug 2004 15:09:34 -0700
    
    

    Hi,

    Trying to remake dri (following the instructions at
    dri.sourceforce.net), I get the following error:

    dri_util.c: In function `driCalculateSwapUsage':
    dri_util.c:1640: warning: ISO C forbids nested functions
    dri_util.c:1640: error: syntax error before "get_msc_rate"
    dri_util.c:1647: error: `get_msc_rate' undeclared (first use in this
    function)
    dri_util.c:1647: error: (Each undeclared identifier is reported only
    once
    dri_util.c:1647: error: for each function it appears in.)
    dri_util.c:1648: error: `PFNGLXGETMSCRATEOMLPROC' undeclared (first
    use in this function)
    dri_util.c:1649: error: parse error before "glXGetProcAddress"
    dri_util.c:1653: error: `get_msc_rate' used prior to declaration
    dri_util.c:1653: warning: implicit declaration of function
    `get_msc_rate'

    This is using gcc 3.3.4 on a 2.6.7 kernel. I'm guessing this is
    because
    gcc is now parsing more by the rules, but what's the workaround?

    Thnx,
    T.


  • Next message: Dances With Crows: "Re: Xgamma"

    Relevant Pages