problem building xorg on FreeBSD 5.3

Eric Anholt eta at lclark.edu
Sun Jan 9 13:49:06 PST 2005


On Tue, 2005-01-04 at 14:10 +0200, Rob wrote:
> Hi
> 
> I'm getting the following build error:
> 
> <snip>
> making all in programs/x11perf...
> cc -O -pipe -ansi -pedantic -Wno-system-headers -Dasm=__asm     -Wall 
> -Wpointer-arith -Wundef   -I/usr/ports/x11/xorg-clients/work/xc 
> -I/usr/ports/x11/xorg-clients/work/xc/exports/include -I/usr/X11R6/include 
> -I/usr/local/include -I/usr/local/include/freetype2 
> -I/usr/local/include/freetype2/config 
> -I/usr/ports/x11/xorg-clients/work/xc/exports/include/X11 
> -I/usr/ports/x11/xorg-clients/work/xc 
> -I/usr/ports/x11/xorg-clients/work/xc/exports/include 
> -I/usr/X11R6/include -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO 
> -DMITSHM -DXFT -DXFREE86_FT2 -DXRENDER  -c do_traps.c
> do_traps.c:113: error: syntax error before '*' token
> do_traps.c:113: warning: type defaults to `int' in declaration of `traps'
> do_traps.c:113: error: ISO C forbids data definition with no type or 
> storage class
> do_traps.c: In function `InitFixedTraps':
> do_traps.c:129: error: `XTrap' undeclared (first use in this function)
> do_traps.c:129: error: (Each undeclared identifier is reported only once
> do_traps.c:129: error: for each function it appears in.)
> do_traps.c:129: error: `curTrap' undeclared (first use in this function)
> do_traps.c:130: warning: ISO C90 forbids mixed declarations and code
> do_traps.c:144: error: syntax error before ')' token
> do_traps.c:207: warning: value computed is not used
> do_traps.c: In function `DoFixedTraps':
> do_traps.c:248: warning: implicit declaration of function 
> `XRenderAddTraps'
> *** Error code 1
> 
> Stop in /usr/ports/x11/xorg-clients/work/xc/programs/x11perf.
> </snip>
> 
> google picked up 1 match against my error, which seemed to be quite 
> positive at first, at 
> http://lists.freedesktop.org/pipermail/xorg/2004-August/002280.html, 
> however:
> 
> a) I thought the xorg base was /usr/X11R6 on FreeBSD, and can't see any 
> alternative
> 
> b) according to that thread, it was fixed shortly afterwards in August 
> last year.
> 
> My ports tree is current as of today, and it's building 6.8.1 which from 
> what I can see is the latest version.

If I were to guess, I'd say that you're building xorg-clients without
first updating xorg-libraries.  portupgrade is the normal way to not
encounter these issues.

-- 
Eric Anholt                                eta at lclark.edu          
http://people.freebsd.org/~anholt/         anholt at FreeBSD.org



More information about the xorg mailing list