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

Bug#1078229: xserver-xorg-video-ivtvdev: FTBFS with GCC 14: error: assignment ... from incompatible pointer type ...



Source: xserver-xorg-video-ivtvdev
Version: 1.1.2-2
Severity: serious
Tags: ftbfs sid trixie
Justification: fails to build from source (but built successfully in the past)

Hi,

xserver-xorg-video-ivtvdev started to FTBFS when GCC 14 was made the
default compiler:

Making all in src
make[3]: Entering directory '/build/xserver-xorg-video-ivtvdev-1.1.2/build/src'
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..    -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm   -g -O2 -c -o ivtv.lo ../../src/ivtv.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -g -O2 -c ../../src/ivtv.c  -fPIC -DPIC -o .libs/ivtv.o
../../src/ivtv.c: In function 'IVTVDevProbe':
../../src/ivtv.c:350:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  350 |         dev = xf86FindOptionValue(devSections[i]->options, "fbdev");
      |             ^
../../src/ivtv.c:373:26: error: assignment to 'ModeStatus (*)(struct _ScrnInfoRec *, struct _DisplayModeRec *, Bool,  int)' {aka 'ModeStatus (*)(struct _ScrnInfoRec *, struct _DisplayModeRec *, int,  int)'} from incompatible pointer type 'int (*)(int,  struct _DisplayModeRec *, Bool,  int)' {aka 'int (*)(int,  struct _DisplayModeRec *, int,  int)'} [-Wincompatible-pointer-types]
  373 |         pScrn->ValidMode = ivtvHWValidMode;
      |                          ^
../../src/ivtv.c: In function 'IVTVDevPreInit':
../../src/ivtv.c:423:13: warning: passing argument 3 of 'ivtvHWInit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  423 |             xf86FindOptionValue(devPtr->pEnt->device->options, "fbdev")))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/ivtv.c:36:
../../src/ivtv_hw.h:65:70: note: expected 'char *' but argument is of type 'const char *'
   65 | Bool ivtvHWInit(ScrnInfoPtr pScrn, struct pci_device *PciInfo, char *device);
      |                                                                ~~~~~~^~~~~~
make[3]: *** [Makefile:338: ivtv.lo] Error 1
make[3]: Leaving directory '/build/xserver-xorg-video-ivtvdev-1.1.2/build/src'


Andreas

Attachment: xserver-xorg-video-ivtvdev_1.1.2-2.log.gz
Description: application/gzip


Reply to: