1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
** Invoke shotgun/main.c (first_time, not_needed)
** Execute build:shotgun
** Invoke build:platform (first_time)
** Invoke runtime/platform.conf (first_time)
** Invoke Rakefile (first_time, not_needed)
** Invoke rakelib/struct_generator.rb (first_time, not_needed)
** Execute runtime/platform.conf
#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stddef.h>

int main(int argc, char **argv)
{
  printf("%s %u %u\n", "ai_flags", (unsigned int)offsetof(struct addrinfo, ai_fl
ags), (unsigned int)sizeof(((struct addrinfo*)0)->ai_flags));
  printf("%s %u %u\n", "ai_family", (unsigned int)offsetof(struct addrinfo, ai_f
amily), (unsigned int)sizeof(((struct addrinfo*)0)->ai_family));
  printf("%s %u %u\n", "ai_socktype", (unsigned int)offsetof(struct addrinfo, ai
_socktype), (unsigned int)sizeof(((struct addrinfo*)0)->ai_socktype));
  printf("%s %u %u\n", "ai_protocol", (unsigned int)offsetof(struct addrinfo, ai
_protocol), (unsigned int)sizeof(((struct addrinfo*)0)->ai_protocol));
  printf("%s %u %u\n", "ai_addrlen", (unsigned int)offsetof(struct addrinfo, ai_
addrlen), (unsigned int)sizeof(((struct addrinfo*)0)->ai_addrlen));
  printf("%s %u %u\n", "ai_addr", (unsigned int)offsetof(struct addrinfo, ai_add
r), (unsigned int)sizeof(((struct addrinfo*)0)->ai_addr));
  printf("%s %u %u\n", "ai_canonname", (unsigned int)offsetof(struct addrinfo, a
i_canonname), (unsigned int)sizeof(((struct addrinfo*)0)->ai_canonname));
  printf("%s %u %u\n", "ai_next", (unsigned int)offsetof(struct addrinfo, ai_nex
t), (unsigned int)sizeof(((struct addrinfo*)0)->ai_next));

        return 0;
}
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0: In function `main
':
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:8: error: derefere
ncing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:8: error: derefere
ncing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:9: error: derefere
ncing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:9: error: derefere
ncing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:10: error: derefer
$
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:10: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:11: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:11: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:12: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:12: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:13: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:13: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:14: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:14: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:15: error: derefer
encing pointer to incomplete type
/cygdrive/c/DOCUME~1/A/LOCALS~1/Temp/rbx_struct_gen_tmp.652.0:15: error: derefer
encing pointer to incomplete type
#include <stdio.h>
#include <dirent.h>
#include <stddef.h>

int main(int argc, char **argv)
{
  printf("%s %u %u\n", "d_name", (unsigned int)offsetof(struct dirent, d_name),
(unsigned int)sizeof(((struct dirent*)0)->d_name));

        return 0;
}
rake aborted!
No such file or directory - rb_struct_gen_bin_652
./rakelib/struct_generator.rb:110:in `unlink'
./rakelib/struct_generator.rb:110:in `calculate'
/home/A/rubinius/rakelib/platform.rake:20
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'

/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'

/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'

/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'

/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'

/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'

/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chai
n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_h
andling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_h
andling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19