Hi, thanks for your help. I'm trying to run a DRI installation script which "compiles the kernel modules and installs the kernel, DRI and libGL modules" (excerpt from install-script). In fact, the script calls a makefile (Makefile.linux). where the compilation fails. The (log) output is: cc -02 -Wall ... -D__KERNEL__ -DMODILE ... -DEXPORT_SYMTAB -IO -c r128_drv.c -o -cr128_drv.o
In file included from drmP.h: 43, from r128_drv.c: 34: /usr/include/linux/module.h: 21: linux/modversions.h: No such file or directory. So, I know that modversions.h is located in the kernel-headers. I downloaded them and "installed" them under /usr/src/kernel-headers-2.4.18-bf2.4 This means the location of the modversions.h file is /usr/src/kernel-headers-2.4.18-bf2.4/include/linux/modversions.h So, I guess my problem is that I need to know how to tell the install.sh or the Makefile.linux (or maybe some system variable -- or create a softlink??) where to find the kernel headers. It would be great to read something that covers the organisation of sources for compilation. I think if I just find out about this particular problem, there will be come up a few more questions about how to avoid compilation errors. [Just to make sure -- I've read http://www.linuxnewbie.org/nhf/Compiling_Kernels/Kernel_Configuration_and_Co mpilation.html http://www.tldp.org/HOWTO/Kernel-HOWTO.html so I placed my kernel sources are under /usr/src/kernel-source-2.4.18 with a link /usr/src/linux ] Thanks in advance, Holger -----Ursprungliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:bounce-debian-user=holger.wiechert=web.de@;lists.debian.org]Im Auftrag von Rob Weir Gesendet: Mittwoch, 13. November 2002 08:53 An: [EMAIL PROTECTED] Betreff: Re: Newbie: where to place src files for compilation On Tue, Nov 12, 2002 at 06:59:17PM +0100, Holger Wiechert wrote: > I just need a tip about where to place source files. > I downloaded the kernel sources (kernel-source-2.4.18) > and the kernel-headers (kernel-headers-2.4.18-bf.2.4) via dselect. > So they are now in /usr/src. I read somewhere that it's not a good > idea to place them directly below /usr/src. That's an old, old problem that doesn't exist anymore. You can quite safely build your kernel in /usr/src/linux/. > Can anyone give me a good hint where to put (extract) the sources > and how the final directory structure should look like? Just do leave them there. Or undo them in your home directory, or wherever you like. The only real issues are a) where do you have a few hundred meg free to build the kernel, and b) do you want to build it as root? If you want to build it as your normal user (which is quite simple using fakeroot), then put it in your home dir, I guess, or anywhere else you can write to. > I'm about to install the dri driver for the ati rage 128, but > compilation fails (since the kernel-header sources are not available). I'm not quite sure what this means. If you're building your own kernel, then do so. Use kernel-package for bonus marks and an easier life. Is this ATI rage driver part of the kernel source, part of the X source, from Debian or from somewhere else? > Is it usually a good approach to manually change the makefile such > that the compiler will find the headers or is there any better way > (like using the compiler's search path and only providing a link > to the sources)? I'm still not quite sure what you're trying to do here. Are you trying to build a new kernel? -rob ____________ Virus checked by G DATA AntiVirusKit Virus news: www.antiviruslab.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]