Hello. I am trying to install the SVGAlib library for Linux. I have downloaded the source of the 1.4.3 version from the SVGAlib's website. Nonetheless, while running the command "
make install" in order to compile, several errors occured (here is the result of "
make install 2> errors"):
Quote:
In file included from /home/svgalib-1.4.3/src/driver.h:16,
from /home/svgalib-1.4.3/src/vga.c:34:
/home/svgalib-1.4.3/src/vga.c: In function ‘__svgalib_takevtcontrol’:
/home/svgalib-1.4.3/src/libvga.h:361:29: error: ‘SIGUNUSED’ undeclared (first use in this function)
361 | #define SVGALIB_ACQUIRE_SIG SIGUNUSED
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:1702:24: note: in expansion of macro ‘SVGALIB_ACQUIRE_SIG’
1702 | newvtmode.acqsig = SVGALIB_ACQUIRE_SIG; /* in the kernel sources, so I guess */
| ^~~~~~~~~~~~~~~~~~~
/home/svgalib-1.4.3/src/libvga.h:361:29: note: each undeclared identifier is reported only once for each function it appears in
361 | #define SVGALIB_ACQUIRE_SIG SIGUNUSED
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:1702:24: note: in expansion of macro ‘SVGALIB_ACQUIRE_SIG’
1702 | newvtmode.acqsig = SVGALIB_ACQUIRE_SIG; /* in the kernel sources, so I guess */
| ^~~~~~~~~~~~~~~~~~~
/home/svgalib-1.4.3/src/vga.c: In function ‘vga_screenon’:
/home/svgalib-1.4.3/src/vga.c:2731:9: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]
2731 | int tmp = 0;
| ^~~
/home/svgalib-1.4.3/src/vga.c: In function ‘process_option’:
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "HDisplay" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3919:13: note: in expansion of macro ‘ML_GETINT’
3919 | ML_GETINT(HDisplay);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "HSyncStart" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3920:13: note: in expansion of macro ‘ML_GETINT’
3920 | ML_GETINT(HSyncStart);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "HSyncEnd" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3921:13: note: in expansion of macro ‘ML_GETINT’
3921 | ML_GETINT(HSyncEnd);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "HTotal" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3922:13: note: in expansion of macro ‘ML_GETINT’
3922 | ML_GETINT(HTotal);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "VDisplay" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3923:13: note: in expansion of macro ‘ML_GETINT’
3923 | ML_GETINT(VDisplay);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "VSyncStart" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3924:13: note: in expansion of macro ‘ML_GETINT’
3924 | ML_GETINT(VSyncStart);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "VSyncEnd" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3925:13: note: in expansion of macro ‘ML_GETINT’
3925 | ML_GETINT(VSyncEnd);
| ^~~~~~~~~
/home/svgalib-1.4.3/src/vga.c:3917:12: error: pasting "." and "VTotal" does not give a valid preprocessing token
3917 | mmt.##x = atoi(ptr);
| ^
/home/svgalib-1.4.3/src/vga.c:3926:13: note: in expansion of macro ‘ML_GETINT’
3926 | ML_GETINT(VTotal);
| ^~~~~~~~~
At top level:
/home/svgalib-1.4.3/src/vga.c:318:12: warning: ‘release_acquire’ defined but not used [-Wunused-variable]
318 | static int release_acquire=0;
| ^~~~~~~~~~~~~~~
make[1]: *** [/home/svgalib-1.4.3/src/Makefile:409: vga.o] Error 1
make: *** [Makefile:403: sharedlib/libvga.so.1.4.3] Error 2
|
I am using Slackware 15 and gcc version 11.2.0.