From: Michael S. <sc...@zi...> - 2000-09-23 22:10:40
|
> > I know just barely enough to screw up a xfree build, and I don't have a > > fast m68k for builds. Just in case you were about to ask. > Well, ask me, I know barely enough to circumvent the glitches in the debian > package to make 3.3.6 build. I haven't even done that for a long time. > Ok, here comes the problem. I made patches for two Imakefile errors, build > fails now here: > > gcc -o pcitweak -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -L../../../../../exports/lib pcitweak.o -L../os-support -lxf86_os -L../dummylib -ldummy -Wl,-rpath-link,../../../../../exports/lib > pcitweak.o: In function `main': > pcitweak.o(.text+0x138): undefined reference to `xf86scanpci' > pcitweak.o(.text+0x2a6): undefined reference to `xf86scanpci' > pcitweak.o(.text+0x2b8): undefined reference to `pciTag' > pcitweak.o(.text+0x2d2): undefined reference to `pciReadByte' > pcitweak.o(.text+0x2f0): undefined reference to `pciReadWord' > pcitweak.o(.text+0x306): undefined reference to `pciReadLong' > pcitweak.o(.text+0x338): undefined reference to `pciWriteByte' > pcitweak.o(.text+0x350): undefined reference to `pciWriteWord' > pcitweak.o(.text+0x360): undefined reference to `pciWriteLong' > collect2: ld returned 1 exit status > make[7]: *** [pcitweak] Error 1 > make[7]: Leaving directory `/build/xfree86-4.0.1/build-tree/xc/programs/Xserver/hw/xfree86/etc' > > In free86-4.0.1/build-tree/xc/programs/Xserver/hw/xfree86/os-support/bus > some *Pci.c files for several arches exist, but none for m68k. The files > say, they need kernel 2.2 for /proc/bus/pci, I am running 2.2.10, but I only > have /proc/bus/zorro, but not pci... so maybe it would not make sense to add > m68k to the Imakefile? No, that would not make sense unless we add code in the kernel to masquerade the m68k builtin framebuffer devices as PCI devices of some sort (and I don't just mean support for /proc/bus/pci). Now how does XFree86 4.x deal with legacy Intel hardware with just ISA or EISA but no PCI bus? Does this still work, at all?? > However, without pci, I have some problems to get xfree4.0 to build, see > error messages above. I think (anybody with a clue correct me please) that > XF4.0 requires some pci functions, or some major rework in the (I)Makefiles > and whatnot. So if somebody has a proposal (dummy, or maybe some "real" pci > functions for m68k) or maybe even a patch, I'd be happy to hear about it. There should be a way (in site.def, perhaps) to say 'there's no PCI on this architecture, use other access methods like VGA or fbdev'. If that's not possible, dummy PCI functions could be implemented that just return -ENODEV for anything if /proc/bus/pci isn't present, hoping XFree does what it is supposed to in this case: fall back on fbdev to map and access the hardware. If even that isn't possible, the design of XFree86 4.0 is badly broken (not that I'd be surprised; in my eyes the way XFree messes with PCI resources bypassing the kernel is a big design flaw and just asking for trouble). Just my idea. I'm sure the xperts disagree. We don't have a XFree maintainer to take care of this anyway, it's not your job as the person stuck with the task of building X for Debian/68k, and I doubt you'll get Branden to do the heavy lifting on behalf of m68k. Unless someone is found to take care of the fundamental XFree problems on m68k, there won't be XFree86 4.x for m68k. Michael |