Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: X server support?



Hi! Michael,


From: Michael Lorenz <macallan%netbsd.org@localhost>
Date: Wed, 17 Sep 2008 10:25:51 -0400

> That's a known problem, Magnus Henoch posted a workaround on port- 
> macppc a while ago ( it 's a hack in ld.so_elf / rtld.c and avoids  
> using __builtin_return_addr(0) which occasionally returns bogus on  
> powerpc, so far xorg's module loader is the only known program that  
> triggers it. I'm not aware of a similar problem on any other CPU  
> architecture though.

I see this message now.

  (II) Loading /usr/X11R6/lib/modules/libpcidata.a I am at 0x186fad8
  (EE) LoadModule: Module pcidata does not have a pcidataModuleData data object.
  (II) UnloadModule: "pcidata"
  (II) Unloading /usr/X11R6/lib/modules/libpcidata.a
  (EE) Failed to load module "pcidata" (invalid module, 0)

  Fatal server error:
  Unable to load required probe modules, Exiting...


I was not found though looked for pcidataModuleData.

  # grep pcidataModuleData  
obj/powerpc/destdir.bebox/usr/X11R6/lib/modules/libpcidata.a

  (on i386)
  # grep pcidataModuleData /usr/X11R6/lib/modules/libpcidata.a
  Binary file /usr/X11R6/lib/modules/libpcidata.a matches


And, I learnt xf86ScanPci.c had pcidataModuleData.  However, it is
necessary to define -DXFree86LOADER as for this.  And, XFree86LOADER
is not defined according to build-log of xf86ScanPci.c.

#   compile  pcidata/xf86PciData.o
/usr/src/cross/powerpc/bin/powerpc--netbsd-gcc -O2  -Werror  
-fno-strict-aliasing   -DSHAPE -DXKB -DLBX -DXAPPGROUP -DXCSECURITY  -DTOGCUP 
-DXF86BIGFONT -DDPMSExtension -DPIXPRIV  -DPANORAMIX -DRENDER -DRANDR 
-DGCCUSESGAS  -DAVOID_GLYPHBLT -DSINGLEDEPTH -DXvExtension  -DXFree86Server 
-DXvMCExtension -DSMART_SCHEDULE  -DBUILDDEBUG -DXResExtension -DNDEBUG 
-DXINPUT -DXFreeXDGA -DXF86VIDMODE -DX_BYTE_ORDER=X_BIG_ENDIAN  
-I/usr/xsrc/xfree/xc/programs/Xserver/hw/xfree86/common  
-I/usr/xsrc/xfree/xc/programs/Xserver/hw/xfree86/os-support  
-I/usr/xsrc/xfree/xc/programs/Xserver/hw/xfree86/os-support/bus  
-I/usr/xsrc/xfree/xc/programs/Xserver/include  
-I/usr/xsrc/xfree/xc/programs/Xserver/os  
-I/usr/src/obj/powerpc/destdir.bebox/usr/X11R6/include/X11  
-I/usr/xsrc/xfree/xc/programs/Xserver/Xext  
-I/usr/src/obj/powerpc/destdir.bebox/usr/X11R6/include/X11/extensions  
-I/usr/xsrc/xfree/xc/programs/Xserver/Xi  -I/usr/xsrc/xfree/xc/lib/font/include 
 -I/usr/xsrc/xfree/xc/programs/Xserver/hw!
 /xfree86/parser  -I/usr/xsrc/xfree/xc/programs/Xserver/hw/xfree86/loader  
-I/usr/xsrc/xfree/xc/programs/Xserver/rac  
-I/usr/xsrc/xfree/xc/programs/Xserver/hw/xfree86/scanpci  
-I/usr/src/obj/powerpc/x11/Xserver/include -DCSRG_BASED -DFUNCPROTO=15 
-DNARROWPROTO -I/usr/src/obj/powerpc/destdir.bebox/usr/X11R6/include   
-nostdinc -isystem /usr/src/obj/powerpc/destdir.bebox/usr/include -c   
-DPCIDATA xf86PciData.c -o xf86PciData.o


Is this cause understood?

Thanks,
--
kiyohara


Home | Main Index | Thread Index | Old Index