LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-23-2007, 03:39 PM   #1
gdblackthorn
LQ Newbie
 
Registered: May 2007
Posts: 11

Rep: Reputation: 0
ALSA 1.0.14rc4 SUSE 10.2 version.h does not exist


I am running a new install of Suse 10.2. Since I could not get my sound working, I decided to update my ALSA driver to version 1.0.14rc4. When I run the
./configure I get the following:
Quote:
gdblackthorn@linux-kkca:~/builds> dir
total 8
drwxr-xr-x 26 gdblackthorn users 4096 2007-05-02 01:02 alsa-driver-1.0.14rc4
gdblackthorn@linux-kkca:~/builds> cd alsa-driver-1.0.14rc4
gdblackthorn@linux-kkca:~/builds/alsa-driver-1.0.14rc4> ls
acinclude.m4 CARDS-STATUS drivers INSTALL mips ppc snddevices.in synth utils
aclocal.m4 configure FAQ install-sh misc README soc test version
acore configure.in hal2 isa modules Rules.make sound TODO version.in
alsa-kernel COPYING hgcompile kconfig-vers parisc Rules.make1 sparc toplevel.config WARNING
aoa cvscompile i2c Makefile pci scripts support toplevel.config.in
arm doc include Makefile.conf.in pcmcia snddevices SUPPORTED_KERNELS usb
gdblackthorn@linux-kkca:~/builds/alsa-driver-1.0.14rc4> ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/gdblackthorn/builds/alsa-driver-1.0.14rc4
checking cross compile...
checking for directory with kernel source... /lib/modules/2.6.18.2-34-default/source
checking for directory with kernel build... /lib/modules/2.6.18.2-34-default/build
checking for kernel linux/version.h... no
The file /lib/modules/2.6.18.2-34-default/source/include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel

sources (default is /lib/modules/2.6.18.2-34-default/source).
gdblackthorn@linux-kkca:~/builds/alsa-driver-1.0.14rc4>
I read the install notes:

Quote:
* Kernel Source Tree
On 2.4/2.6 kernels, the location of the kernel source tree is
parsed automatilly from the running kernel.
If it's not in the standard place, specify the path via
--with-kernel=<kernel_directory>.
On 2.6 kernels, the build directory has to be given via
--with-build=<kernel_build_dir> option additionally, too.

and I can tell that the problem is where I highlighted it in blue concerning the --with-kernel=dir option and from what research I have done believe that there will probably be a problem with the --with-build=<kernel_build also.

I have been doing some research where I could find it but much of what I have found on this same issue was resolved without an explanation on what was done. I have kernel 2.6.18 which is using ALSA 1.0.13. There has been significant changes to the driver that I need in the later 1.0.14rc4 version, so I think it necessary to install it.

I would appreciate any help I can in finding the proper directory to point this to. I am new to Linux so I would appreciate as clear an explanation as possible.

edit: oh, I noticed that some people ran a script to post the required info needed to determine what the problem might be. I will be glad to do that if needed. Please just let me know the best way to run the script. I am sure it is simple, but as I am new I don't want to mess anything up.

Thanks

Last edited by gdblackthorn; 05-23-2007 at 03:56 PM.
 
Old 05-23-2007, 04:02 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
even if you do not intend to rebuild your kernel you need to get the kernel source and at least run make oldconfig and make (no need to install anything) because alsa-driver needs the full kernel source to build against...
 
Old 05-23-2007, 05:14 PM   #3
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Hi,

Just to clarify, at the minimum, Suse needs the kernel-source package and the kernel-headers package installed for a program to build its modules.

Sam
 
Old 05-23-2007, 05:56 PM   #4
gdblackthorn
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
oh, I can't believe I forgot to install the source. I went into Yast and installed the source for 2.6.18.2-34 and ./configure ran all the way through. I am running make now. I left it at default so it is running all of the drivers. I guess maybe I should have put in the one I needed.

So samstar is the kernel-headers package included in the source package or in its dependencies?

...and Okie I need to run make oldconfig? Since I am already running make did I mess something up?

edit: ALSA modules were successfully compiled!!!

So, before I go any further and run make install please recommend what I should do now.

Last edited by gdblackthorn; 05-23-2007 at 06:29 PM.
 
Old 05-23-2007, 11:38 PM   #5
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
No, kernel-headers is a separate package to install so that you don't have to use the 'make' command in your source tree and modify it.
 
Old 05-24-2007, 09:35 AM   #6
gdblackthorn
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
thanks samstar!

I was still wondering if it is necessary to run make oldconfig before I run make install.

As I mentioned before my ALSA modules were successfully compiled!!!

I will wait to run make install until I get some more info on make oldconfig.

Any assistance would be much appreciated!
 
Old 05-24-2007, 10:29 AM   #7
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by gdblackthorn
I will wait to run make install until I get some more info on make oldconfig.
if you don't actually need to rebuild your kernel dont do it, i am sure SuSE has some specific patches that are not included in a plain jane vanilla kernel so just downloading kernel source and installing will cause some things to possibly break, but dont just delete the kernel source as sometimes in order to compile certain packages it will require the kernel source to build against (as a reference)...

what make oldconfig does is setup the kernel source to have the same configuration as the kernel presently installed & running, also you can run make menuconfig and scroll to the bottom and load an alternate config file, there is a pretty good README and other documentation in the kernel source - i suggest you read it (twice even) as one day you may need to rebuild & install a kernel, this is good knowledge that never hurts to know...

Last edited by Okie; 05-24-2007 at 10:30 AM.
 
Old 05-24-2007, 03:41 PM   #8
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Quote:
Originally Posted by Okie
if you don't actually need to rebuild your kernel dont do it, i am sure SuSE has some specific patches that are not included in a plain jane vanilla kernel so just downloading kernel source and installing will cause some things to possibly break,
Yes, suse distributes an installable source, but they recommend not to mess with the source at all (using make, make oldconfig, any of that). That's what the kernel-headers package is for. Just install that, and don't make any changes to the source.

You can revert the source to its original state by deleting the source code's directory and re-installing the kernel-source package from yast.

Sam
 
Old 05-24-2007, 06:41 PM   #9
gdblackthorn
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Now I am confused...

I have Kernel 2.6.18.2-34 and am installing ALSA driver version 1.0.14rc4. I guess since ALSA is part of the Kernel that it makes changes to the kernel when the updates are made to it?

I understood that when I ran /configure that the 1.0.14rc4 Alsa update was being changed to work with my 2.6.18 kernel. I thought that when I ran "make" that it put together the driver packages I would need to work with my present kernel.

I thought that "make install" would just install those packages.

Now my confusion is pretty much complete. I guess I understood something wrong in what I was reading.

So you are saying that when I run make that my kernel is being modified?

If you could explain this better or refer me to something specific that I can read to explain this I would greatly appreciate it.

Thanks


...back to the books!
 
Old 05-24-2007, 07:00 PM   #10
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
When I was saying 'make' or 'make oldconfig' I was talking about doing so inside the kernel sources. I was referring to Okie's advice. That you don't need to rebuild the kernel source for Alsa to detect 'version.h'. You just need the kernel-source, and the kernel-headers packages for upgrading your Alsa. Then just install Alsa how you planned to.

Sam
 
Old 05-25-2007, 02:41 AM   #11
gdblackthorn
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Ohhhhhhhhhhhhh, sorry samstar... I get it now
Sorry I was so thick there, I had it all confused there for a bit! Thanks for straightening it out for me!

I will continue with my install then and post how it goes!

Thanks again for the help!

I followed the ASLA install instructions as closely as I could. I got down to where I am supposed to run modprobe snd-card.

Well, I ran modprobe -v snd-riptide:

I wanted to know what it was doing so I used the -v (verbose) option and it seemed to do nothing. Do you know what directory I would have to be in to run this?

I understand that modprobe is a program that is used to add and remove modules from the Linux Kernel. Does this mean that after it runs successfully that I should be able to see the sound driver in YAST? It has never shown up there, nor is it listed in the add list.

Note: I know it is built into the kernel and the updates in ALSA should be the ones to fix my problem. I am really just using this thread to determine how to install the ALSA update properly. I already have another thread started discussing other problems concerning the sound issue in general.

This Linux learning curve has really got me flummoxed!

Any help would be most welcome!

Last edited by gdblackthorn; 05-25-2007 at 02:02 PM.
 
Old 05-25-2007, 04:33 PM   #12
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
I'm assuming you know that modprobe has to be run as root. Otherwise, modprobe is pretty much silent unless it has a problem or an error occurs. Check your module list (run 'lsmod') to see if the module is installed and in the list.
 
Old 05-25-2007, 05:11 PM   #13
gdblackthorn
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks Sam!

I ran alsaconf and it tested to see if I had sound, but there was none.

I found that when I rebooted a second time that I had an icon in my tray! I removed the mute on the sound and turned up the volume, so I am further than I have ever gotten!

When I try to play a music cd, it seems to play fine as far as watching the screen goes, but I get no sound. The software is actually going through the motions of playing sound, though I do not hear it. I made sure that the cd sound was turned up too!

Now this has got to be something simple! I will check out a few things and post what I find!
 
Old 05-25-2007, 06:32 PM   #14
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Ok, use alsamixer at the console to get the best control over your volume levels. Use <tab> key to switch between playback, capture, and 'all', and use <esc> key to . . . guess what.

Sam
 
  


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
Gentoo emerge is trying do download an old version that doesn't exist anymore svenwinkle Linux - Distributions 3 03-21-2007 10:10 PM
Linux doesn't exist. Everyone knows Linux is an unlicensed version of Unix Megamieuwsel General 29 07-31-2005 09:40 PM
ALSA devices dont exist? SciYro Linux - General 8 06-19-2004 11:08 AM
What email programs exist for any version of linux? addie Linux - Software 6 03-24-2004 05:23 PM
does a linux version exist for a 3Com Palm IV? Zamb Linux - General 3 01-24-2001 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:57 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