> Hey

> Ive just been trying to build the latest develoment snapshot (4.3.99.9)
> and have come across an error in the compiling.

> xf86DDC.c: In function `DDCRead_DDC2':
> xf86DDC.c:336: error: invalid lvalue in assignment
> make[6]: *** [xf86DDC.o] Error 1
> make[6]: Leaving directory 
> `/var/tmp/portage/xfree-4.3.99.9/work/xc/programs/Xserver/hw/xfree86/ddc'

> I cant seem to find much on this at all, except the offending code which is
> the line marked with !!!! in the following procedure from xf86DDC.c

> static unsigned char *
> DDCRead_DDC2(int scrnIndex, I2CBusPtr pBus, int start, int len)
> {
>     I2CDevPtr dev;
>     unsigned char W_Buffer[2];
>     int w_bytes;
>     unsigned char *R_Buffer;
>     int i;
>     
>     xf86LoaderReqSymLists(i2cSymbols, NULL);
>
> !!!!    if (!dev = xf86I2CFindDev(pBus, 0x00A0)) {
>       dev = xf86CreateI2CDevRec();
>       dev->DevName = "ddc2";
>       dev->SlaveAddr = 0xA0;
>       dev->ByteTimeout = 2200; /* VESA DDC spec 3 p. 43 (+10 %) */
>       dev->StartTimeout = 550;
>       dev->BitTimeout = 40;
>       dev->ByteTimeout = 40;
>       dev->AcknTimeout = 40;
>
>       dev->pI2CBus = pBus;
>       if (!xf86I2CDevInit(dev)) {
>           xf86DrvMsg(X_PROBED,scrnIndex,"No DDC2 device\n");
>           return NULL;
>       }
>     }
>     if (start < 0x100) {
>       w_bytes = 1;
>       W_Buffer[0] = start;
>     } else {
>       w_bytes = 2;
>       W_Buffer[0] = start & 0xFF;
>       W_Buffer[1] = (start & 0xFF00) >> 8;
>     }
>     R_Buffer = xcalloc(1,sizeof(unsigned char) 
>                                       * (len));
>     for (i=0; i<RETRIES; i++) {
>       if (xf86I2CWriteRead(dev, W_Buffer,w_bytes, R_Buffer,len)) {
>           if (!DDC_checksum(R_Buffer,len))
>               return R_Buffer;
>
> #ifdef DEBUG
>           else ErrorF("Checksum error in EDID block\n");
> #endif
>       }
> #ifdef DEBUG
>       else ErrorF("Error reading EDID block\n");
> #endif
>     }
>     
>     xf86DestroyI2CDevRec(dev,TRUE);
>     xfree(R_Buffer);
>     return NULL;
> }
>
> Does anyone have any ideas?

    You can try to substitute cc -c by cc -E and look at the produced code.

       Lo�c
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to