This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: parse errors in netinet/in.h
- From: skg <skgnu at yahoo dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 13 Jun 2004 04:09:22 -0700 (PDT)
- Subject: Re: parse errors in netinet/in.h
--- Andreas Jaeger <aj@suse.de> wrote:
>
> This case looks like a problem in glibc. Please
> provide selfcontained
> testcase in glibc's bugzilla at
> http://sources.redhat.com/bugzilla
>
> Andreas
> --
Okay, I will try to come up with a standalone test
case, but similiar problems occur whenever you mix
kernel headers and glibc headers. e.g.
#include <stdio.h>
#include <netinet/in.h>
#include <linux/byteorder/generic.h>
main ()
{
printf ("hello");
}
==============
In file included from test.c:4:
/usr/include/linux/byteorder/generic.h:150: error:
parse error before "ntohl"
/usr/include/linux/byteorder/generic.h:150: error:
conflicting types for `ntohl'
/usr/include/netinet/in.h:259: error: previous
declaration of `ntohl'
/usr/include/linux/byteorder/generic.h:151: error:
parse error before "htonl"
/usr/include/linux/byteorder/generic.h:151: error:
conflicting types for `htonl'
/usr/include/netinet/in.h:263: error: previous
declaration of `htonl'
--skg
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/