From: Piter Punk <piterpk@terra.com.br>
To: linux-hotplug@vger.kernel.org
Subject: Re: Udev 0.75 fail to compile
Date: Thu, 10 Nov 2005 14:05:03 +0000 [thread overview]
Message-ID: <4373538F.7080208@terra.com.br> (raw)
In-Reply-To: <27509.64.235.216.178.1131629413.squirrel@webmail.privalodc.com>
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
next prev parent reply other threads:[~2005-11-10 14:05 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 [this message]
2005-11-10 14:16 ` Kay Sievers
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=4373538F.7080208@terra.com.br \
--to=piterpk@terra.com.br \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).