From mboxrd@z Thu Jan 1 00:00:00 1970 From: Piter Punk Date: Thu, 10 Nov 2005 14:05:03 +0000 Subject: Re: Udev 0.75 fail to compile Message-Id: <4373538F.7080208@terra.com.br> List-Id: References: <27509.64.235.216.178.1131629413.squirrel@webmail.privalodc.com> In-Reply-To: <27509.64.235.216.178.1131629413.squirrel@webmail.privalodc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org gmourani@privalodc.com wrote: > /usr/include/linux/netlink.h:22: error: syntax error before '__u32' > /usr/include/linux/netlink.h:28: error: syntax error before '__u32' > /usr/include/linux/netlink.h:30: error: syntax error before 'nlmsg_flags' > /usr/include/linux/netlink.h:31: error: syntax error before 'nlmsg_seq' > /usr/include/linux/netlink.h:32: error: syntax 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:665: error: storage size of 'snl' isn't known > udevd.c:669: error: invalid application of 'sizeof' to incomplete type > 'struc > t sockaddr_nl' > udevd.c:683: error: invalid application of 'sizeof' to incomplete type > 'struc > t sockaddr_nl' > udevd.c:665: warning: unused variable 'snl' > make: *** [udevd.o] Error 1 > error: Bad exit status from /var/tmp/rpm-tmp.25233 (%build) I solved that using: 1. Download 2.6.14 2. Make a link from /usr/src/linux/include/linux to /usr/include/linux 3. Make a link from /usr/src/linux/include/asm-i386 to /usr/include/asm 4. Make a link from /usr/src/linux/include/asm-generic to /usr/include/asm-generic 5. Compile udevd -:) 6. Back all links to the normal place. The correct is to have this links under /usr/include with the same headers used to compiled your glibc. But, to compile kernel related stuff, is common need the actual kernel headers. It's all. --- Piter PUNK ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel