RE: Udev 147 (and above) dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

-----Message d'origine-----
De : Matthias Schwarzott [mailto:zzam@xxxxxxxxxx] 
Envoyé : mardi 17 novembre 2009 10:53
À : linux-hotplug@xxxxxxxxxxxxxxx
Cc : Kay Sievers; zze-FS DEAN BLANCHARD M ext RD-RESA-LAN
Objet : Re: Udev 147 (and above) dependencies

On Dienstag, 17. November 2009, Kay Sievers wrote:
> On Tue, Nov 17, 2009 at 08:46, Matthias Schwarzott <zzam@xxxxxxxxxx> wrote:
> > On Dienstag, 17. November 2009, mblanchard.ext@xxxxxxxxxxxxxxxxxx wrote:
> >> I tried to compile the lastest Udev 147 on a system running linux 
> >> kernel
> >> 2.6.31 and glibc 2.8. This attempt failed because the SOCK_CLOEXEC 
> >> constant is not defined in my glibc header /usr/include/bits/socket.h.
> >> After a small investigation, I found the following: kernel support 
> >> of SOCK_CLOEXEC was introduced in the 2.6.27 release. However, the 
> >> glibc support was introduced in glibc 2.9. I believe this 
> >> dependency should be precised in the Udev README.
> >
> > I think udev-147 even requires kernel 2.6.29 headers, as this is the 
> > first release in which bsg.h is exported.
>
> bsg was added in 2.6.23.
>
Yes, and this commit exported it to userspace, so it got installed below /usr/include. So 2.6.29 were the first linux-headers to contain bsg.h

commit a229fc61ef0ee3c30fd193beee0eeb87410227f1
Author: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
Date:   Mon Jan 19 10:37:38 2009 +0100
include/linux: Add bsg.h to the Kernel exported headers


Matthias


Thanks for your feedback. According to the various elements mentioned, the minimal requirements for a successful kernel compilation are:
- Glibc 2.9 (for SOCK_CLOEXEC support in the glibc header /usr/include/bits/socket.h),
- Linux kernel headers 2.6.29 (for bsg.h support)

Actually, I think Glibc 2.9 supports SOCK_CLOEXEC properly even without the associated kernel support: this one is optional and activated when specifying, at least, the '--enable-kernel=2.6.27' at Glibc compilation. However, as kernel headers 2.6.29 are mandatory for bsg.h, this fact is not significant :)





--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux