This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]