2006-02-16 23:42:06

by Jesper Juhl

[permalink] [raw]
Subject: 2.6.16-rc3-git7 build failure if sysfs disabled

2.6.16-rc3-git7 fails to build when sysfs is disabled with the
attached .config .

Without sysfs enabled :

LD vmlinux
lib/lib.a(kobject_uevent.o)(.text+0x1d5): In function `kobject_uevent':
: undefined reference to `uevent_seqnum'
lib/lib.a(kobject_uevent.o)(.text+0x1db): In function `kobject_uevent':
: undefined reference to `uevent_seqnum'
lib/lib.a(kobject_uevent.o)(.text+0x1e7): In function `kobject_uevent':
: undefined reference to `uevent_seqnum'
lib/lib.a(kobject_uevent.o)(.text+0x1ed): In function `kobject_uevent':
: undefined reference to `uevent_seqnum'
lib/lib.a(kobject_uevent.o)(.text+0x22c): In function `kobject_uevent':
: undefined reference to `uevent_helper'
lib/lib.a(kobject_uevent.o)(.text+0x2c0): In function `kobject_uevent':
: undefined reference to `uevent_helper'
lib/lib.a(kobject_uevent.o)(.text+0x2d3): In function `kobject_uevent':
: undefined reference to `uevent_helper'
make: *** [vmlinux] Error 1

If sysfs is switched on the same config builds just fine.

The .config is attached.

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html


Attachments:
(No filename) (1.18 kB)
.config (26.73 kB)
Download all attachments

2006-02-17 00:44:35

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.16-rc3-git7 build failure if sysfs disabled

On Fri, Feb 17, 2006 at 12:42:01AM +0100, Jesper Juhl wrote:
> 2.6.16-rc3-git7 fails to build when sysfs is disabled with the
> attached .config .
>
> Without sysfs enabled :

Yeah, someone else pointed this out a while ago too. Care to make up a
patch to fix it?

thanks,

greg k-h

2006-02-17 01:29:40

by Daniel Hazelton

[permalink] [raw]
Subject: Re: 2.6.16-rc3-git7 build failure if sysfs disabled

On Thursday 16 February 2006 18:42, Jesper Juhl wrote:
> 2.6.16-rc3-git7 fails to build when sysfs is disabled with the
> attached .config .
>
> Without sysfs enabled :
>
> LD vmlinux
>
> lib/lib.a(kobject_uevent.o)(.text+0x1d5): In function `kobject_uevent':
> : undefined reference to `uevent_seqnum'
>
> lib/lib.a(kobject_uevent.o)(.text+0x1db): In function `kobject_uevent':
> : undefined reference to `uevent_seqnum'
>
> lib/lib.a(kobject_uevent.o)(.text+0x1e7): In function `kobject_uevent':
> : undefined reference to `uevent_seqnum'
>
> lib/lib.a(kobject_uevent.o)(.text+0x1ed): In function `kobject_uevent':
> : undefined reference to `uevent_seqnum'
>
> lib/lib.a(kobject_uevent.o)(.text+0x22c): In function `kobject_uevent':
> : undefined reference to `uevent_helper'
>
> lib/lib.a(kobject_uevent.o)(.text+0x2c0): In function `kobject_uevent':
> : undefined reference to `uevent_helper'
>
> lib/lib.a(kobject_uevent.o)(.text+0x2d3): In function `kobject_uevent':
> : undefined reference to `uevent_helper'
>
> make: *** [vmlinux] Error 1
>
> If sysfs is switched on the same config builds just fine.
>
> The .config is attached.

I've been looking at this for a few minutes now and wondering - since sysfs is
an integrated part of the new module system there isn't an easy solution in
the KConfig system. Perhaps providing a stub function that does nothing for
builds that have sysfs turned off would be better...

Either that, or leave the function in and have its function depend, in some
function, on whether sysfs was loaded as a module or isn't present at all.
Truthfully, though, I don't know if that's possible.

DRH

2006-02-17 09:17:23

by Jesper Juhl

[permalink] [raw]
Subject: Re: 2.6.16-rc3-git7 build failure if sysfs disabled

On 2/17/06, Greg KH <[email protected]> wrote:
> On Fri, Feb 17, 2006 at 12:42:01AM +0100, Jesper Juhl wrote:
> > 2.6.16-rc3-git7 fails to build when sysfs is disabled with the
> > attached .config .
> >
> > Without sysfs enabled :
>
> Yeah, someone else pointed this out a while ago too. Care to make up a
> patch to fix it?
>

I don't mind taking a crack at it, but it won't be until saturday
evening or sunday, don't have any spare time before then - that's why
I just send in the info instead of trying to fix it myself.

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html