From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Udev 0.75 fail to compile
Date: Thu, 10 Nov 2005 14:16:38 +0000 [thread overview]
Message-ID: <20051110141638.GA10152@vrfy.org> (raw)
In-Reply-To: <27509.64.235.216.178.1131629413.squirrel@webmail.privalodc.com>
On Thu, Nov 10, 2005 at 12:05:03PM -0200, Piter Punk wrote:
> 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.
Well, it _is_ common to have recent glibc-kernel-headers, and not
to mess around with the headers from the kernel tree in userspace. :)
Seems your distro has 2.4 headers which may work, if you include
<linux/types.h>.
Kay
-------------------------------------------------------
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
prev parent reply other threads:[~2005-11-10 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 13:30 Udev 0.75 fail to compile gmourani
2005-11-10 14:05 ` Piter Punk
2005-11-10 14:16 ` Kay Sievers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051110141638.GA10152@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.