[Xorg] make World fails on FreeBSD (looks into /usr/X11R6)

Marco Molteni molter at tin.it
Wed Aug 11 13:14:30 PDT 2004


Hi,

I am trying to build xorg (cvs updated as of yesterday) on FreeBSD -current
and the build, launched as "make World", fails as in the log below.

My feeling is that the build fails because it is not self-hosted; with
this I mean that it goes peeking for include files into /usr/X11R6,
which contain Xfree86, and the result is the following:

======================================================
cc -O2 -fno-strict-aliasing -ansi -pedantic -Wno-system-headers -Dasm=__asm     -Wall -Wpointer-arith -Wundef   -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/freetype2/config -I../../exports/include/X11   -I../.. -I../../exports/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:130: error: `XTrap' undeclared (first use in this function)
do_traps.c:130: error: (Each undeclared identifier is reported only once
do_traps.c:130: error: for each function it appears in.)
do_traps.c:130: error: `curTrap' undeclared (first use in this function)
do_traps.c:131: warning: ISO C90 forbids mixed declarations and code
do_traps.c:145: error: syntax error before ')' token
do_traps.c:129: warning: unused variable `left'
do_traps.c:129: warning: unused variable `right'
do_traps.c:129: warning: unused variable `top'
do_traps.c:129: warning: unused variable `bot'
do_traps.c: In function `DoFixedTraps':
do_traps.c:249: warning: implicit declaration of function `XRenderAddTraps'
do_traps.c: In function `InitFixedTraps':
do_traps.c:208: warning: value computed is not used
*** Error code 1

Stop in /home/src/xorg/build/programs/x11perf.
*** Error code 1

Stop in /home/src/xorg/build/programs.
*** Error code 1

Stop in /home/src/xorg/build.
*** Error code 1

Stop in /home/src/xorg/build.
======================================================


I am not at all an expert in building X, but if I look in xc/config/cf,
the only .cf file that references X11Base is FreeBSD's:

molter at gattaccio[/home/src/xorg/xc/config/cf]$ grep X11Base *.cf
FreeBSD.cf:#ifndef X11Base
FreeBSD.cf:#define X11Base                      /usr/X11R6


So, what am I doing wrong? Why is the make World using /usr/X11R6 at all?

thanks
marco



More information about the xorg mailing list