D: [iurt_root_command] chroot sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/x11-driver-video-sisimedia-0.9.1-9.20091203.32.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.kHbOZN + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf xf86-video-sis-0.9.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xf86-video-sis-0.9.1.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd xf86-video-sis-0.9.1 + rm -rf /home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xf86-video-sis-0.9.1-20102701.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0002-Remove-XFree86-Misc-PassMessage-support.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0003-Fix-build-with-Werror-format-security.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0005-Fix-backlight-off-on-SiS30x.-video-bridges.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0006-Add-IgnoreHotkeyFlag-driver-option.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xf86-video-sis-0.9.1-dump-regs-after-video-init.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0007-Remove-useless-loader-symbol-lists.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0008-update-to-xextproto-7-1-support.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0009-update-for-rac-removal.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0010-change-to-use-abi-version-check.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0011-more-rac-removal.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0012-remove-mibank-h-reference.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0013-Update-to-new-CreateNewResourceType-API.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xf86-video-sis-0.9.1-automake-1.13.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-Remove-xorgconfig-xorgcfg-from-See-Also-list-in-man-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0004-Make-sisRegs3D4-big-enough-to-hold-all-values-writte.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0005-Correct-bounds-check-of-blitClip-array-access.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xserver112.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/pciTag-removal-workaround.patch + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Untangle-XF86DRI.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/swap-func-rename.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xf86MapDomainMemory-pci_device_map_legacy.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sync-with-freedesktop.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/fix-xv-crash.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sisimedia-no-xaa.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sisimedia-xorg-1.13.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/deprecated-sym2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/disable-UploadToScreen-DownloadFromScreen.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/remove_mibstore.h.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sisimedia-1.17.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/use-compat-api.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/disable-accel-mga19620.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/fix-build.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.01fTcD + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd xf86-video-sis-0.9.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + sed -i -e s,sis_drv,sisimedia_drv,g src/Makefile.am + sed -i -e 's,\"sis\",\"sisimedia\",g' src/sis.h + sed -i -e s,sisModuleData,sisimediaModuleData,g src/sis_driver.c + autoreconf -ifs libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'. libtoolize: linking file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:45: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:45: You should run autoupdate. aclocal.m4:122: AC_PROG_LIBTOOL is expanded from... configure.ac:45: the top level configure.ac:51: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:51: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:51: the top level configure.ac:56: warning: The macro 'AC_HELP_STRING' is obsolete. configure.ac:56: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:56: the top level configure.ac:132: warning: AC_OUTPUT should be used without arguments. configure.ac:132: You should run autoupdate. configure.ac:41: installing './compile' configure.ac:34: installing './missing' src/Makefile.am: installing './depcomp' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... true checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports the include directive... yes (GNU style) checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for gcc options needed to detect all undeclared functions... none needed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking whether __clang__ is declared... no checking whether __INTEL_COMPILER is declared... no checking whether __SUNPRO_C is declared... no checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for a sed that does not truncate output... /usr/bin/sed checking if gcc supports -Werror=unknown-warning-option... no checking if gcc supports -Werror=unused-command-line-argument... no checking if gcc supports -Wall... yes checking if gcc supports -Wpointer-arith... yes checking if gcc supports -Wmissing-declarations... yes checking if gcc supports -Wformat=2... yes checking if gcc supports -Wstrict-prototypes... yes checking if gcc supports -Wmissing-prototypes... yes checking if gcc supports -Wnested-externs... yes checking if gcc supports -Wbad-function-cast... yes checking if gcc supports -Wold-style-definition... yes checking if gcc supports -Wdeclaration-after-statement... yes checking if gcc supports -Wunused... yes checking if gcc supports -Wuninitialized... yes checking if gcc supports -Wshadow... yes checking if gcc supports -Wmissing-noreturn... yes checking if gcc supports -Wmissing-format-attribute... yes checking if gcc supports -Wredundant-decls... yes checking if gcc supports -Wlogical-op... yes checking if gcc supports -Werror=implicit... yes checking if gcc supports -Werror=nonnull... yes checking if gcc supports -Werror=init-self... yes checking if gcc supports -Werror=main... yes checking if gcc supports -Werror=missing-braces... yes checking if gcc supports -Werror=sequence-point... yes checking if gcc supports -Werror=return-type... yes checking if gcc supports -Werror=trigraphs... yes checking if gcc supports -Werror=array-bounds... yes checking if gcc supports -Werror=write-strings... yes checking if gcc supports -Werror=address... yes checking if gcc supports -Werror=int-to-pointer-cast... yes checking if gcc supports -Werror=pointer-to-int-cast... yes checking if gcc supports -pedantic... yes checking if gcc supports -Werror... yes checking if gcc supports -Werror=attributes... yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-mageia-linux-gnu-file... no checking for file... file checking for x86_64-mageia-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-mageia-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-mageia-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-mageia-linux-gnu-strip... no checking for strip... strip checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-mageia-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C preprocessor... gcc -E checking for x86_64-mageia-linux-gnu-cpp... no checking for cpp... /usr/bin/cpp checking if /usr/bin/cpp requires -undef... yes checking if /usr/bin/cpp requires -traditional... yes checking if XINERAMA is defined... yes checking if RANDR is defined... yes checking if RENDER is defined... yes checking if XV is defined... yes checking if DPMSExtension is defined... yes checking for xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto xineramaproto randrproto renderproto videoproto xextproto... yes checking for xextproto >= 7.0.99.1... yes checking for /usr/include/xorg/dri.h... yes checking for /usr/include/xorg/sarea.h... yes checking for /usr/include/xorg/dristruct.h... yes checking whether to include DRI support... yes checking for libdrm >= 2.0 xf86driproto... yes checking whether XSERVER_LIBPCIACCESS is declared... yes checking for pciaccess >= 0.12.901... yes checking for X.Org SGML entities ... checking for /usr/share/sgml/X11/defs.ent... no no checking for ps2pdf... no configure: WARNING: ps2pdf not found - documentation targets will be skipped checking for linuxdoc... no checking whether to build documentation... no checking whether to build pdf documentation... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/xvmc/Makefile config.status: creating man/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j48 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_dri.lo sis_dri.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_dri.c -fPIC -DPIC -o .libs/sis_dri.o In file included from sis.h:75, from sis_dri.c:43: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_dri.c: In function 'SISDRIScreenInit': sis_dri.c:434:9: error: implicit declaration of function 'SISDRICloseScreen'; did you mean 'DRICloseScreen'? [-Wimplicit-function-declaration] 434 | SISDRICloseScreen(pScreen); | ^~~~~~~~~~~~~~~~~ | DRICloseScreen sis_dri.c: In function 'SISDRIFinishScreenInit': sis_dri.c:788:41: warning: assignment discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] 788 | pSiS->cmdQ_SharedWritePortBackup = pSiS->cmdQ_SharedWritePort; | ^ sis_dri.c: At top level: sis_dri.c:814:1: warning: conflicting types for 'SISDRICloseScreen'; have 'void(struct _Screen *)' 814 | SISDRICloseScreen(ScreenPtr pScreen) | ^~~~~~~~~~~~~~~~~ sis_dri.c:434:9: note: previous implicit declaration of 'SISDRICloseScreen' with type 'void(struct _Screen *)' 434 | SISDRICloseScreen(pScreen); | ^~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:568: sis_dri.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_hwmc.lo sis_hwmc.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_hwmc.c -fPIC -DPIC -o .libs/sis_hwmc.o sis_hwmc.c:46:22: warning: extra tokens at end of #ifndef directive 46 | #ifndef GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6 | ^ In file included from sis_hwmc.c:50: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_memcpy.lo sis_memcpy.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_memcpy.c -fPIC -DPIC -o .libs/sis_memcpy.o In file included from sis.h:75, from sis_memcpy.c:34: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_memcpy.c: In function 'CheckOSforSSE': sis_memcpy.c:872:5: error: implicit declaration of function 'xf86InterceptSigIll' [-Wimplicit-function-declaration] 872 | xf86InterceptSigIll(&sigill_handler); | ^~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:568: sis_memcpy.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_accel.lo sis_accel.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_accel.c -fPIC -DPIC -o .libs/sis_accel.o In file included from sis.h:75, from sis_accel.c:41: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_accel.c: In function 'SiSAccelInit': sis_accel.c:669:14: error: implicit declaration of function 'exaGetVersion'; did you mean 'drmGetVersion'? [-Wimplicit-function-declaration] 669 | if(exaGetVersion() <= EXA_MAKE_VERSION(0, 1, 0)) { | ^~~~~~~~~~~~~ | drmGetVersion sis_accel.c:669:33: error: implicit declaration of function 'EXA_MAKE_VERSION'; did you mean 'PACKAGE_VERSION'? [-Wimplicit-function-declaration] 669 | if(exaGetVersion() <= EXA_MAKE_VERSION(0, 1, 0)) { | ^~~~~~~~~~~~~~~~ | PACKAGE_VERSION make[2]: *** [Makefile:568: sis_accel.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_utility.lo sis_utility.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_utility.c -fPIC -DPIC -o .libs/sis_utility.o In file included from sis.h:75, from sis_utility.c:38: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_utility.c: In function 'SISUtilityDeviceSwitch': sis_utility.c:898:9: error: implicit declaration of function 'SISCRT1PreInit'; did you mean 'SISVGAPreInit'? [-Wimplicit-function-declaration] 898 | SISCRT1PreInit(pScrn); /*redetecting CRT1, pSiS->CRT1detected will update.*/ | ^~~~~~~~~~~~~~ | SISVGAPreInit sis_utility.c: In function 'SISVGADetected': sis_utility.c:967:20: error: implicit declaration of function 'SiS_DetectVGA1' [-Wimplicit-function-declaration] 967 | detected = SiS_DetectVGA1(pScrn); | ^~~~~~~~~~~~~~ sis_utility.c: In function 'SiSHandleSiSDirectCommand': sis_utility.c:1770:60: warning: passing argument 2 of 'sisutil_prepare_string' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1770 | sisutil_prepare_string(sdcbuf, mypScrn->monitor->id); | ~~~~~~~~~~~~~~~~^~~~ sis_utility.c:977:60: note: expected 'char *' but argument is of type 'const char *' 977 | sisutil_prepare_string(xSiSCtrlCommandReply *sdcbuf, char *mystring) | ~~~~~~^~~~~~~~ sis_utility.c:1793:72: warning: passing argument 2 of 'sisutil_prepare_string' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1793 | sisutil_prepare_string(sdcbuf, pSiSEnt->pScrn_1->monitor->id); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ sis_utility.c:977:60: note: expected 'char *' but argument is of type 'const char *' 977 | sisutil_prepare_string(xSiSCtrlCommandReply *sdcbuf, char *mystring) | ~~~~~~^~~~~~~~ make[2]: *** [Makefile:568: sis_utility.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_dac.lo sis_dac.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_dac.c -fPIC -DPIC -o .libs/sis_dac.o In file included from sis.h:75, from sis_dac.c:70: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_dac.c: In function 'SiSRestore': sis_dac.c:485:5: error: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] 485 | usleep(10000); | ^~~~~~ sis_dac.c: In function 'SiS300Save': sis_dac.c:547:31: error: implicit declaration of function 'pciReadLong' [-Wimplicit-function-declaration] 547 | sisReg->sisRegsPCI50 = pciReadLong(0x00000000, 0x50); | ^~~~~~~~~~~ sis_dac.c: In function 'SiS300Restore': sis_dac.c:700:8: error: implicit declaration of function 'pciWriteLong' [-Wimplicit-function-declaration] 700 | pciWriteLong(0x00000000, 0x50, temp1); | ^~~~~~~~~~~~ make[2]: *** [Makefile:568: sis_dac.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_vb.lo sis_vb.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_vb.c -fPIC -DPIC -o .libs/sis_vb.o In file included from sis.h:75, from sis_vb.c:38: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_vb.c: In function 'SiS_SISDetectCRT1': sis_vb.c:97:8: error: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] 97 | usleep(10000); | ^~~~~~ make[2]: *** [Makefile:568: sis_vb.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_mergedfb.lo sis_mergedfb.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_mergedfb.c -fPIC -DPIC -o .libs/sis_mergedfb.o In file included from sis.h:75, from sis_mergedfb.c:38: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ sis_mergedfb.c: In function 'SiSCopyModeNLink': sis_mergedfb.c:310:19: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 310 | strcpy(mode->name, namebuffer); | ~~~~^~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdint.h:26, from /usr/lib/gcc/x86_64-mageia-linux/14/include/stdint.h:9, from /usr/include/pixman-1/pixman.h:105, from /usr/include/xorg/compiler.h:76, from sis.h:67: /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'const char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sis_mergedfb.c: In function 'SiSMetaModeParseError': sis_mergedfb.c:547:59: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] 547 | "Error parsing Metamodes at character no %d (near or in \"%s\")\n", | ~^ | | | int | %ld 548 | curr - src, | ~~~~~~~~~~ | | | long int sis_mergedfb.c: In function 'SISMFBPointerMoved': sis_mergedfb.c:1502:11: warning: 'xf86BlockSIGIO' is deprecated [-Wdeprecated-declarations] 1502 | sigstate = xf86BlockSIGIO(); | ^~~~~~~~ In file included from sis.h:74: /usr/include/xorg/xf86.h:85:33: note: declared here 85 | static inline _X_DEPRECATED int xf86BlockSIGIO(void) { input_lock(); return 0; } | ^~~~~~~~~~~~~~ sis_mergedfb.c:1503:11: error: implicit declaration of function 'miPointerAbsoluteCursor'; did you mean 'miPointerWarpCursor'? [-Wimplicit-function-declaration] 1503 | miPointerAbsoluteCursor(x, y, currentTime.milliseconds); | ^~~~~~~~~~~~~~~~~~~~~~~ | miPointerWarpCursor sis_mergedfb.c:1504:11: warning: 'xf86UnblockSIGIO' is deprecated [-Wdeprecated-declarations] 1504 | xf86UnblockSIGIO(sigstate); | ^~~~~~~~~~~~~~~~ /usr/include/xorg/xf86.h:86:34: note: declared here 86 | static inline _X_DEPRECATED void xf86UnblockSIGIO(int wasset) { input_unlock(); } | ^~~~~~~~~~~~~~~~ sis_mergedfb.c: In function 'SiSProcXineramaGetState': sis_mergedfb.c:2493:12: error: implicit declaration of function 'LookupWindow'; did you mean 'dixLookupWindow'? [-Wimplicit-function-declaration] 2493 | pWin = LookupWindow(stuff->window, client); | ^~~~~~~~~~~~ | dixLookupWindow sis_mergedfb.c:2493:10: error: assignment to 'WindowPtr' {aka 'struct _Window *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 2493 | pWin = LookupWindow(stuff->window, client); | ^ sis_mergedfb.c: In function 'SiSProcXineramaGetScreenCount': sis_mergedfb.c:2518:10: error: assignment to 'WindowPtr' {aka 'struct _Window *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 2518 | pWin = LookupWindow(stuff->window, client); | ^ sis_mergedfb.c: In function 'SiSProcXineramaGetScreenSize': sis_mergedfb.c:2543:10: error: assignment to 'WindowPtr' {aka 'struct _Window *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 2543 | pWin = LookupWindow (stuff->window, client); | ^ sis_mergedfb.c: In function 'SiSProcXineramaSelectInput': sis_mergedfb.c:2636:12: error: implicit declaration of function 'SecurityLookupWindow'; did you mean 'dixLookupWindow'? [-Wimplicit-function-declaration] 2636 | pWin = SecurityLookupWindow(stuff->window,client,DixWriteAccess); | ^~~~~~~~~~~~~~~~~~~~ | dixLookupWindow sis_mergedfb.c:2636:10: error: assignment to 'WindowPtr' {aka 'struct _Window *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 2636 | pWin = SecurityLookupWindow(stuff->window,client,DixWriteAccess); | ^ make[2]: *** [Makefile:568: sis_mergedfb.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o init.lo init.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c init.c -fPIC -DPIC -o .libs/init.o In file included from sis.h:75, from init.h:60, from init.c:63: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ init.c: In function 'SiS_SetCRT1FIFO_630': init.c:2634:12: error: implicit declaration of function 'pciReadLong' [-Wimplicit-function-declaration] 2634 | templ = pciReadLong(0x00000000, 0x50); | ^~~~~~~~~~~ init.c:2659:4: error: implicit declaration of function 'pciWriteLong' [-Wimplicit-function-declaration] 2659 | pciWriteLong(0x00000000, 0x50, templ); | ^~~~~~~~~~~~ init.c: In function 'SiS_Handle760': init.c:3312:15: error: implicit declaration of function 'pciReadWord' [-Wimplicit-function-declaration] 3312 | somebase = pciReadWord(0x00001000, 0x74); | ^~~~~~~~~~~ init.c:3333:4: error: implicit declaration of function 'pciWriteByte' [-Wimplicit-function-declaration] 3333 | pciWriteByte(0x00000000, 0x7e, temp1); | ^~~~~~~~~~~~ make[2]: *** [Makefile:568: init.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o init301.lo init301.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c init301.c -fPIC -DPIC -o .libs/init301.o In file included from sis.h:75, from init301.h:60, from init301.c:76: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ init301.c: In function 'SiS_SetChrontelGPIO': init301.c:956:15: error: implicit declaration of function 'pciReadLong' [-Wimplicit-function-declaration] 956 | acpibase = pciReadLong(0x00000800, 0x74); | ^~~~~~~~~~~ init301.c: At top level: init301.c:8195:1: error: return type defaults to 'int' [-Wimplicit-int] 8195 | SiS_ModifyVB(struct SiS_Private *SiS_Pr) | ^~~~~~~~~~~~ make[2]: *** [Makefile:568: init301.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_dga.lo sis_dga.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_dga.c -fPIC -DPIC -o .libs/sis_dga.o In file included from sis.h:75, from sis_dga.c:41: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_shadow.lo sis_shadow.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_shadow.c -fPIC -DPIC -o .libs/sis_shadow.o In file included from sis.h:75, from sis_shadow.c:34: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis300_accel.lo sis300_accel.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis300_accel.c -fPIC -DPIC -o .libs/sis300_accel.o In file included from sis.h:75, from sis300_accel.c:43: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis310_accel.lo sis310_accel.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis310_accel.c -fPIC -DPIC -o .libs/sis310_accel.o In file included from sis.h:75, from sis310_accel.c:41: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_3daccel.lo sis_3daccel.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_3daccel.c -fPIC -DPIC -o .libs/sis_3daccel.o In file included from sis.h:75, from sis_3daccel.c:37: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_setup.lo sis_setup.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_setup.c -fPIC -DPIC -o .libs/sis_setup.o In file included from sis.h:75, from sis_setup.c:40: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis6326_video.lo sis6326_video.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis6326_video.c -fPIC -DPIC -o .libs/sis6326_video.o In file included from sis.h:75, from sis6326_video.c:38: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_driver.lo sis_driver.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_driver.c -fPIC -DPIC -o .libs/sis_driver.o In file included from sis.h:75, from sis_driver.c:79: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ In file included from sis_driver.c:108: /usr/include/X11/extensions/xf86dgastr.h:1:2: warning: #warning "xf86dgastr.h is obsolete and may be removed in the future." [-Wcpp] 1 | #warning "xf86dgastr.h is obsolete and may be removed in the future." | ^~~~~~~ /usr/include/X11/extensions/xf86dgastr.h:2:2: warning: #warning "include for the protocol defines." [-Wcpp] 2 | #warning "include for the protocol defines." | ^~~~~~~ sis_driver.c: In function 'SISFreeRec': sis_driver.c:741:43: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 741 | free(pScrn->currentMode->name); | ~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/xorg/os.h:54, from /usr/include/xorg/misc.h:119, from /usr/include/xorg/xf86Pci.h:107, from sis.h:68: /usr/include/stdlib.h:687:25: note: expected 'void *' but argument is of type 'const char *' 687 | extern void free (void *__ptr) __THROW; | ~~~~~~^~~~~ sis_driver.c: In function 'SiS_CheckKernelFB': sis_driver.c:1016:20: error: implicit declaration of function 'open'; did you mean 'Fopen'? [-Wimplicit-function-declaration] 1016 | if((fd = open(name, 'r')) != -1) { | ^~~~ | Fopen sis_driver.c:1020:18: error: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 1020 | if(!ioctl(fd, SISFB_GET_INFO_SIZE, &sisfbinfosize)) { | ^~~~~ sis_driver.c:1178:14: error: implicit declaration of function 'close'; did you mean 'Fclose'? [-Wimplicit-function-declaration] 1178 | close (fd); | ^~~~~ | Fclose sis_driver.c: In function 'SiSDuplicateMode': sis_driver.c:2833:25: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2833 | strcpy(dest->name, source->name); | ~~~~^~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdint.h:26, from /usr/lib/gcc/x86_64-mageia-linux/14/include/stdint.h:9, from /usr/include/pixman-1/pixman.h:105, from /usr/include/xorg/compiler.h:76, from sis.h:67: /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'const char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sis_driver.c: In function 'SISPreInit': sis_driver.c:3612:14: error: implicit declaration of function 'pciReadLong' [-Wimplicit-function-declaration] 3612 | if(pciReadLong(0x00000000, 0x00) == 0x07301039) { | ^~~~~~~~~~~ sis_driver.c:5129:17: error: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] 5129 | usleep(10000); | ^~~~~~ sis_driver.c: In function 'SISScreenInit': sis_driver.c:9522:42: error: implicit declaration of function 'SISDRIScreenInit'; did you mean 'SISScreenInit'? [-Wimplicit-function-declaration] 9522 | pSiS->directRenderingEnabled = SISDRIScreenInit(pScreen); | ^~~~~~~~~~~~~~~~ | SISScreenInit sis_driver.c:9737:11: error: implicit declaration of function 'xf86DisableRandR'; did you mean 'xf86DisableIO'? [-Wimplicit-function-declaration] 9737 | xf86DisableRandR(); | ^~~~~~~~~~~~~~~~ | xf86DisableIO sis_driver.c:9848:42: error: implicit declaration of function 'SISDRIFinishScreenInit'; did you mean 'DRIFinishScreenInit'? [-Wimplicit-function-declaration] 9848 | pSiS->directRenderingEnabled = SISDRIFinishScreenInit(pScreen); | ^~~~~~~~~~~~~~~~~~~~~~ | DRIFinishScreenInit sis_driver.c: In function 'SISLeaveVT': sis_driver.c:10673:35: error: passing argument 1 of 'xf86ScreenToScrn' from incompatible pointer type [-Wincompatible-pointer-types] 10673 | pScreen = xf86ScreenToScrn(pScrn); | ^~~~~ | | | ScrnInfoPtr {aka struct _ScrnInfoRec *} In file included from sis.h:74: /usr/include/xorg/xf86.h:382:57: note: expected 'ScreenPtr' {aka 'struct _Screen *'} but argument is of type 'ScrnInfoPtr' {aka 'struct _ScrnInfoRec *'} 382 | extern _X_EXPORT ScrnInfoPtr xf86ScreenToScrn(ScreenPtr pScreen); | ~~~~~~~~~~^~~~~~~ sis_driver.c:10673:16: error: assignment to 'ScreenPtr' {aka 'struct _Screen *'} from incompatible pointer type 'ScrnInfoPtr' {aka 'struct _ScrnInfoRec *'} [-Wincompatible-pointer-types] 10673 | pScreen = xf86ScreenToScrn(pScrn); | ^ sis_driver.c: In function 'SISCloseScreen': sis_driver.c:10757:8: error: implicit declaration of function 'SISDRICloseScreen'; did you mean 'SISCloseScreen'? [-Wimplicit-function-declaration] 10757 | SISDRICloseScreen(pScreen); | ^~~~~~~~~~~~~~~~~ | SISCloseScreen sis_driver.c: In function 'SiS_GetSetBIOSScratch': sis_driver.c:10981:75: error: passing argument 5 of 'pci_device_map_legacy' from incompatible pointer type [-Wincompatible-pointer-types] 10981 | (void) pci_device_map_legacy(SISPTR(pScrn)->PciInfo, 0, 0x2000, 1, &base); // HA HA HA MAGIC NUMBER | ^~~~~ | | | UChar ** {aka unsigned char **} In file included from /usr/include/xorg/xf86Pci.h:108: /usr/include/pciaccess.h:548:70: note: expected 'void **' but argument is of type 'UChar **' {aka 'unsigned char **'} 548 | pciaddr_t size, unsigned map_flags, void **addr); | ~~~~~~~^~~~ sis_driver.c: In function 'SISHotkeySwitchMode': sis_driver.c:11275:8: error: implicit declaration of function 'VidModeGetCurrentModeline' [-Wimplicit-function-declaration] 11275 | if(!VidModeGetCurrentModeline(pScrn->scrnIndex,&hkeymode,&dotClock)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ sis_driver.c:11278:8: error: implicit declaration of function 'VidModeGetFirstModeline' [-Wimplicit-function-declaration] 11278 | if(!VidModeGetFirstModeline(pScrn->scrnIndex,&hkeymode,&dotClock)) | ^~~~~~~~~~~~~~~~~~~~~~~ sis_driver.c:11282:12: error: implicit declaration of function 'VidModeGetDotClock' [-Wimplicit-function-declaration] 11282 | if((VidModeGetDotClock(pScrn->scrnIndex,dotclock)==dotClock)&&(VidModeGetModeValue(hkeymode,0)==hdisplay)) | ^~~~~~~~~~~~~~~~~~ sis_driver.c:11282:71: error: implicit declaration of function 'VidModeGetModeValue' [-Wimplicit-function-declaration] 11282 | if((VidModeGetDotClock(pScrn->scrnIndex,dotclock)==dotClock)&&(VidModeGetModeValue(hkeymode,0)==hdisplay)) | ^~~~~~~~~~~~~~~~~~~ sis_driver.c:11292:18: error: implicit declaration of function 'VidModeSwitchMode'; did you mean 'SISHotkeySwitchMode'? [-Wimplicit-function-declaration] 11292 | if(!VidModeSwitchMode(pScrn->scrnIndex,hkeymode)) | ^~~~~~~~~~~~~~~~~ | SISHotkeySwitchMode sis_driver.c:11299:12: error: implicit declaration of function 'VidModeGetNextModeline' [-Wimplicit-function-declaration] 11299 | } while(VidModeGetNextModeline(pScrn->scrnIndex,&hkeymode,&dotClock)); | ^~~~~~~~~~~~~~~~~~~~~~ sis_driver.c: In function 'SISPMEvent': sis_driver.c:11337:24: error: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 11337 | sleep(0); | ^~~~~ make[2]: *** [Makefile:568: sis_driver.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_cursor.lo sis_cursor.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_cursor.c -fPIC -DPIC -o .libs/sis_cursor.o In file included from sis.h:75, from sis_cursor.c:40: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_vga.lo sis_vga.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_vga.c -fPIC -DPIC -o .libs/sis_vga.o In file included from sis.h:75, from sis_vga.c:43: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o initextx.lo initextx.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c initextx.c -fPIC -DPIC -o .libs/initextx.o In file included from sis.h:75, from initextx.h:40, from initextx.c:38: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ initextx.c: In function 'SiSBuildBuiltInModeList': initextx.c:300:22: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 300 | sprintf(current->name, "%dx%d", pSiS->SiS_Pr->SiS_RefIndex[i].XRes, | ~~~~~~~^~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdint.h:26, from /usr/lib/gcc/x86_64-mageia-linux/14/include/stdint.h:9, from /usr/include/pixman-1/pixman.h:105, from /usr/include/xorg/compiler.h:76, from sis.h:67: /usr/include/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'const char *' 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ initextx.c:456:33: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 456 | strcpy(current->name, SiS_PlasmaMode[l].name); | ~~~~~~~^~~~~~ /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'const char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ initextx.c:539:28: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 539 | sprintf(current->name, "%dx%d", pSiS->SiS_Pr->CP_HDisplay[i], | ~~~~~~~^~~~~~ /usr/include/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'const char *' 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ initextx.c:300:34: warning: '%d' directive writing between 1 and 5 bytes into a region of size between 4 and 8 [-Wformat-overflow=] 300 | sprintf(current->name, "%dx%d", pSiS->SiS_Pr->SiS_RefIndex[i].XRes, | ^~ initextx.c:300:30: note: directive argument in the range [0, 65535] 300 | sprintf(current->name, "%dx%d", pSiS->SiS_Pr->SiS_RefIndex[i].XRes, | ^~~~~~~ In file included from /usr/include/stdio.h:980, from /usr/include/xorg/os.h:89, from /usr/include/xorg/misc.h:119, from /usr/include/xorg/xf86Pci.h:107, from sis.h:68: In function 'sprintf', inlined from 'SiSBuildBuiltInModeList' at initextx.c:300:7: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 4 and 12 bytes into a destination of size 10 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_opt.lo sis_opt.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_opt.c -fPIC -DPIC -o .libs/sis_opt.o In file included from sis.h:75, from sis_opt.c:38: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o sis_video.lo sis_video.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -DSIS_USE_EXA -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c sis_video.c -fPIC -DPIC -o .libs/sis_video.o In file included from sis.h:75, from sis_video.c:107: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp] 50 | #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." | ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/xf86-video-sis-0.9.1/src' make[1]: *** [Makefile:466: all-recursive] Error 1 make: *** [Makefile:398: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.01fTcD (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.01fTcD (%build) I: [iurt_root_command] ERROR: chroot