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

Bug#846698: xserver-xorg-video-sisusb: FTBFS: ../../src/sisusb_driver.c:1670:6: error: too many arguments to function 'pScreen->BlockHandler'



Source: xserver-xorg-video-sisusb
Version: 1:0.9.6-2
Severity: serious
Tags: stretch sid
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20161202 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..    -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/xorg -I/usr/include/X11/dri -g -O2 -c -o sisusb_driver.lo ../../src/sisusb_driver.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/xorg -I/usr/include/X11/dri -g -O2 -c ../../src/sisusb_driver.c  -fPIC -DPIC -o .libs/sisusb_driver.o
> ../../src/sisusb_driver.c: In function 'SISUSBFreeRec':
> ../../src/sisusb_driver.c:201:13: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>         free(pScrn->chipset);
>              ^~~~~
> In file included from /usr/include/xorg/misc.h:154:0,
>                  from /usr/include/xorg/xf86str.h:37,
>                  from /usr/include/xorg/xf86Privstr.h:37,
>                  from /usr/include/xorg/xf86Priv.h:38,
>                  from ../../src/sisusb.h:84,
>                  from ../../src/sisusb_driver.c:36:
> /usr/include/stdlib.h:444:13: note: expected 'void *' but argument is of type 'const char *'
>  extern void free (void *__ptr) __THROW;
>              ^~~~
> ../../src/sisusb_driver.c: In function 'SiSUSBFindUSBDongle':
> ../../src/sisusb_driver.c:302:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>     else p = dev->busID;
>            ^
> ../../src/sisusb_driver.c:304:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>            p = dev->busID;
>              ^
> ../../src/sisusb_driver.c: In function 'SISUSBPreInit':
> ../../src/sisusb_driver.c:836:32: warning: passing argument 1 of 'SiSUSBCheckForUSBDongle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>      if(SiSUSBCheckForUSBDongle(pScrn->chipset, pSiSUSB, &pSiSUSB->sisusbdev) < 0) {
>                                 ^~~~~
> ../../src/sisusb_driver.c:240:1: note: expected 'char *' but argument is of type 'const char *'
>  SiSUSBCheckForUSBDongle(char *filename, SISUSBPtr pSiSUSB, int *filehandle)
>  ^~~~~~~~~~~~~~~~~~~~~~~
> ../../src/sisusb_driver.c: In function 'SISUSBBlockHandler':
> ../../src/sisusb_driver.c:1648:31: warning: passing argument 1 of 'SiSUSBCheckForUSBDongle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>     if(SiSUSBCheckForUSBDongle(pScrn->chipset, pSiSUSB, &pSiSUSB->sisusbdev) >= 0) {
>                                ^~~~~
> ../../src/sisusb_driver.c:240:1: note: expected 'char *' but argument is of type 'const char *'
>  SiSUSBCheckForUSBDongle(char *filename, SISUSBPtr pSiSUSB, int *filehandle)
>  ^~~~~~~~~~~~~~~~~~~~~~~
> ../../src/sisusb_driver.c:1670:6: error: too many arguments to function 'pScreen->BlockHandler'
>      (*pScreen->BlockHandler) (BLOCKHANDLER_ARGS);
>      ~^~~~~~~~~~~~~~~~~~~~~~~
> ../../src/sisusb_driver.c:1671:27: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
>      pScreen->BlockHandler = SISUSBBlockHandler;
>                            ^
> ../../src/sisusb_driver.c: In function 'SISUSBScreenInit':
> ../../src/sisusb_driver.c:1988:27: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
>      pScreen->BlockHandler = SISUSBBlockHandler;
>                            ^
> Makefile:515: recipe for target 'sisusb_driver.lo' failed
> make[3]: *** [sisusb_driver.lo] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2016/12/02/xserver-xorg-video-sisusb_0.9.6-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.


Reply to: