[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-bugs
Subject:    Re: [Haiku-bugs] [Haiku] #2346: Some of headers are not self
From:       "scottmc" <trac () haiku-os ! org>
Date:       2008-06-27 17:07:21
Message-ID: 051.2145c8c4c73814f2aae7e2c403d68da6 () haiku-os ! org
[Download RAW message or body]

#2346: Some of headers are not self containing
------------------------+---------------------------------------------------
  Reporter:  kaliber    |       Owner:  axeld         
      Type:  bug        |      Status:  new           
  Priority:  normal     |   Milestone:  R1            
 Component:  - General  |     Version:  R1 development
Resolution:             |   Blockedby:                
  Platform:  All        |    Blocking:                
------------------------+---------------------------------------------------

Comment(by scottmc):

 Figured I'd run the test and post the results here.

 {{{
 test2346.sh > test2346.txt
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/arch/m68k/arch_setjmp.h:10: warning: #warning
 M68K: fix jmpbuf size
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/netinet/ip_icmp.h:71: field `idi_ip' has
 incomplete type
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/netinet/ip_var.h:51: field `ih_src' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:52: field `ih_dst' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:64: field `ipopt_dst' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:77: `IP_MAX_MEMBERSHIPS'
 undeclared here (not in a function)
 /boot/develop/headers/posix/netinet/ip_var.h:104: field `ipq_src' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:104: field `ipq_dst' has
 incomplete type
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/regex.h:358: parse error before `size_t'
 /boot/develop/headers/posix/regex.h:358: warning: no semicolon at end of
 struct or union
 /boot/develop/headers/posix/regex.h:365: parse error before `:'
 /boot/develop/headers/posix/regex.h:374: parse error before `:'
 /boot/develop/headers/posix/regex.h:378: parse error before `:'
 /boot/develop/headers/posix/regex.h:382: parse error before `:'
 /boot/develop/headers/posix/regex.h:386: parse error before `:'
 /boot/develop/headers/posix/regex.h:389: parse error before `:'
 /boot/develop/headers/posix/regex.h:392: parse error before `:'
 /boot/develop/headers/posix/regex.h:456: parse error before `size_t'
 /boot/develop/headers/posix/regex.h:544: parse error before `size_t'
 /boot/develop/headers/posix/regex.h:548: parse error before `regerror'
 /boot/develop/headers/posix/regex.h:549: parse error before `size_t'
 /boot/develop/headers/posix/regex.h:549: warning: data definition has no
 type or storage class
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/resolv.h:160: field `nsaddr_list' has
 incomplete type
 /boot/develop/headers/posix/resolv.h:170: field `addr' has incomplete type
 /boot/develop/headers/posix/resolv.h:194: field `sin' has incomplete type
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/stdio_post.h:14: #error "This file must be
 included from stdio.h!"
 In file included from /boot/home/test.c:1:
 /boot/develop/headers/posix/stdio_pre.h:8: #error "This file must be
 included from stdio.h!"
 }}}

 I then inserted an #include <sys/types.h> right before the #include <$f>
 and then reran the test and here's what I got:

 {{{
 ~> test2346.sh > test2346.txt
 In file included from /boot/home/test.c:2:
 /boot/develop/headers/posix/arch/m68k/arch_setjmp.h:10: warning: #warning
 M68K: fix jmpbuf size
 In file included from /boot/home/test.c:2:
 /boot/develop/headers/posix/netinet/ip_icmp.h:71: field `idi_ip' has
 incomplete type
 In file included from /boot/home/test.c:2:
 /boot/develop/headers/posix/netinet/ip_var.h:51: field `ih_src' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:52: field `ih_dst' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:64: field `ipopt_dst' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:77: `IP_MAX_MEMBERSHIPS'
 undeclared here (not in a function)
 /boot/develop/headers/posix/netinet/ip_var.h:104: field `ipq_src' has
 incomplete type
 /boot/develop/headers/posix/netinet/ip_var.h:104: field `ipq_dst' has
 incomplete type
 In file included from /boot/home/test.c:2:
 /boot/develop/headers/posix/resolv.h:160: field `nsaddr_list' has
 incomplete type
 /boot/develop/headers/posix/resolv.h:170: field `addr' has incomplete type
 /boot/develop/headers/posix/resolv.h:194: field `sin' has incomplete type
 In file included from /boot/home/test.c:2:
 /boot/develop/headers/posix/stdio_post.h:14: #error "This file must be
 included from stdio.h!"
 In file included from /boot/home/test.c:2:
 /boot/develop/headers/posix/stdio_pre.h:8: #error "This file must be
 included from stdio.h!"
 ~>
 }}}

 So it would seem that m68k/arch_setjmp.h, netinet/ip_icmp.h,
 netinet/ip_var.h, resolv.h may need fixes, or they also have a required
 include missing.  In the regex.h file it states that <sys/types.h> is
 required first.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/2346#comment:1>
Haiku <http://dev.haiku-os.org>
The Haiku operating system.
_______________________________________________
Haiku-bugs mailing list
Haiku-bugs@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/haiku-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic