public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: test10-pre7 (LINK ordering)
  2000-10-31 20:59 test10-pre7 Linus Torvalds
@ 2000-11-01  0:16 ` Randy Dunlap
  2000-11-01  0:52   ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2000-11-01  0:16 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Keith Owens, Jeff Garzik, Kernel Mailing List

Linus Torvalds wrote:
> 
[snip]
> 
> That was going to be my next question if somebody actually said "sure".
> 
> The question was rhetorical, since the way LINK_FIRST is implemented
> means
> that it has all the same problems that $(obj-y) has, and is hard to get
> right in the generic case (but you can get it trivially right for the
> subset case, like for USB).


So now we have something in 2.4.0-test10, but there's
still a problem.  Help is appreciated^W wanted. !!!

With CONFIG_USB=y and all other USB modules built as
modules (=m), linking usbdrv.o into the kernel image
gives this:

ld -m elf_i386 -T /work/linsrc/240-test10/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
        drivers/block/block.o drivers/char/char.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/parport/parport.a 
drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/cdrom.a
drivers/sound/sounddrivers.o drivers/pci/pci.a drivers/video/video.o
drivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/i2c/i2c.o \
        net/network.o \
        /work/linsrc/240-test10/arch/i386/lib/lib.a
/work/linsrc/240-test10/lib/lib.a
/work/linsrc/240-test10/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/usb/usbdrv.o(.data+0x2f4): undefined reference to
`__this_module'
make: *** [vmlinux] Error 1
[rdunlap@dragon linux]$ 


I believe that this is caused by drivers/usb/inode.c:

static DECLARE_FSTYPE(usbdevice_fs_type, "usbdevfs",
usbdevfs_read_super, 0);

in which this macro uses "THIS_MODULE".  inode.c already #includes
module.h.  What else does it need to do?
(inode.c is part of the usbcore in this case, so it shouldn't be
compiled with -DMODULE.)

Help ?!?

~Randy
-
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] 5+ messages in thread

* Re: test10-pre7 (LINK ordering)
  2000-11-01  0:16 ` test10-pre7 (LINK ordering) Randy Dunlap
@ 2000-11-01  0:52   ` Jeff Garzik
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2000-11-01  0:52 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Linus Torvalds, Keith Owens, Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

Randy Dunlap wrote:
> With CONFIG_USB=y and all other USB modules built as
> modules (=m), linking usbdrv.o into the kernel image
> gives this:

> drivers/usb/usbdrv.o(.data+0x2f4): undefined reference to

Works for me here, .config attached.  Local changes, merge error, or
similar?  I don't have any local USB patches...

-- 
Jeff Garzik             | "Mind if I drive?"  -Sam
Building 1024           | "Not if you don't mind me clawing at the
MandrakeSoft            |  dash and shrieking like a cheerleader."
                        |                     -Max

[-- Attachment #2: config.bz2 --]
[-- Type: application/octet-stream, Size: 3846 bytes --]

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

* RE: test10-pre7 (LINK ordering)
@ 2000-11-01  1:13 Dunlap, Randy
  0 siblings, 0 replies; 5+ messages in thread
From: Dunlap, Randy @ 2000-11-01  1:13 UTC (permalink / raw)
  To: 'Jeff Garzik'; +Cc: Linus Torvalds, Keith Owens, Kernel Mailing List

> > With CONFIG_USB=y and all other USB modules built as
> > modules (=m), linking usbdrv.o into the kernel image
> > gives this:
> 
> > drivers/usb/usbdrv.o(.data+0x2f4): undefined reference to
> 
> Works for me here, .config attached.  Local changes, merge error, or
> similar?  I don't have any local USB patches...

I agree.  My (rushed) bad.
Didn't rm usb/*.o .

Thanks for catching me.  I'm pleased that there's
no problem here.

~Randy

-
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] 5+ messages in thread

* RE: test10-pre7 (LINK ordering)
@ 2000-11-01  1:24 Dunlap, Randy
  2000-11-01  2:11 ` Keith Owens
  0 siblings, 1 reply; 5+ messages in thread
From: Dunlap, Randy @ 2000-11-01  1:24 UTC (permalink / raw)
  To: 'Jeff Garzik'
  Cc: 'Keith Owens', 'Kernel Mailing List',
	'linus'

> > > With CONFIG_USB=y and all other USB modules built as
> > > modules (=m), linking usbdrv.o into the kernel image
> > > gives this:
> > 
> > > drivers/usb/usbdrv.o(.data+0x2f4): undefined reference to
> > 
> > Works for me here, .config attached.  Local changes, merge error, or
> > similar?  I don't have any local USB patches...
> 
> I agree.  My (rushed) bad.
> Didn't rm usb/*.o .
> 
> Thanks for catching me.  I'm pleased that there's
> no problem here.

Hi Jeff,

Did I speak too quickly again?

Can you successfully do 'depmod -ae' _before_
booting this kernel?

I still get lots of unresolved USB symbols in
all USB modules.

Is it valid to run depmod like this before
booting the kernel that has usbcore in-kernel?
depmod -ae works after I boot that kernel + usbcore.

~Randy

-
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] 5+ messages in thread

* Re: test10-pre7 (LINK ordering)
  2000-11-01  1:24 test10-pre7 (LINK ordering) Dunlap, Randy
@ 2000-11-01  2:11 ` Keith Owens
  0 siblings, 0 replies; 5+ messages in thread
From: Keith Owens @ 2000-11-01  2:11 UTC (permalink / raw)
  To: Dunlap, Randy; +Cc: 'Jeff Garzik', 'Kernel Mailing List'

On Tue, 31 Oct 2000 17:24:24 -0800, 
"Dunlap, Randy" <randy.dunlap@intel.com> wrote:
>Is it valid to run depmod like this before
>booting the kernel that has usbcore in-kernel?
>depmod -ae works after I boot that kernel + usbcore.

To run depmod against a new 2.4.0-test10 kernel,
  make modules_install
  depmod -ae -F System.map 2.4.0-test10
Without -F, depmod reads /proc/ksyms which are for the old kernel.
make modules_install runs depmod with those parameters anyway.

-
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] 5+ messages in thread

end of thread, other threads:[~2000-11-01  2:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-01  1:24 test10-pre7 (LINK ordering) Dunlap, Randy
2000-11-01  2:11 ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2000-11-01  1:13 Dunlap, Randy
2000-10-31 20:59 test10-pre7 Linus Torvalds
2000-11-01  0:16 ` test10-pre7 (LINK ordering) Randy Dunlap
2000-11-01  0:52   ` Jeff Garzik

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