2001-10-19 19:21:07

by Alan Chandler

[permalink] [raw]
Subject: Unresolved symbol hotplug_path in usbcore.o as a module (2.4.12)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am not subscribed to the list please cc me on any reply

I have built the the 2.4.12 kernel with CONFIG_HOTPLUG set and the usb stuff
all compiled as modules.

depmod -e shows that usbcore.o has an unresolved symbol (which of course
fails when the module tries to load) of hot_plug path.

Looking through the code I can see that this gets defined in kmod.c - and
there is an entry in System.map (I don't know each line means but
hotplug_path is there). I can also see the kmod.h (included by usb.c which
eventually gets built into usbcore) defines it as an external reference.

What I have been unable to figure out is why depmod doesn't link usbcore.o to
it.
- --

Alan - [email protected]
http://www.chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE70H0x1mf3M5ZDr2kRAkXtAKC2t3yxEGhFya9baq3JHo54K+sLVgCgrToe
/PRFjU0H6h04DS4cCxfSA00=
=AiTR
-----END PGP SIGNATURE-----


2001-10-20 06:48:37

by Keith Owens

[permalink] [raw]
Subject: Re: Unresolved symbol hotplug_path in usbcore.o as a module (2.4.12)

On Fri, 19 Oct 2001 20:21:17 +0100,
Alan Chandler <[email protected]> wrote:
>I have built the the 2.4.12 kernel with CONFIG_HOTPLUG set and the usb stuff
>all compiled as modules.
>
>depmod -e shows that usbcore.o has an unresolved symbol (which of course
>fails when the module tries to load) of hot_plug path.

I need the output from
nm -A `/sbin/modprobe -l` | grep hotplug_path
grep hotplug_path /proc/ksyms System.map

2001-10-20 07:12:16

by Alan Chandler

[permalink] [raw]
Subject: Re: Unresolved symbol hotplug_path in usbcore.o as a module (2.4.12)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 20 October 2001 7:48 am, Keith Owens wrote:
> On Fri, 19 Oct 2001 20:21:17 +0100,
>
> Alan Chandler <[email protected]> wrote:
> >I have built the the 2.4.12 kernel with CONFIG_HOTPLUG set and the usb
> > stuff all compiled as modules.
> >
> >depmod -e shows that usbcore.o has an unresolved symbol (which of course
> >fails when the module tries to load) of hot_plug path.
>
> I need the output from
> nm -A `/sbin/modprobe -l` | grep hotplug_path

alan@kanger:~$ nm -A `/sbin/modprobe -l` | grep hotplug_path
/lib/modules/2.4.12/kernel/drivers/usb/usbcore.o: U hotplug_path
alan@kanger:~$

> grep hotplug_path /proc/ksyms System.map


alan@kanger:/$ grep hotplug_path /proc/ksyms System.map
/proc/ksyms:c0290960 hotplug_path_R__ver_hotplug_path
System.map:c02810a0 ? __kstrtab_hotplug_path
System.map:c028bb98 ? __ksymtab_hotplug_path
System.map:c0290960 D hotplug_path
alan@kanger:/$
- --

Alan - [email protected]
http://www.chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE70SPa1mf3M5ZDr2kRAkb6AJ0eyEL3EDiCdrrZdNGeT5utXP+rRwCgzaDY
MkVDEVYXdsfCWrin8w30w0M=
=qjMd
-----END PGP SIGNATURE-----

2001-10-20 07:25:30

by Keith Owens

[permalink] [raw]
Subject: Re: Unresolved symbol hotplug_path in usbcore.o as a module (2.4.12)

On Sat, 20 Oct 2001 08:12:14 +0100,
Alan Chandler <[email protected]> wrote:
>alan@kanger:/$ grep hotplug_path /proc/ksyms System.map
>/proc/ksyms:c0290960 hotplug_path_R__ver_hotplug_path

Bingo! http://www.tux.org/lkml/#s8-8

2001-10-20 19:52:05

by Alan Chandler

[permalink] [raw]
Subject: Re: Unresolved symbol hotplug_path in usbcore.o as a module (2.4.12)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 20 October 2001 8:25 am, Keith Owens wrote:
> On Sat, 20 Oct 2001 08:12:14 +0100,
>
> Alan Chandler <[email protected]> wrote:
> >alan@kanger:/$ grep hotplug_path /proc/ksyms System.map
> >/proc/ksyms:c0290960 hotplug_path_R__ver_hotplug_path
>
> Bingo! http://www.tux.org/lkml/#s8-8

Thanks - solved. I've read the FAQ several times but not groked that bit.

- --

Alan - [email protected]
http://www.chandlerfamily.org.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE70dX21mf3M5ZDr2kRAr9vAKDFJzsZmKjAQqVwlOTJQocPxiLmHQCdErMh
rancatzCVIKXgdVyUMOZArA=
=MPcM
-----END PGP SIGNATURE-----