LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-11-2023, 07:37 AM   #1
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Rep: Reputation: 0
Question Errors while trying to install SVGAlib library.


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.

Last edited by Bbmr; 11-11-2023 at 07:38 AM.
 
Old 11-11-2023, 08:54 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,880
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
It ceased to work in the past millenium. I suggest using SDL instead.
 
Old 11-11-2023, 09:28 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,914

Rep: Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558
Quote:
Originally Posted by Bbmr View Post
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.
...
I am using Slackware 15 and gcc version 11.2.0.
You already have svgalib-1.9.25 installed in your Slackware 15. Why do you want to install version 1.4.3 from year 2001?
 
Old 11-11-2023, 10:08 AM   #4
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Petri Kaukasoina View Post
You already have svgalib-1.9.25 installed in your Slackware 15. Why do you want to install version 1.4.3 from year 2001?
Because I didn't know that...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm trying to install a library required by nvidia TensorRt. The name of the library is python3-libnvinfer beefshepherd Linux - Software 9 08-22-2019 01:43 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM
how to install svgalib???? pagla_ghoda Linux - Software 4 04-22-2006 03:59 AM
Svgalib and Svgalib-devel on FC1 Michele Spinolo Fedora 1 11-11-2004 09:56 AM
How do i install SVGAlib in RH Fedora? svoltmer Linux - Software 1 05-01-2004 08:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration