Hi all!
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  -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?

Thanks!
:) d

(BTW: Previous failure was due to PIC funniness).

-- 
Daniel Stone                                     <[EMAIL PROTECTED]>
Developer, Trinity College, University of Melbourne

Attachment: msg11883/pgp00000.pgp
Description: PGP signature

Reply via email to