On Tue, 10 Feb 2004 11:14:15 +1300, you wrote:

>Kernel source is installed, thanks, at 
>/usr/src/linux-2.4.22/include/linux/, but where can I find the required 
>version.h?
Kernel source should be installed as a subdirectory of /usr/src, and
not lower down.

My copy of 2.4.24 is 290MB in size, including all compiled elements.
What does du -sk /usr/src/linux-2.4.22 return on your system?
>
>There is no /boot/vmlinuz.version.h, as suggested in 
>/usr/include/linux/version.h.
...which on my machine contains
[ src]# more /usr/include/linux/version.h
#define UTS_RELEASE "2.4.20"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

There is no include there for /boot/vmlinuz.version.h, a file I have
_never_ seen.

What i would do, seeing as you've got linux-2.4.22.tar.bz2...

1. rm -rf /usr/src/linux-2.4.22
2. cd /usr/src
3. tar xvfj /usr/src/RPM/SOURCES/linux-2.4.22.tar.bz2
4. cd linux-2.4.22
5. make xconfig ( just save and exit )
6. make dep
7. make bzImage
8. make modules
9. make modules_install
10. make install

Now reboot and manually select your new kernel to see if it boots. If
all is good, adjust your /etc/grub.conf to set it to the default
kernel ( numbering starts at 0, not 1)

Good luck.

steve

>
>I can't compile the modem driver without a version.h, it seems.
>
>Douglas.
>
>
>Steve Holdoway wrote:
>
>>On Tue, 10 Feb 2004 09:23:29 +1300, you wrote:
>>
>>  
>>
>>>Encouraged by a posting on alt.os.linux.mandrake, I took another crack 
>>>at my downloaded RPM file, with the following result:
>>>                                                                                    
>>>                                          
>>>
>>>rpm -ivh kernel-2.4.22.10mdk-1-1mdk.src.rpm
>>>                                                                                    
>>>                                          
>>>
>>>[EMAIL PROTECTED] src]$ ls /usr/src/RPM/SOURCES
>>>linux-2.4.22-q10.tar.bz2  linux-mdkconfig.h       
>>>linux-merge-modules.awk  README.Mandrake
>>>linux-2.4.22.tar.bz2      linux-merge-config.awk  README.kernel-sources
>>>                                                                                    
>>>                                          
>>>
>>>I used file-roller to extract part of linux-2.4.22.tar.bz2 (there must 
>>>have been a command-line way of doing this). I now have a bucket-full of 
>>>header files in /usr/src/linux-2.4.22/include/linux/, but no version.h, 
>>>being the file that gave me the error message in the first place. Here's 
>>>the error message again:
>>>                                                                                    
>>>                                          
>>>
>>>#error "To build kernel modules please do the following:"
>>>#error ""
>>>#error " o Have the kernel sources installed"
>>>                                                                                    
>>>                                          
>>>
>>>Done. Hooray.
>>>                                                                                    
>>>                                          
>>>
>>>#error " o Make sure that the symbolic link"
>>>#error "   /lib/modules/`uname -r`/build exists and points to"
>>>#error "   the matching kernel source directory"
>>>                                                                                    
>>>                                          
>>>
>>>Which directory do they mean? I assume /usr/src/linux-2.4.22/. Anyway, 
>>>how do you make a symbolic link? I think that I can do it in Nautilus, 
>>>but how do you do it at the command line?
>>>                                                                                    
>>>                                          
>>>
>>>#error " o Now copy /boot/vmlinuz.version.h to"
>>>#error "   /lib/modules/`uname -r`/build/include/linux/version.h"
>>>                                                                                    
>>>                                          
>>>
>>>Gotcha. There is no /boot/vmlinuz.version.h. Here's /boot:
>>>                                                                                    
>>>                                          
>>>
>>>[EMAIL PROTECTED] src]$ ls /boot
>>>boot.0300            diag2.img                kernel.h@              
>>>message-graphic          us.klt
>>>config@              grub/                    kernel.h-2.4.22-10mdk  
>>>message-text             vmlinuz@
>>>config-2.4.22-10mdk  initrd-2.4.22-10mdk.img  map                    
>>>System.map@              vmlinuz-2.4.22-10mdk
>>>diag1.img            initrd.img@              message@               
>>>System.map-2.4.22-10mdk
>>>                                                                                    
>>>                                          
>>>
>>>What do I do now? Buy an Apple? Man, this is a steep learning curve. 
>>>Freedom sure don't come cheap. When's that 
>>>bring-it-along-and-give-it-a-crack night? This is a laptop, after all.
>>>
>>>
>>>
>>>    
>>>
>>You need to install the kernel-source rpm. Alternatively, download the
>>latest ( 2.4.24 or 2.6.2 ) tarball from www.kernel.org, and get away
>>from this rpm hell!
>>
>>hth,
>>
>>Steve
>>  
>>
>
>
>

Reply via email to