public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.0 Module compile error
@ 2001-01-05 17:23 George R. Kasica
  2001-01-06  7:35 ` Keith Owens
  0 siblings, 1 reply; 6+ messages in thread
From: George R. Kasica @ 2001-01-05 17:23 UTC (permalink / raw)
  To: linux-kernel

Trying to compile in the LM Sensors stuff here and a make
modules_install fails as follows:

>make[1]: Nothing to be done for `modules_install'.
>make[1]: Leaving directory `/usr/src/linux-2.4.0/arch/i386/lib'
>cd /lib/modules/2.4.0; \
>mkdir -p pcmcia; \
>find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
>pcmcia
>if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.0; fi
>depmod: /lib/modules//2.2.18/modules.dep is not an ELF file
>depmod: error reading ELF header
>/lib/modules//2.2.18/modules.generic_string: No
> such file or directory
>depmod: /lib/modules//2.2.18/modules.isapnpmap is not an ELF file
>depmod: error reading ELF header /lib/modules//2.2.18/modules.parportmap:
>No suc
>h file or directory
>depmod: /lib/modules//2.2.18/modules.pcimap is not an ELF file
>depmod: /lib/modules//2.2.18/modules.usbmap is not an ELF file
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-ali1535.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-ali15x3.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-amd756.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-elektor.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-elv.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-i801.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-piix4.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-sis5595.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-velleman.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-via.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/i2c-viapro.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/lm78.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/sensors.o
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/sis5595.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/via686a.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72
>depmod: *** Unresolved symbols in /lib/modules//2.2.18/misc/w83781d.o
>depmod:         release_region_R43bde9b1
>depmod:         request_region_R6d32b2d7
>depmod:         check_region_R522f4d72

make bzImage and make modules is just fine....

Any thoughts or a way to fix or should I not include these in my
kernel?

Please CC me directly as the DNS changes due to my ISP renumbering us
here are still wacked out....

George

George, MR. Tibbs & The Beast Kasica
Waukesha, WI USA
georgek@netwrx1.com
http://www.netwrx1.com
ICQ #12862186

      Zz
       zZ
    |\ z    _,,,---,,_
    /,`.-'`'    _   ;-;;,_
   |,4-  ) )-,_..;\ (  `'_'
  '---''(_/--'  `-'\_)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0 Module compile error
  2001-01-05 17:23 2.4.0 Module compile error George R. Kasica
@ 2001-01-06  7:35 ` Keith Owens
  2001-01-06 16:51   ` George R. Kasica
  2001-01-06 16:54   ` George R. Kasica
  0 siblings, 2 replies; 6+ messages in thread
From: Keith Owens @ 2001-01-06  7:35 UTC (permalink / raw)
  To: georgek; +Cc: linux-kernel

On Fri, 05 Jan 2001 11:23:29 -0600, 
George R. Kasica <georgek@netwrx1.com> wrote:
>>make[1]: Nothing to be done for `modules_install'.
>>make[1]: Leaving directory `/usr/src/linux-2.4.0/arch/i386/lib'
>>cd /lib/modules/2.4.0; \
>>mkdir -p pcmcia; \
>>find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
>>pcmcia
>>if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.0; fi
>>depmod: /lib/modules//2.2.18/modules.dep is not an ELF file
>>depmod: error reading ELF header

You have a broken modules.conf that tells depmod to scan _all_ of
/lib/modules or you have an old version of modules or you have some
weird symlinks in /lib/modules.  It looks like you have some dangling
symlinks, although I cannot be certain about that.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0 Module compile error
  2001-01-06  7:35 ` Keith Owens
@ 2001-01-06 16:51   ` George R. Kasica
  2001-01-07  0:28     ` Keith Owens
  2001-01-06 16:54   ` George R. Kasica
  1 sibling, 1 reply; 6+ messages in thread
From: George R. Kasica @ 2001-01-06 16:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: Keith Owens

>You have a broken modules.conf that tells depmod to scan _all_ of
>/lib/modules or you have an old version of modules or you have some
>weird symlinks in /lib/modules.  It looks like you have some dangling
>symlinks, although I cannot be certain about that.

Keith:

Here it is....what do I need to fix on it:

>[root@eagle 2.4.0]# cd /etc
>[root@eagle /etc]# more modules.conf
>keep
>
>path[usb]=/lib/modules/`uname -r`/`uname -v`
>path[usb]=/lib/modules/`uname -r`
>path[usb]=/lib/modules/
>path[usb]=/lib/modules/default
>
>alias usb-0000.0000.01.00.00  audio.o
>alias usb-0000.0000.03.01.00  mouse.o
>
>alias parport_lowlevel  parport_pc
>alias char-major-107    3dfx
>alias char-major-89     i2c-dev
>
># consider disabling this if you have less than 32MB of memory
>options sound dmabuf=1

/lib/modules looks like:

>[root@eagle /etc]# ls -la /lib/modules
>total 4
>drwxr-xr-x   3 root     root         1024 Jan  6 10:14 .
>drwxr-xr-x   6 root     users        2048 Jul 25 14:19 ..
>drwxr-xr-x   3 root     root         1024 Jan  6 10:28 2.4.0
>[root@eagle /etc]# ls -la /lib/modules/*
>total 8
>drwxr-xr-x   3 root     root         1024 Jan  6 10:28 .
>drwxr-xr-x   3 root     root         1024 Jan  6 10:14 ..
>lrwxrwxrwx   1 root     root           20 Jan  6 10:22 build -> /usr/src/linux-2
>.4.0
>drwxr-xr-x   2 root     root         1024 Jan  6 10:22 kernel
>-rw-r--r--   1 root     root            0 Jan  6 10:22 modules.dep
>-rw-r--r--   1 root     root           31 Jan  6 10:22 modules.generic_string
>-rw-r--r--   1 root     root           81 Jan  6 10:22 modules.isapnpmap
>-rw-r--r--   1 root     root           29 Jan  6 10:22 modules.parportmap
>-rw-r--r--   1 root     root           99 Jan  6 10:22 modules.pcimap
>-rw-r--r--   1 root     root          177 Jan  6 10:22 modules.usbmap

I did a fresh install from linux-2.4.0.tar here and used the following
sequence:

>make mrproper
>cp ../.config-2.2.18
>make oldconfig
>make dep
>make bzImage
>make modules
>make modules_install
 
*** Stopped here due to errors***

>cp /vmlinuz /vmlinuz.old
>cp /usr/src/linux/arch/i386/boot/bzImage /vmlinuz
>/sbin/lilo
>
Here is the errors on the latest clean install attempt(almost looks
like a type here with the two // rather than /) :

make[1]: Leaving directory `/usr/src/linux-2.4.0/arch/i386/lib'
cd /lib/modules/2.4.0; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.0; fi
depmod: error reading ELF header /lib/modules//2.4.0/modules.dep: No
such file o
r directory
depmod: error reading ELF header
/lib/modules//2.4.0/modules.generic_string: No
such file or directory
depmod: /lib/modules//2.4.0/modules.isapnpmap is not an ELF file
depmod: error reading ELF header
/lib/modules//2.4.0/modules.parportmap: No such
 file or directory
depmod: /lib/modules//2.4.0/modules.pcimap is not an ELF file
depmod: /lib/modules//2.4.0/modules.usbmap is not an ELF file

George, MR. Tibbs & The Beast Kasica
Waukesha, WI USA
georgek@netwrx1.com
http://www.netwrx1.com
ICQ #12862186

      Zz
       zZ
    |\ z    _,,,---,,_
    /,`.-'`'    _   ;-;;,_
   |,4-  ) )-,_..;\ (  `'_'
  '---''(_/--'  `-'\_)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0 Module compile error
  2001-01-06  7:35 ` Keith Owens
  2001-01-06 16:51   ` George R. Kasica
@ 2001-01-06 16:54   ` George R. Kasica
  2001-01-06 20:53     ` J . A . Magallon
  1 sibling, 1 reply; 6+ messages in thread
From: George R. Kasica @ 2001-01-06 16:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: Keith Owens

>You have a broken modules.conf that tells depmod to scan _all_ of
>/lib/modules or you have an old version of modules or you have some
>weird symlinks in /lib/modules.  It looks like you have some dangling
>symlinks, although I cannot be certain about that.

Keith:

Here it is....what do I need to fix on it:

>[root@eagle 2.4.0]# cd /etc
>[root@eagle /etc]# more modules.conf
>keep
>
>path[usb]=/lib/modules/`uname -r`/`uname -v`
>path[usb]=/lib/modules/`uname -r`
>path[usb]=/lib/modules/
>path[usb]=/lib/modules/default
>
>alias usb-0000.0000.01.00.00  audio.o
>alias usb-0000.0000.03.01.00  mouse.o
>
>alias parport_lowlevel  parport_pc
>alias char-major-107    3dfx
>alias char-major-89     i2c-dev
>
># consider disabling this if you have less than 32MB of memory
>options sound dmabuf=1

/lib/modules looks like:

>[root@eagle /etc]# ls -la /lib/modules
>total 4
>drwxr-xr-x   3 root     root         1024 Jan  6 10:14 .
>drwxr-xr-x   6 root     users        2048 Jul 25 14:19 ..
>drwxr-xr-x   3 root     root         1024 Jan  6 10:28 2.4.0
>[root@eagle /etc]# ls -la /lib/modules/*
>total 8
>drwxr-xr-x   3 root     root         1024 Jan  6 10:28 .
>drwxr-xr-x   3 root     root         1024 Jan  6 10:14 ..
>lrwxrwxrwx   1 root     root           20 Jan  6 10:22 build -> /usr/src/linux-2
>.4.0
>drwxr-xr-x   2 root     root         1024 Jan  6 10:22 kernel
>-rw-r--r--   1 root     root            0 Jan  6 10:22 modules.dep
>-rw-r--r--   1 root     root           31 Jan  6 10:22 modules.generic_string
>-rw-r--r--   1 root     root           81 Jan  6 10:22 modules.isapnpmap
>-rw-r--r--   1 root     root           29 Jan  6 10:22 modules.parportmap
>-rw-r--r--   1 root     root           99 Jan  6 10:22 modules.pcimap
>-rw-r--r--   1 root     root          177 Jan  6 10:22 modules.usbmap

I did a fresh install from linux-2.4.0.tar here and used the following
sequence:

>make mrproper
>cp ../.config-2.2.18
>make oldconfig
>make dep
>make bzImage
>make modules
>make modules_install
 
*** Stopped here due to errors***

>cp /vmlinuz /vmlinuz.old
>cp /usr/src/linux/arch/i386/boot/bzImage /vmlinuz
>/sbin/lilo
>
Here is the errors on the latest clean install attempt(almost looks
like a type here with the two // rather than /) :

make[1]: Leaving directory `/usr/src/linux-2.4.0/arch/i386/lib'
cd /lib/modules/2.4.0; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.0; fi
depmod: error reading ELF header /lib/modules//2.4.0/modules.dep: No
such file o
r directory
depmod: error reading ELF header
/lib/modules//2.4.0/modules.generic_string: No
such file or directory
depmod: /lib/modules//2.4.0/modules.isapnpmap is not an ELF file
depmod: error reading ELF header
/lib/modules//2.4.0/modules.parportmap: No such
 file or directory
depmod: /lib/modules//2.4.0/modules.pcimap is not an ELF file
depmod: /lib/modules//2.4.0/modules.usbmap is not an ELF file

George, MR. Tibbs & The Beast Kasica
Waukesha, WI USA
georgek@netwrx1.com
http://www.netwrx1.com
ICQ #12862186

      Zz
       zZ
    |\ z    _,,,---,,_
    /,`.-'`'    _   ;-;;,_
   |,4-  ) )-,_..;\ (  `'_'
  '---''(_/--'  `-'\_)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0 Module compile error
  2001-01-06 16:54   ` George R. Kasica
@ 2001-01-06 20:53     ` J . A . Magallon
  0 siblings, 0 replies; 6+ messages in thread
From: J . A . Magallon @ 2001-01-06 20:53 UTC (permalink / raw)
  To: georgek; +Cc: linux-kernel, Keith Owens


On 2001.01.06 George R . Kasica wrote:
> 
> Here it is....what do I need to fix on it:
> 
> >[root@eagle 2.4.0]# cd /etc
> >[root@eagle /etc]# more modules.conf
> >keep
> >
> >path[usb]=/lib/modules/`uname -r`/`uname -v`
                                     ^^^^^^^^^
??????
$ uname -v
#6 SMP Sat Jan 6 01:38:26 CET 2001

> >path[usb]=/lib/modules/`uname -r`
> >path[usb]=/lib/modules/
> >path[usb]=/lib/modules/default
> >

Delete all that stuff 'path[usb]' from /etc/modules.conf. It
is confusing your modutils. Paths should begin with
/lib/modules/`uname -r`/kernel, I think. But it is safer to
delete them.

-- 
J.A. Magallon                                         $> cd pub
mailto:jamagallon@able.es                             $> more beer

Linux werewolf 2.4.0-ac2 #6 SMP Sat Jan 6 01:38:26 CET 2001 i686

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.4.0 Module compile error
  2001-01-06 16:51   ` George R. Kasica
@ 2001-01-07  0:28     ` Keith Owens
  0 siblings, 0 replies; 6+ messages in thread
From: Keith Owens @ 2001-01-07  0:28 UTC (permalink / raw)
  To: georgek; +Cc: linux-kernel

On Sat, 06 Jan 2001 10:51:53 -0600, 
George R. Kasica <georgek@netwrx1.com> wrote:
>Keith Owens wrote
>>You have a broken modules.conf that tells depmod to scan _all_ of
>>/lib/modules or you have an old version of modules or you have some
>>weird symlinks in /lib/modules.  It looks like you have some dangling
>>symlinks, although I cannot be certain about that.
>
>Here it is....what do I need to fix on it:
>>path[usb]=/lib/modules/`uname -r`/`uname -v`
>>path[usb]=/lib/modules/`uname -r`
>>path[usb]=/lib/modules/
>>path[usb]=/lib/modules/default

path[usb]=/lib/modules/ is the real killer, you scan all of
/lib/modules and pick up modules for every kernel.  Modutils 2.4 scans
all of /lib/modules/`uname -r` and its subdirectories by default.  You
do not need any path statements unless you have modules that are not
stored in the default path or its subdirectories.  IOW, remove all path
statements unless you are doing something really unusual.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-01-07  0:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-05 17:23 2.4.0 Module compile error George R. Kasica
2001-01-06  7:35 ` Keith Owens
2001-01-06 16:51   ` George R. Kasica
2001-01-07  0:28     ` Keith Owens
2001-01-06 16:54   ` George R. Kasica
2001-01-06 20:53     ` J . A . Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox