Article 6GA0D Errors while trying to install SVGAlib library.

Errors while trying to install SVGAlib library.

by
Bbmr
from LinuxQuestions.org on (#6GA0D)
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 i__svgalib_takevtcontroli:
/home/svgalib-1.4.3/src/libvga.h:361:29: error: iSIGUNUSEDi 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 iSVGALIB_ACQUIRE_SIGi
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 iSVGALIB_ACQUIRE_SIGi
1702 | newvtmode.acqsig = SVGALIB_ACQUIRE_SIG; /* in the kernel sources, so I guess */
| ^~~~~~~~~~~~~~~~~~~
/home/svgalib-1.4.3/src/vga.c: In function ivga_screenoni:
/home/svgalib-1.4.3/src/vga.c:2731:9: warning: variable itmpi set but not used [-Wunused-but-set-variable]
2731 | int tmp = 0;
| ^~~
/home/svgalib-1.4.3/src/vga.c: In function iprocess_optioni:
/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 iML_GETINTi
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 iML_GETINTi
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 iML_GETINTi
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 iML_GETINTi
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 iML_GETINTi
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 iML_GETINTi
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 iML_GETINTi
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 iML_GETINTi
3926 | ML_GETINT(VTotal);
| ^~~~~~~~~
At top level:
/home/svgalib-1.4.3/src/vga.c:318:12: warning: irelease_acquirei 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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments