Build problems with Linux 2.5

Build problems with Linux 2.5

Post by Jay Denebei » Thu, 12 Jun 2003 22:30:34



(.70, but I doubt that makes a difference)

Hi guys,

  I've been way out of kernel compiling for a long time, however I just
took a job writing device drivers on Linux so I guess I'll be doing quite
a bit of it again.  I've not built a kernel other than an occasional 'make
rpm' on redhat since the 2.0 days, so be gentle with me.

  The problem I'm having is with the kernel.  My environment is a standard
Redhat 9 installation:

gcc-3.2.2-5
binutils-2.13.90.0.18-9
modutils-2.4.22-8
kernel-smp-2.4.20-9

  The problem I'm having seems to be related to modutils.  When I make
very many modules I can't install the system because depmod can't find
symbols undery 2.4.  However using nm I can see that those symbols are
indeed defined.  If I make a bare bones system and only have the two or
three modules I need (I'm working with SCSI device drivers and need to
unload/reload the modules) the depmod passes, but the modprobe fails with
QM_MODULES: function unimplemented.

  So, I went grepping through the source code and QM_MODULES exists in
linux/module.h in 2.4, but not in 2.5.  Since modutils depends on that
functionality heavily modutils must have been re-written.  However the
latest version I can find on kernel.org is 2.4.25 and it still uses
QM_MODULES.  So, where is it?

  Are there other things I'm going to need for 2.5?  I've already figured
out LVM is totally different, and that breaks mkinitrd if I've got root on
a logical volume.  Anything else?

  Thanks in advance for your time.

  Jay

--
* Jay Denebeim  Moderator       rec.arts.sf.tv.babylon5.moderated *



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Build problems with Linux 2.5

Post by Mark Haverkam » Thu, 12 Jun 2003 22:50:20



> (.70, but I doubt that makes a difference)

> Hi guys,

>   I've been way out of kernel compiling for a long time, however I just
> took a job writing device drivers on Linux so I guess I'll be doing quite
> a bit of it again.  I've not built a kernel other than an occasional 'make
> rpm' on redhat since the 2.0 days, so be gentle with me.

>   The problem I'm having is with the kernel.  My environment is a standard
> Redhat 9 installation:

> gcc-3.2.2-5
> binutils-2.13.90.0.18-9
> modutils-2.4.22-8
> kernel-smp-2.4.20-9

>   The problem I'm having seems to be related to modutils.  When I make
> very many modules I can't install the system because depmod can't find
> symbols undery 2.4.  However using nm I can see that those symbols are
> indeed defined.  If I make a bare bones system and only have the two or
> three modules I need (I'm working with SCSI device drivers and need to
> unload/reload the modules) the depmod passes, but the modprobe fails with
> QM_MODULES: function unimplemented.

>   So, I went grepping through the source code and QM_MODULES exists in
> linux/module.h in 2.4, but not in 2.5.  Since modutils depends on that
> functionality heavily modutils must have been re-written.  However the
> latest version I can find on kernel.org is 2.4.25 and it still uses
> QM_MODULES.  So, where is it?

http://www.kernel.org/pub/linux/kernel/people/rusty/modules/

Quote:

>   Are there other things I'm going to need for 2.5?  I've already figured
> out LVM is totally different, and that breaks mkinitrd if I've got root on
> a logical volume.  Anything else?

>   Thanks in advance for your time.

>   Jay

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Build problems with Linux 2.5

Post by Sam Ravnbor » Thu, 12 Jun 2003 23:00:08



> (.70, but I doubt that makes a difference)

> Hi guys,

>   I've been way out of kernel compiling for a long time, however I just
> took a job writing device drivers on Linux so I guess I'll be doing quite
> a bit of it again.  I've not built a kernel other than an occasional 'make
> rpm' on redhat since the 2.0 days, so be gentle with me.

Two pointers:
http://www.codemonkey.org.uk/post-halloween-2.5.txt

This is good, and answer your QM_MODULES question + more.
lwn.net - has a good article serie about driver porting to 2.5

        Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Build problems with Linux 2.5

Post by Bryan O'Sulliva » Thu, 12 Jun 2003 23:00:24



