From: Matthew Burgess <matthew@linuxfromscratch.org>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, ben@decadent.org.uk, linux-kernel@vger.kernel.org
Subject: Compilation issues using netlink.h
Date: Mon, 28 Dec 2009 00:32:51 +0000 [thread overview]
Message-ID: <4B37FCB3.9000800@linuxfromscratch.org> (raw)
Hi,
The test case below simplifies a failure I see when trying to compile
strace using kernel headers from Linux-2.6.32.2:
#include <linux/netlink.h>
struct sockaddr_nl nl;
int main() {
return 0;
}
$ gcc -o test test.c
In file included from test.c:1:
/usr/include/linux/netlink.h:34: error: expected
specifier-qualifier-list before 'sa_family_t'
The comment in netlink.h suggests that 'sa_family_t' is expected to be
found in linux/socket.h, but since commit 9c501935a3 ("net: Support
inclusion of <linux/socket.h> before <sys/socket.h>") that appears to
not be true anymore, it's now in sys/socket.h. Sure enough, if I change
the include in netlink.h to pull in sys/socket.h instead of
linux/socket.h, that enables the test case (and strace) to compile
again, but I wasn't sure if it was really the right thing to do.
Thanks,
Matt.
next reply other threads:[~2009-12-28 0:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-28 0:32 Matthew Burgess [this message]
2010-01-05 2:32 ` Compilation issues using netlink.h Ben Hutchings
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=4B37FCB3.9000800@linuxfromscratch.org \
--to=matthew@linuxfromscratch.org \
--cc=ben@decadent.org.uk \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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.