On Fri, 3 Jan 2003, Daniel Stone wrote: > do_traps.c from HEAD fails, ostensibly because XTrapezoid is undefined:
> gcc -g -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes > -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls > -Wnested-externs -Wundef -I/usr/include -I/usr/include/freetype2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ These are causing your build to pick up stale headers. > -I../.. -I../../exports/include -Dlinux -D__i386__ > -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE > -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DMITSHM > -DXFT -DXRENDER -c -o do_traps.o do_traps.c > do_traps.c:113: parse error before `*' > do_traps.c:113: warning: type defaults to `int' in declaration of `traps' > do_traps.c:113: ANSI C forbids data definition with no type or storage class > do_traps.c: In function `InitFixedTrapezoids': > do_traps.c:125: `XTrapezoid' undeclared (first use in this function) > do_traps.c:125: (Each undeclared identifier is reported only once > do_traps.c:125: for each function it appears in.) > do_traps.c:125: `curTrap' undeclared (first use in this function) > do_traps.c:125: warning: statement with no effect > do_traps.c:126: parse error before `color' > do_traps.c:132: parse error before `)' > do_traps.c:158: `color' undeclared (first use in this function) > do_traps.c:186: warning: implicit declaration of function `XDoubleToFixed' > do_traps.c:185: warning: value computed is not used > do_traps.c: In function `DoFixedTrapezoids': > do_traps.c:222: `XTrapezoid' undeclared (first use in this function) > do_traps.c:222: `curTrap' undeclared (first use in this function) > do_traps.c:222: warning: statement with no effect > do_traps.c:223: parse error before `white' > do_traps.c:225: `white' undeclared (first use in this function) > do_traps.c:225: warning: implicit declaration of function `XftDrawSrcPicture' > do_traps.c:226: `black' undeclared (first use in this function) > do_traps.c:227: `dst' undeclared (first use in this function) > do_traps.c:227: warning: implicit declaration of function `XftDrawPicture' > do_traps.c:229: `src' undeclared (first use in this function) > do_traps.c:232: warning: implicit declaration of function >`XRenderCompositeTrapezoids' > make[5]: *** [do_traps.o] Error 1 > -- > This is with an untouched do_traps.c, and x11perf in general. The lines > above it include <X11/extensions/Xrender.h>, which is where XTrapezoid > is defined ... any ideas? Marc. +----------------------------------+-----------------------------------+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax: 1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +-----------------------------------+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply | | CANADA | | +----------------------------------+-----------------------------------+ XFree86 Core Team member. ATI driver and X server internals. _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert