Subject: netinet/ip.h
To: None <current-users@netbsd.org>
From: haad <haaaad@gmail.com>
List: current-users
Date: 02/28/2006 18:04:06
This is a multi-part message in MIME format.
--------------070003020708070807000308
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If I include /usr/include/netinet/ip.h in my c program compiled with

gcc  -pedantic -Wall -g main.c

I got bunch of errors like this
/usr/include/netinet/ip.h:49: error: parse error before "u_int8_t"
/usr/include/netinet/ip.h:56: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/ip.h:57: error: parse error before "ip_len"
/usr/include/netinet/ip.h:57: error: ISO C forbids data definition with
no type or storage class
[...... snip]

/usr/include/netinet/ip.h:65: error: parse error before "ip_ttl"
/usr/include/netinet/ip.h:65: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/ip.h:66: error: parse error before "ip_p"
/usr/include/netinet/ip.h:66: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/ip.h:67: error: parse error before "ip_sum"
[....]
/usr/include/netinet/ip.h:158: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/ip.h:159: error: parse error before '}' token
/usr/include/netinet/ip.h:159: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/ip.h:160: error: parse error before '}' token
/usr/include/netinet/ip.h:192: error: field `ippseudo_src' has
incomplete type
/usr/include/netinet/ip.h:193: error: field `ippseudo_dst' has
incomplete type
/usr/include/netinet/ip.h:194: error: parse error before "u_int8_t"
/usr/include/netinet/ip.h:195: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/ip.h:196: error: parse error before "ippseudo_len"
/usr/include/netinet/ip.h:196: error: ISO C forbids data definition with
no type or storage class

I miss something ??


Best Regards


- --
Adam Hamsik
tel.c 0904 937 495
ICQ 249727910
jabber haad@jabber.org
- --------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
				
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEBIKF9Wt2FT7y228RAs3mAKCCTje8FxdvhfP1MzTDJEQfPryVuwCfc5Nb
3ZBadS2JkeAhXuScBBF/368=
=3Q0m
-----END PGP SIGNATURE-----

--------------070003020708070807000308
Content-Type: text/plain;
 name="error"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="error"

In file included from main.c:4:
/usr/include/netinet/ip.h:49: error: parse error before "u_int8_t"
/usr/include/netinet/ip.h:56: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:57: error: parse error before "ip_len"
/usr/include/netinet/ip.h:57: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:58: error: parse error before "ip_id"
/usr/include/netinet/ip.h:58: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:59: error: parse error before "ip_off"
/usr/include/netinet/ip.h:59: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:65: error: parse error before "ip_ttl"
/usr/include/netinet/ip.h:65: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:66: error: parse error before "ip_p"
/usr/include/netinet/ip.h:66: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:67: error: parse error before "ip_sum"
/usr/include/netinet/ip.h:67: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:69: error: parse error before '}' token
/usr/include/netinet/ip.h:142: error: parse error before "u_int8_t"
/usr/include/netinet/ip.h:143: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:144: error: parse error before "ipt_ptr"
/usr/include/netinet/ip.h:144: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:146: error: parse error before "ipt_flg"
/usr/include/netinet/ip.h:154: error: parse error before "n_time"
/usr/include/netinet/ip.h:156: error: field `ipt_addr' has incomplete type
/usr/include/netinet/ip.h:157: error: parse error before "n_time"
/usr/include/netinet/ip.h:158: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:159: error: parse error before '}' token
/usr/include/netinet/ip.h:159: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:160: error: parse error before '}' token
/usr/include/netinet/ip.h:192: error: field `ippseudo_src' has incomplete type
/usr/include/netinet/ip.h:193: error: field `ippseudo_dst' has incomplete type
/usr/include/netinet/ip.h:194: error: parse error before "u_int8_t"
/usr/include/netinet/ip.h:195: error: ISO C forbids data definition with no type or storage class
/usr/include/netinet/ip.h:196: error: parse error before "ippseudo_len"
/usr/include/netinet/ip.h:196: error: ISO C forbids data definition with no type or storage class

--------------070003020708070807000308--