[Openchrome-users] Driver fails to load after update

Xavier Bachelot xb_ml
Thu Jan 26 08:06:50 PST 2006


Thomas Hellstr?m wrote:
> Xavier Bachelot wrote:
> 
>> Hi Thomas,
>>
>>> Nope.  There's no direct reference to that symbol in the driver.
>>> Try to add it in the vgaHW symbols list in via_driver.c and check if
>>> it makes any difference.
>>>
>> It makes a difference. I get another unresolved symbol :
>> dlopen: /usr/X11R6/lib/modules/drivers/via_drv.so: undefined symbol: 
>> XAACopyROP
>>
> I looked at my driver's  symbol list
> nm via_drv.so
> and the vgahwgetindex thingy is indeed there, but I'm not sure how it 
> ends up there in the first place.
> 
> Hmm. XAACopyROP should only get included if -DX_HAVE_XAAGETROP is not 
> present during compilation. Indeed it is not in my symbol's list so 
> something appears strange with your compilation?
> 
> Could you do a
> nm via_drv.so | grep -i xaacopyrop
> to see if the symbol is in there,
> 
I've done that on the 3 different version of the via driver. (svn 124; 
svn 142; svn 142+vgaHWGetIndex) :

[xavierb at kingston tmp]$ nm via_drv.so_6.9-0.FC3.ucr.1 | egrep -e 
'vgaHWGetIndex|XAACopyROP'
          U vgaHWGetIndex
[xavierb at kingston tmp]$ nm via_drv.so_6.9-0.FC3.ucr.3 | egrep -e 
'vgaHWGetIndex|XAACopyROP'
          U vgaHWGetIndex
          U XAACopyROP
[xavierb at kingston tmp]$ nm via_drv.so_6.9-0.FC3.ucr.4 | egrep -e 
'vgaHWGetIndex|XAACopyROP'
          U vgaHWGetIndex
          U XAACopyROP


> and check that the above -DX_HAVE_XAAGETROP appears in the compilation 
> commands for the via files.
>
yes it is. This is an extract from the latest non-working build :

[xavierb at kingston tmp]$ grep X_HAVE_XAAGETROP xorg-6.9.log
gcc -m32 -O2  -pipe -m32 -march=i386 -mtune=pentium4 
-fno-strict-aliasing -pipe -ansi -Wall -Wpointer-arith -Wundef  -fPIC 
-I. -I../../../../../../programs/Xserver/hw/xfree86/common 
-I../../../../../../programs/Xserver/hw/xfree86/os-support 
-I../../../../../../programs/Xserver/mfb 
-I../../../../../../programs/Xserver/mi 
-I../../../../../../programs/Xserver/cfb 
-I../../../../../../programs/Xserver/hw/xfree86/xaa 
-I../../../../../../programs/Xserver/hw/xfree86/xf1bpp 
-I../../../../../../programs/Xserver/hw/xfree86/xf4bpp 
-I../../../../../../programs/Xserver/hw/xfree86/xf24_32bpp 
-I../../../../../../programs/Xserver/Xext 
-I../../../../../../programs/Xserver/hw/xfree86/vgahw 
-I../../../../../../programs/Xserver/hw/xfree86/ramdac 
-I../../../../../../programs/Xserver/hw/xfree86/ddc 
-I../../../../../../programs/Xserver/hw/xfree86/i2c 
-I../../../../../../programs/Xserver/hw/xfree86/rac 
-I../../../../../../programs/Xserver/hw/xfree86/int10 
-I../../../../../../programs/Xserver/render 
-I../../../../../../programs/Xserver/include 
-I../../../../../../exports/include/X11 
-I../../../../../../include/fonts 
-I../../../../../../include/extensions 
-I../../../../../../programs/Xserver/hw/xfree86/vbe 
-I../../../../../../programs/Xserver/hw/xfree86/shadowfb 
-I../../../../../../programs/Xserver/fb 
-I../../../../../../programs/Xserver/GL/dri 
-I../../../../../../lib/GL/dri 
-I../../../../../../extras/drm/shared-core 
-I../../../../../../extras/drm/shared 
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared/drm/kernel 
-I../../../../../../include 
-I../../../../../../programs/Xserver/hw/xfree86/exa  -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_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64     -D_GNU_SOURCE 
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP 
-DXF86BIGFONT -DDPMSExtension    -DPANORAMIX         -DRENDER -DRANDR 
     -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS 
-DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH 
-DXFreeXDGA -DXvExtension                           -DXFree86LOADER 
-DDLOPEN_HACK -DXFree86Server                           -DXF86VIDMODE 
                    -DXvMCExtension 
-DSMART_SCHEDULE                                 -DXResExtension 
                         -DX_BYTE_ORDER=X_LITTLE_ENDIAN 
              -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) 
+ ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO 
-DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING 
-DGLX_USE_DLOPEN -DGLX_USE_MESA -DX_NEED_XVPRIV_H -DX_USE_REGION_NULL 
      -DX_HAVE_XAAGETROP -DX_NEED_I2CSTART  -DVIA_HAVE_EXA   -c via_driver.c
gcc -m32 -O2  -pipe -m32 -march=i386 -mtune=pentium4 
-fno-strict-aliasing -pipe -ansi -Wall -Wpointer-arith -Wundef  -fPIC 
-I. -I../../../../../../programs/Xserver/hw/xfree86/common 
-I../../../../../../programs/Xserver/hw/xfree86/os-support 
-I../../../../../../programs/Xserver/mfb 
-I../../../../../../programs/Xserver/mi 
-I../../../../../../programs/Xserver/cfb 
-I../../../../../../programs/Xserver/hw/xfree86/xaa 
-I../../../../../../programs/Xserver/hw/xfree86/xf1bpp 
-I../../../../../../programs/Xserver/hw/xfree86/xf4bpp 
-I../../../../../../programs/Xserver/hw/xfree86/xf24_32bpp 
-I../../../../../../programs/Xserver/Xext 
-I../../../../../../programs/Xserver/hw/xfree86/vgahw 
-I../../../../../../programs/Xserver/hw/xfree86/ramdac 
-I../../../../../../programs/Xserver/hw/xfree86/ddc 
-I../../../../../../programs/Xserver/hw/xfree86/i2c 
-I../../../../../../programs/Xserver/hw/xfree86/rac 
-I../../../../../../programs/Xserver/hw/xfree86/int10 
-I../../../../../../programs/Xserver/render 
-I../../../../../../programs/Xserver/include 
-I../../../../../../exports/include/X11 
-I../../../../../../include/fonts 
-I../../../../../../include/extensions 
-I../../../../../../programs/Xserver/hw/xfree86/vbe 
-I../../../../../../programs/Xserver/hw/xfree86/shadowfb 
-I../../../../../../programs/Xserver/fb 
-I../../../../../../programs/Xserver/GL/dri 
-I../../../../../../lib/GL/dri 
-I../../../../../../extras/drm/shared-core 
-I../../../../../../extras/drm/shared 
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared/drm/kernel 
-I../../../../../../include 
-I../../../../../../programs/Xserver/hw/xfree86/exa  -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_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64     -D_GNU_SOURCE 
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP 
-DXF86BIGFONT -DDPMSExtension    -DPANORAMIX         -DRENDER -DRANDR 
     -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS 
-DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH 
-DXFreeXDGA -DXvExtension                           -DXFree86LOADER 
-DDLOPEN_HACK -DXFree86Server                           -DXF86VIDMODE 
                    -DXvMCExtension 
-DSMART_SCHEDULE                                 -DXResExtension 
                         -DX_BYTE_ORDER=X_LITTLE_ENDIAN 
              -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) 
+ ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO 
-DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING 
-DGLX_USE_DLOPEN -DGLX_USE_MESA -DX_NEED_XVPRIV_H -DX_USE_REGION_NULL 
      -DX_HAVE_XAAGETROP -DX_NEED_I2CSTART  -DVIA_HAVE_EXA   -c via_id.c


I unfortunatly didn't kept the other build logs.

Regards,

Xavier




More information about the Openchrome-users mailing list