If some developer or someone that has some know-how in compiling C stuff want to collaborate and help with fixing build erros and warnings, here the steps on how to build the driver:
sudo apt-get -y install build-essential xorg-dev autoconf automake git libtool-bin xutils-dev inxi libpciaccess-dev
git clone https://github.com/ace2nutzer/xf86-video-sis-imedia.git cd xf86-video-sis-imedia ./autogen.sh autoreconf automake ./configure --prefix=/usr make -j2
The source code is most of the time up-to-date with my local source code.
As you can see i’ve already ported some stuff, but there are still some errors and warning to fix, but not that much anymore.
open a new terminal and:
cd /usr/include grep -rnw -e "ScreenInit"
in order to find some useful headers or how the functions are declared.
This helped me already a lot.
Actually i’m stuck at this warning:
sis_driver.c: In function ‘SISProbe’: sis_driver.c:559:30: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] pScrn->ScreenInit = SISScreenInit;
GCC doesn’t tell me something like “expected ‘ uint32’ but argument is of type ‘int’”…
so it’s hard to understand for me.
Also i can’t find anything how “ScreenInit” is declared.