>   The problem I'm having seems to be related to modutils.

You need to use module-init-tools.

http://www.kernel.org/pub/linux/kernel/people/rusty/modules/

Read the docs before you build and install it, so that it continues to
work with modutils.

        <b

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Build problems with Linux 2.5

Post by Vincent Hanque » Thu, 12 Jun 2003 23:10:07



>   The problem I'm having seems to be related to modutils.  When I make
> very many modules I can't install the system because depmod can't find
> symbols undery 2.4.  However using nm I can see that those symbols are
> indeed defined.  If I make a bare bones system and only have the two or
> three modules I need (I'm working with SCSI device drivers and need to
> unload/reload the modules) the depmod passes, but the modprobe fails with
> QM_MODULES: function unimplemented.

you have to install module-init-tools (0.9.12 latest)

(isn't it in the FAQ ?)
--
Tab
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. BUILD PROBLEM - Linux 2.5 BK - smpboot.c

I'm seeing this error:

   gcc -Wp,-MD,arch/i386/kernel/.smpboot.o.d -D__KERNEL__ -Iinclude
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4
-Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc
-iwithprefix include    -DKBUILD_BASENAME=smpboot
-DKBUILD_MODNAME=smpboot   -c -o arch/i386/kernel/smpboot.o
arch/i386/kernel/smpboot.c
make -f scripts/Makefile.build obj=fs
make -f scripts/Makefile.build obj=fs/autofs4
arch/i386/kernel/smpboot.c:55:26:make -f scripts/Makefile.build obj=fs/devfs
  mach_wakecpu.h: No such file or directory
make -f scripts/Makefile.build obj=fs/devpts
make -f scripts/Makefile.build obj=fs/exportfs
make -f scripts/Makefile.build obj=fs/lockd
arch/i386/kernel/smpboot.c: In function `smp_callin':
arch/i386/kernel/smpboot.c:351: warning: implicit declaration of
function `wait_for_init_deassert'arch/i386/kernel/smpboot.c:400:
warning: implicit declaration of function `smp_callin_clear_local_apic'
make -f scripts/Makefile.build obj=fs/nfs
arch/i386/kernel/smpboot.c: In function `do_boot_cpu':
arch/i386/kernel/smpboot.c:826: warning: implicit declaration of
function `store_NMI_vector'
arch/i386/kernel/smpboot.c:831: `TRAMPOLINE_HIGH' undeclared (first use
in this function)
arch/i386/kernel/smpboot.c:831: (Each undeclared identifier is reported
only once
arch/i386/kernel/smpboot.c:831: for each function it appears in.)
arch/i386/kernel/smpboot.c:833: `TRAMPOLINE_LOW' undeclared (first use
in this function)
arch/i386/kernel/smpboot.c:839: warning: implicit declaration of
function `wakeup_secondary_cpu'
arch/i386/kernel/smpboot.c:873: warning: implicit declaration of
function `inquire_remote_apic'
arch/i386/kernel/smpboot.c: In function `smp_boot_cpus':
arch/i386/kernel/smpboot.c:1048: `boot_cpu_apicid' undeclared (first use
in this function)
make -f scripts/Makefile.build obj=fs/nfsd
make -f scripts/Makefile.build obj=fs/partitions
make -f scripts/Makefile.build obj=fs/proc
make[1]: *** [arch/i386/kernel/smpboot.o] Error 1
make: *** [arch/i386/kernel] Error 2
make: *** Waiting for unfinished jobs....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Mounting HD on Debian

3. problems building bzImage with 2.5.*

4. Packard Bell AudioKey

5. Kernel build causes problems on reboot ... 2.5 release ...

6. Limiting the size of incoming mail (sendmail.cf?)

7. 2.5.5pre1 Sparc64 build problem

8. dirname problem

9. Announce: Kernel Build for 2.5, Release 1.12 is available

10. Announce: Kernel Build for 2.5, Release 2.4 is available

11. Announce: Kernel Build for 2.5, Release 1.11 is available

12. Does anyone ever successfully build 2.5.xx kernel?

13. Announce: Kernel Build for 2.5, Release 2.0 is available