Thread: [Alsa-user] RedHat 7.1 Installation Gone Bad
Brought to you by:
perex
From: Greg B. <761...@co...> - 2001-05-31 13:35:49
|
Attempting to install driver-0.9.0beta4 onto RedHat 7.1. Run ./configure and get many error messages telling me that it cannot fin= d "version.h" or various other ".h" files. I look into the "configure" fil= e and find that the location of the include directory is hard-coded as "/(kernel directory)/include/linux". My kernel directory (which I specif= y on the command line) is "/usr/src/linux-2.4.2", and my include directory = is "/usr/src/linux-2.4.2/include", so configure fails because it looks in th= e wrong place for the ".h" files. There is a command-line parameter for specifying the include directory, but it doesn't work; is not used as far= as I can tell from the "configure" source listing. I try two fixes: (1) I hack the "configure" file to actually use the command line parameter for the include directory. This works but then "make" fails (see below). (2) I copy all of the ".h" files to a newly created include directory, exactly where configure expects it to be. Thi= s also works, but then "make" fails (again, see below). "Make" fails, in either case, because it cannot find "/usr/src/linux/include/linux/version.h, needed for sound.o". I have studied the Makefile to find out who is looking in this place for this fi= le (and why), but have thus far had no success. Many of the ".c" files in "/usr/src/alsa/alsa-driver-0.9.0beta4/kernel" have "#include <include/(filename).h>" or "#include <linux/(filename).h>" statements in them, and they all seem to work okay -- except for this one, whichever on= e it is. Some questions: 1) Am I having these problems because I am using the 0.9.0beta4 version;= and if so would going back to the 0.5.11 version fix the problem? 2) Why does one, and only one, file look in "/usr/src/linux/include/linu= x" (which doesn't exist) for "version.h", when all of the other files look i= n "/usr/src/linux-2.4.2/include/linux"? 3) Otherwise, what's wrong and what can I do to fix it? Many thanks, Greg Berchin 761...@co... |
From: Tyler, M. <Mar...@ds...> - 2001-05-31 23:44:38
|
> Attempting to install driver-0.9.0beta4 onto RedHat 7.1. > Run ./configure and get many error messages telling me that it cannot find > "version.h" or various other ".h" files. I look into the "configure" file > and find that the location of the include directory is hard-coded as > "/(kernel directory)/include/linux". My kernel directory (which I specify > on the command line) is "/usr/src/linux-2.4.2", and my include directory is > "/usr/src/linux-2.4.2/include", so configure fails because it looks in the > wrong place for the ".h" files. There is a command-line parameter for > specifying the include directory, but it doesn't work; is not used as > far as I can tell from the "configure" source listing. I had this problem at first. What I had to do was to make a symlink in the /usr/src directory to point to the current kernel tree. cd /usr/src ln -s linux-2.4.2 linux # The directory you link to should be the current kernel This was enough to keep configure and make happy. Note that you have to remember to change the symlink if you put in a new kernel. Mark |
From: Greg B. <761...@co...> - 2001-06-01 19:44:17
|
Mark Tyler <Mar...@ds...> wrote: >What I had to do was to make a symlink in the /usr/src directory to = >point to the current kernel tree. Now why didn't I think of that? (He says, sheepishly.) Thank you. = Greg Berchin |