LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-16-2008, 03:01 AM   #1
L-28C
Member
 
Registered: Oct 2006
Posts: 38

Rep: Reputation: 0
Can't install svgalib


Hello everyone!

Svgalib isn't installing on Slackware:

Quote:
/kernel/svgalib_helper CLASS_CFLAGS= modules
make[2]: Entering directory `/usr/src/linux-2.6.24.5'
CC [M] /home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.o
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:1:26: error: linux/config.h: No such file or directory
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:20:35: error: linux/devfs_fs_kernel.h: No such file or directory
In file included from /home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:42:
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h: In function 'devfs_unregister_chrdev':
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h:80: error: void value not ignored as it ought to be
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c: In function 'svgalib_helper_ioctl':
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:358: error: 'SA_SHIRQ' undeclared (first use in this function)
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:358: error: (Each undeclared identifier is reported only once
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:358: error: for each function it appears in.)
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:358: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c: In function 'svgalib_helper_open':
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:446: error: 'SA_SHIRQ' undeclared (first use in this function)
/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.c:446: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make[3]: *** [/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper/main.o] Error 1
make[2]: *** [_module_/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.24.5'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/leo/Desktop/svgalib-1.9.25/kernel/svgalib_helper'
make: *** [installmodule] Error 2
I tried manually downloading the two missing files, config.h and devfs_fs_kernel.h, but the latter requires more files, and those files require even more files... What's the package that these files belong to?

Thanks in advance.

PS: Just in case this can't be solved, is there another similar library?
 
Old 06-16-2008, 05:02 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
From these messages, it seems like this library can't be compiled with recent kernels - at some point in the past, devfs_fs_kernel.h and config.h were removed. So, it's better to look for binary packages, but I guess you already looked for them... I gave a look and it seems difficult to find them for slackware.
I guessed the problem but not the solution... so, what kind of library are you looking for? What requisites?
 
Old 06-16-2008, 08:48 PM   #3
btbx
Member
 
Registered: Jun 2007
Posts: 67

Rep: Reputation: 15
Smile

The main problem is compiling svgalib-helper module for up-to-date kernels.

I also face similar problems with up-to-date 2.6.2.... Kernels.

There is a Kernel compatibility patch available for the svgalib source code (for svgalib helper directory).

There is a patch from Gentoo project. I hope you can use it.

http://tldp.etf.bg.ac.yu/gentooporta...svgalib/files/

After patching the source code, perhaps there will be warning during compile time. Just ignore it and try to use the new svgalib-helper module (using insmod or modprobe command).

Last edited by btbx; 06-16-2008 at 09:16 PM.
 
  


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
cannot install svgalib: kernel too old rdx Slackware 14 12-17-2007 06:36 AM
svgalib jam222 Slackware 8 04-25-2007 11:03 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 > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 PM.

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