I use a 2.4 profile on my development machine as I use both 2.4 and 2.6 kernels. Therefore I have linux-headers-2.4.* installed, not linux-headers-2.6.*. sys-apps/udev-073 doesn't build with linux-headers-2.4.* installed. Reproducible: Always Steps to Reproduce: 1. Use a 2.4 profile, e.g. /usr/portage/profiles/default-linux/x86/no-nptl/2.4 2. emerge linux-headers 3. emerge =sys-fs/udev-073 Actual Results: Compiling udevd.c: [ERROR] i686-pc-linux-gnu-gcc -c -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wstrict-prototypes -Wsign-compare -Wshadow -Wchar-subscripts -Wmissing-decla rations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wmissin g-prototypes -Wdeclaration-after-statement -Os -I/var/tmp/portage/udev-073/wo rk/udev-073/libsysfs/sysfs -I/var/tmp/portage/udev-073/work/udev-073/libsysfs -DUSE_LOG udevd.c -o udevd.o In file included from udevd.c:42: /usr/include/linux/netlink.h:22: error: parse error before "__u32" /usr/include/linux/netlink.h:28: error: parse error before "__u32" /usr/include/linux/netlink.h:30: error: parse error before "nlmsg_flags" /usr/include/linux/netlink.h:31: error: parse error before "nlmsg_seq" /usr/include/linux/netlink.h:32: error: parse error before "nlmsg_pid" /usr/include/linux/netlink.h:82: error: field `msg' has incomplete type udevd.c: In function `init_uevent_netlink_sock': udevd.c:666: error: storage size of 'snl' isn't known udevd.c:670: error: invalid application of `sizeof' to incomplete type `socka ddr_nl' udevd.c:684: error: invalid application of `sizeof' to incomplete type `socka ddr_nl' udevd.c:666: warning: unused variable `snl' make: *** [udevd.o] Error 1 Expected Results: Build successfully. emerge info: Gentoo Base System version 1.12.0_pre11 Portage 2.0.53_rc7 (default-linux/x86/no-nptl/2.4, gcc-3.4.4, glibc-2.3.5-r3, 2.4.31-gentoo-r1 i686) ================================================================= System uname: 2.4.31-gentoo-r1 i686 AMD Duron(tm) processor dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.14 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="x86 ~amd64 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe" DISTDIR="/work/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_GB" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cjk crypt cups curl doc eds emboss encode esd exif expat fam firefox flac foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 idn imlib ipv6 java jpeg kde lcms libg++ libwww mad mikmod mng motif mozsvg mp3 mpeg ncurses nls no-helper offensive ogg oggvorbis opengl oss pam pcre pdflib perl png python qemu-fast qt quicktime readline recode samba sdl slang softmmu spell ssl svg svga tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xine xml2 xmms xv zlib video_cards_radeon linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS Other information: 1. udev-076 (not yet in portage) builds okay. 2. I have a simple patch that includes <linux/types.h> before <linux/netlink.h> in udevd.c and udevmonitor.c. It seems to do the trick!
Created attachment 73881 [details, diff] Allows udev-073 to build with linux-headers-2.4.*
Is fixed in the next udev release, just need to get it into the tree...
Fixed in 077