Re: [SPAM] - Re: 2.4 kernel build system, redhat 8.0/9 tricks and modulesbuilding... - Bayesian Filter detected spam

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> --- Makefile ---
> # Rules for making the EDF scheduling discipline
> obj-m := sch_edf.o
> 
> include $(TOPDIR)/Rules.make
> --- end (Makefile) ---
> 
> try to build my own module against fresh installed kernel-source rpm
> gives this output:
> --- output ---
> [root@amarie sch_edf-0.1]# make -C /usr/src/linux-2.4 SUBDIRS=`pwd`

first of all, this is wrong. Using "/usr/src/<anything>" to build modules
against is incorrect. You *have* to use /lib/modules/`uname -r`/build.
(Yes I know in the 2.4 kernel RPMS that is a symlink into /usr/src/ but
that's not the point, that is going to change)

> scripts/split-include
> scripts/split-include.c
> scripts/split-include include/linux/autoconf.h include/config
> make -r -f tmp_include_depends all
> make[1]: Entering directory `/usr/src/linux-2.4.18-14'
> make[1]: tmp_include_depends: No such file or directory
> make[1]: *** No rule to make target `tmp_include_depends'.  Stop.
> make[1]: Leaving directory `/usr/src/linux-2.4.18-14'
> make: *** [tmp_include_depends] Error 2


the 2.4.18-14 kernel missed that file yes; later kernels added that omitted
file. (You shouldn't use 2.4.18-14 at all anyway, waaaaaay too many security
issues have been fixed since).

Attachment: pgp00511.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux