After trying to build just about all the versions of this driver I could find online, I finally found this one that seemed promising. configure script completes perfectly but when I run make the compile fails. Here is some output:
./configure --prefix=/usr --disable-static;
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for 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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /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 whether make supports nested variables... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /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 i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
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... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt 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... yes
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) 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 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 >= 2.1 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 xaa.h usability... no
checking xaa.h presence... no
checking for xaa.h... no
checking whether to include XAA support... no
checking whether XSERVER_LIBPCIACCESS is declared... yes
checking for pciaccess >= 0.12.901... yes
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: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
So I run make:
make all-recursive
make[1]: Entering directory '/home/jamie/Downloads/sisimedia.stuff/xf86-video-sis671'
Making all in src
make[2]: Entering directory '/home/jamie/Downloads/sisimedia.stuff/xf86-video-sis671/src'
CC init301.lo
init301.c: In function ‘SiS_SetChrontelGPIO’:
init301.c:956:15: warning: implicit declaration of function ‘pciReadLong’ [-Wimplicit-function-declaration]
acpibase = pciReadLong(0x00000800, 0x74);
^
init301.c: In function ‘SiS_SetCRT2FIFO_300’:
init301.c:5504:10: warning: implicit declaration of function ‘sis_pci_read_host_bridge_u32’ [-Wimplicit-function-declaration]
pci50 = sis_pci_read_host_bridge_u32(0x50);
^
init301.c: At top level:
init301.c:8195:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
SiS_ModifyVB(struct SiS_Private *SiS_Pr)
^
CC init.lo
init.c: In function ‘SiS_SetCRT1FIFO_630’:
init.c:2634:12: warning: implicit declaration of function ‘sis_pci_read_host_bridge_u32’ [-Wimplicit-function-declaration]
templ = sis_pci_read_host_bridge_u32(0x50);
^
init.c:2659:4: warning: implicit declaration of function ‘pciWriteLong’ [-Wimplicit-function-declaration]
pciWriteLong(0x00000000, 0x50, templ);
^
init.c: In function ‘SiS_Handle760’:
init.c:3312:15: warning: implicit declaration of function ‘pciReadWord’ [-Wimplicit-function-declaration]
somebase = pciReadWord(0x00001000, 0x74);
^
init.c:3333:4: warning: implicit declaration of function ‘pciWriteByte’ [-Wimplicit-function-declaration]
pciWriteByte(0x00000000, 0x7e, temp1);
^
CC initextx.lo
initextx.c: In function ‘SiSBuildBuiltInModeList’:
initextx.c:300:15: warning: passing argument 1 of ‘sprintf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
sprintf(current->name, "%dx%d", pSiS->SiS_Pr->SiS_RefIndex[i].XRes,
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/i686-linux-gnu/5/include/stdint.h:9,
from /usr/include/pixman-1/pixman.h:105,
from /usr/include/xorg/compiler.h:76,
from sis.h:67,
from initextx.h:40,
from initextx.c:38:
/usr/include/i386-linux-gnu/bits/stdio2.h:31:1: note: expected ‘char * restrict’ but argument is of type ‘const char *’
__NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...))
^
initextx.c:456:12: warning: passing argument 1 of ‘strcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
strcpy(current->name, SiS_PlasmaMode[l].name);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/i686-linux-gnu/5/include/stdint.h:9,
from /usr/include/pixman-1/pixman.h:105,
from /usr/include/xorg/compiler.h:76,
from sis.h:67,
from initextx.h:40,
from initextx.c:38:
/usr/include/i386-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘const char *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
initextx.c:539:14: warning: passing argument 1 of ‘sprintf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
sprintf(current->name, "%dx%d", pSiS->SiS_Pr->CP_HDisplay[i],
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/i686-linux-gnu/5/include/stdint.h:9,
from /usr/include/pixman-1/pixman.h:105,
from /usr/include/xorg/compiler.h:76,
from sis.h:67,
from initextx.h:40,
from initextx.c:38:
/usr/include/i386-linux-gnu/bits/stdio2.h:31:1: note: expected ‘char * restrict’ but argument is of type ‘const char *’
__NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...))
^
CC sis300_accel.lo
CC sis310_accel.lo
CC sis6326_video.lo
CC sis_3daccel.lo
CC sis_accel.lo
sis_accel.c: In function ‘SiSAccelInit’:
sis_accel.c:669:14: warning: implicit declaration of function ‘exaGetVersion’ [-Wimplicit-function-declaration]
if(exaGetVersion() <= EXA_MAKE_VERSION(0, 1, 0)) {
^
sis_accel.c:669:33: warning: implicit declaration of function ‘EXA_MAKE_VERSION’ [-Wimplicit-function-declaration]
if(exaGetVersion() <= EXA_MAKE_VERSION(0, 1, 0)) {
^
CC sis_cursor.lo
CC sis_dac.lo
sis_dac.c: In function ‘SiSRestore’:
sis_dac.c:485:5: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
usleep(10000);
^
sis_dac.c: In function ‘SiS300Save’:
sis_dac.c:547:31: warning: implicit declaration of function ‘sis_pci_read_host_bridge_u32’ [-Wimplicit-function-declaration]
sisReg->sisRegsPCI50 = sis_pci_read_host_bridge_u32(0x50);
^
sis_dac.c: In function ‘SiS300Restore’:
sis_dac.c:700:8: warning: implicit declaration of function ‘pciWriteLong’ [-Wimplicit-function-declaration]
pciWriteLong(0x00000000, 0x50, temp1);
^
CC sis_dga.lo
CC sis_driver.lo
sis_driver.c: In function ‘SISFreeRec’:
sis_driver.c:739:12: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
free(pScrn->currentMode->name);
^
In file included from /usr/include/xorg/misc.h:153:0,
from /usr/include/xorg/xf86Pci.h:107,
from sis.h:68,
from sis_driver.c:79:
/usr/include/stdlib.h:483:13: note: expected ‘void *’ but argument is of type ‘const char *’
extern void free (void *__ptr) __THROW;
^
sis_driver.c: In function ‘SiS_CheckKernelFB’:
sis_driver.c:1018:12: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration]
if(!ioctl(fd, SISFB_GET_INFO_SIZE, &sisfbinfosize)) {
^
sis_driver.c:1176:7: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
close (fd);
^
sis_driver.c: In function ‘SiSDuplicateMode’:
sis_driver.c:2843:14: warning: passing argument 1 of ‘strcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
strcpy(dest->name, source->name);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/i686-linux-gnu/5/include/stdint.h:9,
from /usr/include/pixman-1/pixman.h:105,
from /usr/include/xorg/compiler.h:76,
from sis.h:67,
from sis_driver.c:79:
/usr/include/i386-linux-gnu/bits/string3.h:108:1: note: expected ‘char * restrict’ but argument is of type ‘const char *’
__NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
^
sis_driver.c: In function ‘SISPreInit’:
sis_driver.c:3622:7: warning: implicit declaration of function ‘sis_pci_read_host_bridge_u32’ [-Wimplicit-function-declaration]
if(sis_pci_read_host_bridge_u32(0x00) == 0x07301039) {
^
sis_driver.c:5139:3: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
usleep(10000);
^
sis_driver.c: In function ‘SISBlockHandler’:
sis_driver.c:8782:5: error: too few arguments to function ‘pScreen->BlockHandler’
(*pScreen->BlockHandler) (pScreen, pTimeout);
^
sis_driver.c:8783:27: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
pScreen->BlockHandler = SISBlockHandler;
^
sis_driver.c: In function ‘SISScreenInit’:
sis_driver.c:9534:35: warning: implicit declaration of function ‘SISDRIScreenInit’ [-Wimplicit-function-declaration]
pSiS->directRenderingEnabled = SISDRIScreenInit(pScreen);
^
sis_driver.c:9860:42: warning: implicit declaration of function ‘SISDRIFinishScreenInit’ [-Wimplicit-function-declaration]
pSiS->directRenderingEnabled = SISDRIFinishScreenInit(pScreen);
^
sis_driver.c:9915:27: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
pScreen->BlockHandler = SISBlockHandler;
^
sis_driver.c: In function ‘SISLeaveVT’:
sis_driver.c:10678:35: warning: passing argument 1 of ‘xf86ScreenToScrn’ from incompatible pointer type [-Wincompatible-pointer-types]
pScreen = xf86ScreenToScrn(pScrn);
^
In file included from sis.h:74:0,
from sis_driver.c:79:
/usr/include/xorg/xf86.h:417:30: note: expected ‘ScreenPtr {aka struct _Screen *}’ but argument is of type ‘ScrnInfoPtr {aka struct _ScrnInfoRec *}’
extern _X_EXPORT ScrnInfoPtr xf86ScreenToScrn(ScreenPtr pScreen);
^
sis_driver.c:10678:16: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
pScreen = xf86ScreenToScrn(pScrn);
^
sis_driver.c: In function ‘SISCloseScreen’:
sis_driver.c:10762:8: warning: implicit declaration of function ‘SISDRICloseScreen’ [-Wimplicit-function-declaration]
SISDRICloseScreen(pScreen);
^
sis_driver.c: In function ‘SiS_GetSetBIOSScratch’:
sis_driver.c:10986:75: warning: passing argument 5 of ‘pci_device_map_legacy’ from incompatible pointer type [-Wincompatible-pointer-types]
(void) pci_device_map_legacy(SISPTR(pScrn)->PciInfo, 0, 0x2000, 1, &base); // HA HA HA MAGIC NUMBER
^
In file included from /usr/include/xorg/xf86Pci.h:108:0,
from sis.h:68,
from sis_driver.c:79:
/usr/include/pciaccess.h:533:5: note: expected ‘void **’ but argument is of type ‘UChar ** {aka unsigned char **}’
int pci_device_map_legacy(struct pci_device *dev, pciaddr_t base,
^
sis_driver.c: In function ‘SISHotkeySwitchMode’:
sis_driver.c:11280:8: warning: implicit declaration of function ‘VidModeGetCurrentModeline’ [-Wimplicit-function-declaration]
if(!VidModeGetCurrentModeline(pScrn->scrnIndex,&hkeymode,&dotClock))
^
sis_driver.c:11283:8: warning: implicit declaration of function ‘VidModeGetFirstModeline’ [-Wimplicit-function-declaration]
if(!VidModeGetFirstModeline(pScrn->scrnIndex,&hkeymode,&dotClock))
^
sis_driver.c:11287:12: warning: implicit declaration of function ‘VidModeGetDotClock’ [-Wimplicit-function-declaration]
if((VidModeGetDotClock(pScrn->scrnIndex,dotclock)==dotClock)&&(VidModeGetModeValue(hkeymode,0)==hdisplay))
^
sis_driver.c:11287:71: warning: implicit declaration of function ‘VidModeGetModeValue’ [-Wimplicit-function-declaration]
if((VidModeGetDotClock(pScrn->scrnIndex,dotclock)==dotClock)&&(VidModeGetModeValue(hkeymode,0)==hdisplay))
^
sis_driver.c:11297:11: warning: implicit declaration of function ‘VidModeSwitchMode’ [-Wimplicit-function-declaration]
if(!VidModeSwitchMode(pScrn->scrnIndex,hkeymode))
^
sis_driver.c:11304:12: warning: implicit declaration of function ‘VidModeGetNextModeline’ [-Wimplicit-function-declaration]
} while(VidModeGetNextModeline(pScrn->scrnIndex,&hkeymode,&dotClock));
^
sis_driver.c: In function ‘SISPMEvent’:
sis_driver.c:11342:17: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration]
sleep(0);
^
Makefile:547: recipe for target 'sis_driver.lo' failed
make[2]: *** [sis_driver.lo] Error 1
make[2]: Leaving directory '/home/jamie/Downloads/sisimedia.stuff/xf86-video-sis671/src'
Makefile:444: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/jamie/Downloads/sisimedia.stuff/xf86-video-sis671'
Makefile:376: recipe for target 'all' failed
make: *** [all] Error 2`sis_driver.c:8782:5: error: too few arguments to function ‘pScreen->BlockHandler’
which fails with ; sis_driver.c:8782:5: error: too few arguments to function ‘pScreen->BlockHandler’. I am not a C programmer (although I do code in python so I get the basic principle of what I am reading in the code, kinda lol :p)
I am running an x86 (32bit) arch, Linux Mint 18.3, with
After trying to build just about all the versions of this driver I could find online, I finally found this one that seemed promising.
configure
script completes perfectly but when I runmake
the compile fails. Here is some output:./configure --prefix=/usr --disable-static
;So I run
make
:which fails with ;
sis_driver.c:8782:5: error: too few arguments to function ‘pScreen->BlockHandler’
. I am not a C programmer (although I do code in python so I get the basic principle of what I am reading in the code, kinda lol :p) I am running an x86 (32bit) arch, Linux Mint 18.3, withgraphics card. I fear this will only ever work with x86_64 arch as all the others are for that arch. Any help? Ideas? Fixes?
If you need any further info I will be more than happy to provide this. Cheers :)