[Top] [All Lists]

Re: Re: XF86Config & startup log

To: Hartvig Ekner <>
Subject: Re: Re: XF86Config & startup log
From: Zhang Fuxin <>
Date: Sun, 9 Dec 2001 11:35:10 +0800
Cc: "" <>
hi,Hartvig Ekner,

  Hi,I have finished native-compiling a whole x windows package.
the generated /usr/X11R6 is about 33MB in gzip form.I am afraid
i can't offer it on my website because net traffic is expensive
for me(~$0.3/MB).But I do have some free channel to put it out:)
so if you can offer a place to upload i am willing to help.
  This one should work for you.And it includes much more than my
cross-compiled one--I didn't disable anything except fonts and
non-mga non-fbdev drivers(to save some time).

  Below I will give out my experience to achieve it(not too difficult):

  Work starts from the source rpm at

  1,rpm -i to install it,then cd /usr/src/redhat/SPECS and rpm -bp XFree86.spec
(you may have to resolve some dependency first),then you get a unzip tree under
  2.'make World &> out'
    ... it fails when 'make clean' in fonts dir, saying that no target named 
  so i add a clean target to fonts/IMakefile,disable BuildFonts should 
  3.'make World &> out' again
     (this time it should run till finish but with failures,check the output 
  ok ,we find that Several subdirs not make for some reason,lead to link failure
    the generating XFree86 and others.(Seach '\*\*\*' in the output to find 
   and there are some code which need to be patched.
       1. disable unnecessary drivers &
          SuperProbe(i patched it,but disable will be more convenient)
          etc in config/cf/
       2. If you don't need XIE,PEX,GL extension,you can disable it,they are 
not made for some
          reason(Makefile'fault),i manually make them after all other problem 
       3. patch .../hw/xfree86/common/compiler.h(see the patch)
          patch Xserver/cfb/stipmips.s --->add '#define MIPSEL'
       4. Xserver/hw/xfree86/input/Makefile
    subdirs target is not 'make' before 'all' is 'make',so i add a dependency 
to 'all':
          all:: Congigure  all.subdirs
          but it is auto-generated,if you use make World later,please modify 
       instead(i am not familiar with imake,you have to figure it out by 
       ,see the Notes below.
  5.'make World &> out' again.
      This time it should run to finish and generates XFree86. If not,check the 

  Notes: i resolve most of the problem incrementally,no need to make World too 
many times
    One way i think feasible is like this:
         prepare the source
         patch the source
         edit host.def xfree86.def
         edit some Imakefile
         make World
   This way you may succeed in one time.
   good luck.

在 2001-12-07 09:26:00 you wrote:
>Hello Zhang,
>Thank you for the files.
>one more question: We have everything on the Malta board running
>(with 2.4.3 though, not 2.4.16 yet) except the X-server.
>Is there anything that should prevent me from using your binary X-server
>on our setup, when everything else is identical (G200 HW etc)?
>If so, could I get my hands on a copy of your X-server (binary preferred,
>but source also welcome!) which works on your system? If not, could you
>let me know exactly which X-server source you started from, and then
>I'll try to build it myself (but native this time).
>BTW, why did you cross-compile the Xserver? Once you have the basic
>system up, it seems much less painful to get things compiling native.
>Zhang Fuxin writes:
>> hi,Hartvig Ekner=A3=AC
>>    Here are my files.
>>    but the build process can't be described in short:(.
>>    I started from a rpm package from redhat7(or similar standard=
>>  distribution),did
>> everything to make it cross-compile,very ugly and=
>>  painful.Basically,
>>      repeat if errors
>>        make World &> out,
>>        read out,correct errors it reports
>>      until done
>>    beside changes to config files,i remember there were problems=
>>  due to the sequence
>> when it cross-builded a problem and wanted to execute it.
>>   From the list,I think someone else should have more elegant=
>>  way. And i will try
>> H.J.Lu's source in when having time.

            Zhang Fuxin

Attachment: compiler.h.patch
Description: Binary data

Attachment: XF86Config-4
Description: Binary data

Attachment: XFree86.0.log
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>