Project

General

Profile

Feature #15665 ยป mkmf.log

franklinyu (Franklin Yu), 05/23/2019 05:10 AM

 
1
have_header: checking for sys/uio.h... -------------------- yes
2

    
3
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
4
In file included from conftest.c:1:
5
In file included from ../.././include/ruby.h:33:
6
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
7
rb_array_ptr_use_end(VALUE a, int allow_transient)
8
                                  ^
9
conftest.c:3:14: warning: unused parameter 'argc' [-Wunused-parameter]
10
int main(int argc, char **argv)
11
             ^
12
conftest.c:3:27: warning: unused parameter 'argv' [-Wunused-parameter]
13
int main(int argc, char **argv)
14
                          ^
15
3 warnings generated.
16
checked program was:
17
/* begin */
18
1: #include "ruby.h"
19
2: 
20
3: int main(int argc, char **argv)
21
4: {
22
5:   return 0;
23
6: }
24
/* end */
25

    
26
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
27
checked program was:
28
/* begin */
29
1: #include "ruby.h"
30
2: 
31
3: #include <sys/types.h>
32
4: #include <netdb.h>
33
5: #include <string.h>
34
6: #include <sys/socket.h>
35
7: #include <netinet/in.h>
36
8: #include <sys/uio.h>
37
/* end */
38

    
39
--------------------
40

    
41
have_header: checking for xti.h... -------------------- no
42

    
43
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
44
conftest.c:9:10: fatal error: 'xti.h' file not found
45
#include <xti.h>
46
         ^~~~~~~
47
1 error generated.
48
checked program was:
49
/* begin */
50
1: #include "ruby.h"
51
2: 
52
3: #include <sys/types.h>
53
4: #include <netdb.h>
54
5: #include <string.h>
55
6: #include <sys/socket.h>
56
7: #include <netinet/in.h>
57
8: #include <sys/uio.h>
58
9: #include <xti.h>
59
/* end */
60

    
61
--------------------
62

    
63
have_header: checking for netinet/in_systm.h... -------------------- yes
64

    
65
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
66
checked program was:
67
/* begin */
68
1: #include "ruby.h"
69
2: 
70
3: #include <sys/types.h>
71
4: #include <netdb.h>
72
5: #include <string.h>
73
6: #include <sys/socket.h>
74
7: #include <netinet/in.h>
75
8: #include <sys/uio.h>
76
9: #include <netinet/in_systm.h>
77
/* end */
78

    
79
--------------------
80

    
81
have_header: checking for netinet/tcp.h... -------------------- yes
82

    
83
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
84
checked program was:
85
/* begin */
86
 1: #include "ruby.h"
87
 2: 
88
 3: #include <sys/types.h>
89
 4: #include <netdb.h>
90
 5: #include <string.h>
91
 6: #include <sys/socket.h>
92
 7: #include <netinet/in.h>
93
 8: #include <sys/uio.h>
94
 9: #include <netinet/in_systm.h>
95
10: #include <netinet/tcp.h>
96
/* end */
97

    
98
--------------------
99

    
100
have_header: checking for netinet/tcp_fsm.h... -------------------- yes
101

    
102
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
103
checked program was:
104
/* begin */
105
 1: #include "ruby.h"
106
 2: 
107
 3: #include <sys/types.h>
108
 4: #include <netdb.h>
109
 5: #include <string.h>
110
 6: #include <sys/socket.h>
111
 7: #include <netinet/in.h>
112
 8: #include <sys/uio.h>
113
 9: #include <netinet/in_systm.h>
114
10: #include <netinet/tcp.h>
115
11: #include <netinet/tcp_fsm.h>
116
/* end */
117

    
118
--------------------
119

    
120
have_header: checking for netinet/udp.h... -------------------- yes
121

    
122
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
123
checked program was:
124
/* begin */
125
 1: #include "ruby.h"
126
 2: 
127
 3: #include <sys/types.h>
128
 4: #include <netdb.h>
129
 5: #include <string.h>
130
 6: #include <sys/socket.h>
131
 7: #include <netinet/in.h>
132
 8: #include <sys/uio.h>
133
 9: #include <netinet/in_systm.h>
134
10: #include <netinet/tcp.h>
135
11: #include <netinet/tcp_fsm.h>
136
12: #include <netinet/udp.h>
137
/* end */
138

    
139
--------------------
140

    
141
have_header: checking for arpa/inet.h... -------------------- yes
142

    
143
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
144
checked program was:
145
/* begin */
146
 1: #include "ruby.h"
147
 2: 
148
 3: #include <sys/types.h>
149
 4: #include <netdb.h>
150
 5: #include <string.h>
151
 6: #include <sys/socket.h>
152
 7: #include <netinet/in.h>
153
 8: #include <sys/uio.h>
154
 9: #include <netinet/in_systm.h>
155
10: #include <netinet/tcp.h>
156
11: #include <netinet/tcp_fsm.h>
157
12: #include <netinet/udp.h>
158
13: #include <arpa/inet.h>
159
/* end */
160

    
161
--------------------
162

    
163
have_header: checking for netpacket/packet.h... -------------------- no
164

    
165
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
166
conftest.c:14:10: fatal error: 'netpacket/packet.h' file not found
167
#include <netpacket/packet.h>
168
         ^~~~~~~~~~~~~~~~~~~~
169
1 error generated.
170
checked program was:
171
/* begin */
172
 1: #include "ruby.h"
173
 2: 
174
 3: #include <sys/types.h>
175
 4: #include <netdb.h>
176
 5: #include <string.h>
177
 6: #include <sys/socket.h>
178
 7: #include <netinet/in.h>
179
 8: #include <sys/uio.h>
180
 9: #include <netinet/in_systm.h>
181
10: #include <netinet/tcp.h>
182
11: #include <netinet/tcp_fsm.h>
183
12: #include <netinet/udp.h>
184
13: #include <arpa/inet.h>
185
14: #include <netpacket/packet.h>
186
/* end */
187

    
188
--------------------
189

    
190
have_header: checking for net/ethernet.h... -------------------- yes
191

    
192
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
193
checked program was:
194
/* begin */
195
 1: #include "ruby.h"
196
 2: 
197
 3: #include <sys/types.h>
198
 4: #include <netdb.h>
199
 5: #include <string.h>
200
 6: #include <sys/socket.h>
201
 7: #include <netinet/in.h>
202
 8: #include <sys/uio.h>
203
 9: #include <netinet/in_systm.h>
204
10: #include <netinet/tcp.h>
205
11: #include <netinet/tcp_fsm.h>
206
12: #include <netinet/udp.h>
207
13: #include <arpa/inet.h>
208
14: #include <net/ethernet.h>
209
/* end */
210

    
211
--------------------
212

    
213
have_header: checking for sys/un.h... -------------------- yes
214

    
215
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
216
checked program was:
217
/* begin */
218
 1: #include "ruby.h"
219
 2: 
220
 3: #include <sys/types.h>
221
 4: #include <netdb.h>
222
 5: #include <string.h>
223
 6: #include <sys/socket.h>
224
 7: #include <netinet/in.h>
225
 8: #include <sys/uio.h>
226
 9: #include <netinet/in_systm.h>
227
10: #include <netinet/tcp.h>
228
11: #include <netinet/tcp_fsm.h>
229
12: #include <netinet/udp.h>
230
13: #include <arpa/inet.h>
231
14: #include <net/ethernet.h>
232
15: #include <sys/un.h>
233
/* end */
234

    
235
--------------------
236

    
237
have_header: checking for ifaddrs.h... -------------------- yes
238

    
239
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
240
checked program was:
241
/* begin */
242
 1: #include "ruby.h"
243
 2: 
244
 3: #include <sys/types.h>
245
 4: #include <netdb.h>
246
 5: #include <string.h>
247
 6: #include <sys/socket.h>
248
 7: #include <netinet/in.h>
249
 8: #include <sys/uio.h>
250
 9: #include <netinet/in_systm.h>
251
10: #include <netinet/tcp.h>
252
11: #include <netinet/tcp_fsm.h>
253
12: #include <netinet/udp.h>
254
13: #include <arpa/inet.h>
255
14: #include <net/ethernet.h>
256
15: #include <sys/un.h>
257
16: #include <ifaddrs.h>
258
/* end */
259

    
260
--------------------
261

    
262
have_header: checking for sys/ioctl.h... -------------------- yes
263

    
264
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
265
checked program was:
266
/* begin */
267
 1: #include "ruby.h"
268
 2: 
269
 3: #include <sys/types.h>
270
 4: #include <netdb.h>
271
 5: #include <string.h>
272
 6: #include <sys/socket.h>
273
 7: #include <netinet/in.h>
274
 8: #include <sys/uio.h>
275
 9: #include <netinet/in_systm.h>
276
10: #include <netinet/tcp.h>
277
11: #include <netinet/tcp_fsm.h>
278
12: #include <netinet/udp.h>
279
13: #include <arpa/inet.h>
280
14: #include <net/ethernet.h>
281
15: #include <sys/un.h>
282
16: #include <ifaddrs.h>
283
17: #include <sys/ioctl.h>
284
/* end */
285

    
286
--------------------
287

    
288
have_header: checking for sys/sockio.h... -------------------- yes
289

    
290
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
291
checked program was:
292
/* begin */
293
 1: #include "ruby.h"
294
 2: 
295
 3: #include <sys/types.h>
296
 4: #include <netdb.h>
297
 5: #include <string.h>
298
 6: #include <sys/socket.h>
299
 7: #include <netinet/in.h>
300
 8: #include <sys/uio.h>
301
 9: #include <netinet/in_systm.h>
302
10: #include <netinet/tcp.h>
303
11: #include <netinet/tcp_fsm.h>
304
12: #include <netinet/udp.h>
305
13: #include <arpa/inet.h>
306
14: #include <net/ethernet.h>
307
15: #include <sys/un.h>
308
16: #include <ifaddrs.h>
309
17: #include <sys/ioctl.h>
310
18: #include <sys/sockio.h>
311
/* end */
312

    
313
--------------------
314

    
315
have_header: checking for net/if.h... -------------------- yes
316

    
317
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
318
checked program was:
319
/* begin */
320
 1: #include "ruby.h"
321
 2: 
322
 3: #include <sys/types.h>
323
 4: #include <netdb.h>
324
 5: #include <string.h>
325
 6: #include <sys/socket.h>
326
 7: #include <netinet/in.h>
327
 8: #include <sys/uio.h>
328
 9: #include <netinet/in_systm.h>
329
10: #include <netinet/tcp.h>
330
11: #include <netinet/tcp_fsm.h>
331
12: #include <netinet/udp.h>
332
13: #include <arpa/inet.h>
333
14: #include <net/ethernet.h>
334
15: #include <sys/un.h>
335
16: #include <ifaddrs.h>
336
17: #include <sys/ioctl.h>
337
18: #include <sys/sockio.h>
338
19: #include <net/if.h>
339
/* end */
340

    
341
--------------------
342

    
343
have_header: checking for sys/param.h... -------------------- yes
344

    
345
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
346
checked program was:
347
/* begin */
348
 1: #include "ruby.h"
349
 2: 
350
 3: #include <sys/types.h>
351
 4: #include <netdb.h>
352
 5: #include <string.h>
353
 6: #include <sys/socket.h>
354
 7: #include <netinet/in.h>
355
 8: #include <sys/uio.h>
356
 9: #include <netinet/in_systm.h>
357
10: #include <netinet/tcp.h>
358
11: #include <netinet/tcp_fsm.h>
359
12: #include <netinet/udp.h>
360
13: #include <arpa/inet.h>
361
14: #include <net/ethernet.h>
362
15: #include <sys/un.h>
363
16: #include <ifaddrs.h>
364
17: #include <sys/ioctl.h>
365
18: #include <sys/sockio.h>
366
19: #include <net/if.h>
367
20: #include <sys/param.h>
368
/* end */
369

    
370
--------------------
371

    
372
have_header: checking for sys/ucred.h... -------------------- yes
373

    
374
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
375
checked program was:
376
/* begin */
377
 1: #include "ruby.h"
378
 2: 
379
 3: #include <sys/types.h>
380
 4: #include <netdb.h>
381
 5: #include <string.h>
382
 6: #include <sys/socket.h>
383
 7: #include <netinet/in.h>
384
 8: #include <sys/uio.h>
385
 9: #include <netinet/in_systm.h>
386
10: #include <netinet/tcp.h>
387
11: #include <netinet/tcp_fsm.h>
388
12: #include <netinet/udp.h>
389
13: #include <arpa/inet.h>
390
14: #include <net/ethernet.h>
391
15: #include <sys/un.h>
392
16: #include <ifaddrs.h>
393
17: #include <sys/ioctl.h>
394
18: #include <sys/sockio.h>
395
19: #include <net/if.h>
396
20: #include <sys/param.h>
397
21: #include <sys/ucred.h>
398
/* end */
399

    
400
--------------------
401

    
402
have_header: checking for ucred.h... -------------------- no
403

    
404
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
405
conftest.c:22:10: fatal error: 'ucred.h' file not found
406
#include <ucred.h>
407
         ^~~~~~~~~
408
1 error generated.
409
checked program was:
410
/* begin */
411
 1: #include "ruby.h"
412
 2: 
413
 3: #include <sys/types.h>
414
 4: #include <netdb.h>
415
 5: #include <string.h>
416
 6: #include <sys/socket.h>
417
 7: #include <netinet/in.h>
418
 8: #include <sys/uio.h>
419
 9: #include <netinet/in_systm.h>
420
10: #include <netinet/tcp.h>
421
11: #include <netinet/tcp_fsm.h>
422
12: #include <netinet/udp.h>
423
13: #include <arpa/inet.h>
424
14: #include <net/ethernet.h>
425
15: #include <sys/un.h>
426
16: #include <ifaddrs.h>
427
17: #include <sys/ioctl.h>
428
18: #include <sys/sockio.h>
429
19: #include <net/if.h>
430
20: #include <sys/param.h>
431
21: #include <sys/ucred.h>
432
22: #include <ucred.h>
433
/* end */
434

    
435
--------------------
436

    
437
have_header: checking for net/if_dl.h... -------------------- yes
438

    
439
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
440
checked program was:
441
/* begin */
442
 1: #include "ruby.h"
443
 2: 
444
 3: #include <sys/types.h>
445
 4: #include <netdb.h>
446
 5: #include <string.h>
447
 6: #include <sys/socket.h>
448
 7: #include <netinet/in.h>
449
 8: #include <sys/uio.h>
450
 9: #include <netinet/in_systm.h>
451
10: #include <netinet/tcp.h>
452
11: #include <netinet/tcp_fsm.h>
453
12: #include <netinet/udp.h>
454
13: #include <arpa/inet.h>
455
14: #include <net/ethernet.h>
456
15: #include <sys/un.h>
457
16: #include <ifaddrs.h>
458
17: #include <sys/ioctl.h>
459
18: #include <sys/sockio.h>
460
19: #include <net/if.h>
461
20: #include <sys/param.h>
462
21: #include <sys/ucred.h>
463
22: #include <net/if_dl.h>
464
/* end */
465

    
466
--------------------
467

    
468
have_header: checking for arpa/nameser.h... -------------------- yes
469

    
470
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
471
checked program was:
472
/* begin */
473
 1: #include "ruby.h"
474
 2: 
475
 3: #include <sys/types.h>
476
 4: #include <netdb.h>
477
 5: #include <string.h>
478
 6: #include <sys/socket.h>
479
 7: #include <netinet/in.h>
480
 8: #include <sys/uio.h>
481
 9: #include <netinet/in_systm.h>
482
10: #include <netinet/tcp.h>
483
11: #include <netinet/tcp_fsm.h>
484
12: #include <netinet/udp.h>
485
13: #include <arpa/inet.h>
486
14: #include <net/ethernet.h>
487
15: #include <sys/un.h>
488
16: #include <ifaddrs.h>
489
17: #include <sys/ioctl.h>
490
18: #include <sys/sockio.h>
491
19: #include <net/if.h>
492
20: #include <sys/param.h>
493
21: #include <sys/ucred.h>
494
22: #include <net/if_dl.h>
495
23: #include <arpa/nameser.h>
496
/* end */
497

    
498
--------------------
499

    
500
have_header: checking for resolv.h... -------------------- yes
501

    
502
"clang -E -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  conftest.c -o conftest.i"
503
checked program was:
504
/* begin */
505
 1: #include "ruby.h"
506
 2: 
507
 3: #include <sys/types.h>
508
 4: #include <netdb.h>
509
 5: #include <string.h>
510
 6: #include <sys/socket.h>
511
 7: #include <netinet/in.h>
512
 8: #include <sys/uio.h>
513
 9: #include <netinet/in_systm.h>
514
10: #include <netinet/tcp.h>
515
11: #include <netinet/tcp_fsm.h>
516
12: #include <netinet/udp.h>
517
13: #include <arpa/inet.h>
518
14: #include <net/ethernet.h>
519
15: #include <sys/un.h>
520
16: #include <ifaddrs.h>
521
17: #include <sys/ioctl.h>
522
18: #include <sys/sockio.h>
523
19: #include <net/if.h>
524
20: #include <sys/param.h>
525
21: #include <sys/ucred.h>
526
22: #include <net/if_dl.h>
527
23: #include <arpa/nameser.h>
528
24: #include <resolv.h>
529
/* end */
530

    
531
--------------------
532

    
533
have_struct_member: checking for struct sockaddr.sa_len in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
534

    
535
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
536
In file included from conftest.c:1:
537
In file included from ../.././include/ruby.h:33:
538
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
539
rb_array_ptr_use_end(VALUE a, int allow_transient)
540
                                  ^
541
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
542
int main(int argc, char **argv)
543
             ^
544
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
545
int main(int argc, char **argv)
546
                          ^
547
3 warnings generated.
548
checked program was:
549
/* begin */
550
 1: #include "ruby.h"
551
 2: 
552
 3: #include <sys/types.h>
553
 4: #include <netdb.h>
554
 5: #include <string.h>
555
 6: #include <sys/socket.h>
556
 7: #include <netinet/in.h>
557
 8: #include <sys/uio.h>
558
 9: #include <netinet/in_systm.h>
559
10: #include <netinet/tcp.h>
560
11: #include <netinet/tcp_fsm.h>
561
12: #include <netinet/udp.h>
562
13: #include <arpa/inet.h>
563
14: #include <net/ethernet.h>
564
15: #include <sys/un.h>
565
16: #include <ifaddrs.h>
566
17: #include <sys/ioctl.h>
567
18: #include <sys/sockio.h>
568
19: #include <net/if.h>
569
20: #include <sys/param.h>
570
21: #include <sys/ucred.h>
571
22: #include <net/if_dl.h>
572
23: #include <arpa/nameser.h>
573
24: #include <resolv.h>
574
25: 
575
26: /*top*/
576
27: int s = (char *)&((struct sockaddr*)0)->sa_len - (char *)0;
577
28: int main(int argc, char **argv)
578
29: {
579
30:   return 0;
580
31: }
581
/* end */
582

    
583
--------------------
584

    
585
have_struct_member: checking for struct sockaddr_in.sin_len in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
586

    
587
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
588
In file included from conftest.c:1:
589
In file included from ../.././include/ruby.h:33:
590
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
591
rb_array_ptr_use_end(VALUE a, int allow_transient)
592
                                  ^
593
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
594
int main(int argc, char **argv)
595
             ^
596
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
597
int main(int argc, char **argv)
598
                          ^
599
3 warnings generated.
600
checked program was:
601
/* begin */
602
 1: #include "ruby.h"
603
 2: 
604
 3: #include <sys/types.h>
605
 4: #include <netdb.h>
606
 5: #include <string.h>
607
 6: #include <sys/socket.h>
608
 7: #include <netinet/in.h>
609
 8: #include <sys/uio.h>
610
 9: #include <netinet/in_systm.h>
611
10: #include <netinet/tcp.h>
612
11: #include <netinet/tcp_fsm.h>
613
12: #include <netinet/udp.h>
614
13: #include <arpa/inet.h>
615
14: #include <net/ethernet.h>
616
15: #include <sys/un.h>
617
16: #include <ifaddrs.h>
618
17: #include <sys/ioctl.h>
619
18: #include <sys/sockio.h>
620
19: #include <net/if.h>
621
20: #include <sys/param.h>
622
21: #include <sys/ucred.h>
623
22: #include <net/if_dl.h>
624
23: #include <arpa/nameser.h>
625
24: #include <resolv.h>
626
25: 
627
26: /*top*/
628
27: int s = (char *)&((struct sockaddr_in*)0)->sin_len - (char *)0;
629
28: int main(int argc, char **argv)
630
29: {
631
30:   return 0;
632
31: }
633
/* end */
634

    
635
--------------------
636

    
637
have_struct_member: checking for struct sockaddr_in6.sin6_len in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
638

    
639
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
640
In file included from conftest.c:1:
641
In file included from ../.././include/ruby.h:33:
642
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
643
rb_array_ptr_use_end(VALUE a, int allow_transient)
644
                                  ^
645
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
646
int main(int argc, char **argv)
647
             ^
648
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
649
int main(int argc, char **argv)
650
                          ^
651
3 warnings generated.
652
checked program was:
653
/* begin */
654
 1: #include "ruby.h"
655
 2: 
656
 3: #include <sys/types.h>
657
 4: #include <netdb.h>
658
 5: #include <string.h>
659
 6: #include <sys/socket.h>
660
 7: #include <netinet/in.h>
661
 8: #include <sys/uio.h>
662
 9: #include <netinet/in_systm.h>
663
10: #include <netinet/tcp.h>
664
11: #include <netinet/tcp_fsm.h>
665
12: #include <netinet/udp.h>
666
13: #include <arpa/inet.h>
667
14: #include <net/ethernet.h>
668
15: #include <sys/un.h>
669
16: #include <ifaddrs.h>
670
17: #include <sys/ioctl.h>
671
18: #include <sys/sockio.h>
672
19: #include <net/if.h>
673
20: #include <sys/param.h>
674
21: #include <sys/ucred.h>
675
22: #include <net/if_dl.h>
676
23: #include <arpa/nameser.h>
677
24: #include <resolv.h>
678
25: 
679
26: /*top*/
680
27: int s = (char *)&((struct sockaddr_in6*)0)->sin6_len - (char *)0;
681
28: int main(int argc, char **argv)
682
29: {
683
30:   return 0;
684
31: }
685
/* end */
686

    
687
--------------------
688

    
689
have_type: checking for struct sockaddr_un in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
690

    
691
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
692
In file included from conftest.c:1:
693
In file included from ../.././include/ruby.h:33:
694
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
695
rb_array_ptr_use_end(VALUE a, int allow_transient)
696
                                  ^
697
1 warning generated.
698
checked program was:
699
/* begin */
700
 1: #include "ruby.h"
701
 2: 
702
 3: #include <sys/types.h>
703
 4: #include <netdb.h>
704
 5: #include <string.h>
705
 6: #include <sys/socket.h>
706
 7: #include <netinet/in.h>
707
 8: #include <sys/uio.h>
708
 9: #include <netinet/in_systm.h>
709
10: #include <netinet/tcp.h>
710
11: #include <netinet/tcp_fsm.h>
711
12: #include <netinet/udp.h>
712
13: #include <arpa/inet.h>
713
14: #include <net/ethernet.h>
714
15: #include <sys/un.h>
715
16: #include <ifaddrs.h>
716
17: #include <sys/ioctl.h>
717
18: #include <sys/sockio.h>
718
19: #include <net/if.h>
719
20: #include <sys/param.h>
720
21: #include <sys/ucred.h>
721
22: #include <net/if_dl.h>
722
23: #include <arpa/nameser.h>
723
24: #include <resolv.h>
724
25: 
725
26: /*top*/
726
27: typedef struct sockaddr_un conftest_type;
727
28: int conftestval[sizeof(conftest_type)?1:-1];
728
/* end */
729

    
730
--------------------
731

    
732
have_struct_member: checking for struct sockaddr_un.sun_len in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
733

    
734
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
735
In file included from conftest.c:1:
736
In file included from ../.././include/ruby.h:33:
737
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
738
rb_array_ptr_use_end(VALUE a, int allow_transient)
739
                                  ^
740
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
741
int main(int argc, char **argv)
742
             ^
743
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
744
int main(int argc, char **argv)
745
                          ^
746
3 warnings generated.
747
checked program was:
748
/* begin */
749
 1: #include "ruby.h"
750
 2: 
751
 3: #include <sys/types.h>
752
 4: #include <netdb.h>
753
 5: #include <string.h>
754
 6: #include <sys/socket.h>
755
 7: #include <netinet/in.h>
756
 8: #include <sys/uio.h>
757
 9: #include <netinet/in_systm.h>
758
10: #include <netinet/tcp.h>
759
11: #include <netinet/tcp_fsm.h>
760
12: #include <netinet/udp.h>
761
13: #include <arpa/inet.h>
762
14: #include <net/ethernet.h>
763
15: #include <sys/un.h>
764
16: #include <ifaddrs.h>
765
17: #include <sys/ioctl.h>
766
18: #include <sys/sockio.h>
767
19: #include <net/if.h>
768
20: #include <sys/param.h>
769
21: #include <sys/ucred.h>
770
22: #include <net/if_dl.h>
771
23: #include <arpa/nameser.h>
772
24: #include <resolv.h>
773
25: 
774
26: /*top*/
775
27: int s = (char *)&((struct sockaddr_un*)0)->sun_len - (char *)0;
776
28: int main(int argc, char **argv)
777
29: {
778
30:   return 0;
779
31: }
780
/* end */
781

    
782
--------------------
783

    
784
have_type: checking for struct sockaddr_dl in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
785

    
786
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
787
In file included from conftest.c:1:
788
In file included from ../.././include/ruby.h:33:
789
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
790
rb_array_ptr_use_end(VALUE a, int allow_transient)
791
                                  ^
792
1 warning generated.
793
checked program was:
794
/* begin */
795
 1: #include "ruby.h"
796
 2: 
797
 3: #include <sys/types.h>
798
 4: #include <netdb.h>
799
 5: #include <string.h>
800
 6: #include <sys/socket.h>
801
 7: #include <netinet/in.h>
802
 8: #include <sys/uio.h>
803
 9: #include <netinet/in_systm.h>
804
10: #include <netinet/tcp.h>
805
11: #include <netinet/tcp_fsm.h>
806
12: #include <netinet/udp.h>
807
13: #include <arpa/inet.h>
808
14: #include <net/ethernet.h>
809
15: #include <sys/un.h>
810
16: #include <ifaddrs.h>
811
17: #include <sys/ioctl.h>
812
18: #include <sys/sockio.h>
813
19: #include <net/if.h>
814
20: #include <sys/param.h>
815
21: #include <sys/ucred.h>
816
22: #include <net/if_dl.h>
817
23: #include <arpa/nameser.h>
818
24: #include <resolv.h>
819
25: 
820
26: /*top*/
821
27: typedef struct sockaddr_dl conftest_type;
822
28: int conftestval[sizeof(conftest_type)?1:-1];
823
/* end */
824

    
825
--------------------
826

    
827
have_type: checking for struct sockaddr_storage in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
828

    
829
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
830
In file included from conftest.c:1:
831
In file included from ../.././include/ruby.h:33:
832
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
833
rb_array_ptr_use_end(VALUE a, int allow_transient)
834
                                  ^
835
1 warning generated.
836
checked program was:
837
/* begin */
838
 1: #include "ruby.h"
839
 2: 
840
 3: #include <sys/types.h>
841
 4: #include <netdb.h>
842
 5: #include <string.h>
843
 6: #include <sys/socket.h>
844
 7: #include <netinet/in.h>
845
 8: #include <sys/uio.h>
846
 9: #include <netinet/in_systm.h>
847
10: #include <netinet/tcp.h>
848
11: #include <netinet/tcp_fsm.h>
849
12: #include <netinet/udp.h>
850
13: #include <arpa/inet.h>
851
14: #include <net/ethernet.h>
852
15: #include <sys/un.h>
853
16: #include <ifaddrs.h>
854
17: #include <sys/ioctl.h>
855
18: #include <sys/sockio.h>
856
19: #include <net/if.h>
857
20: #include <sys/param.h>
858
21: #include <sys/ucred.h>
859
22: #include <net/if_dl.h>
860
23: #include <arpa/nameser.h>
861
24: #include <resolv.h>
862
25: 
863
26: /*top*/
864
27: typedef struct sockaddr_storage conftest_type;
865
28: int conftestval[sizeof(conftest_type)?1:-1];
866
/* end */
867

    
868
--------------------
869

    
870
have_type: checking for struct addrinfo in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
871

    
872
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
873
In file included from conftest.c:1:
874
In file included from ../.././include/ruby.h:33:
875
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
876
rb_array_ptr_use_end(VALUE a, int allow_transient)
877
                                  ^
878
1 warning generated.
879
checked program was:
880
/* begin */
881
 1: #include "ruby.h"
882
 2: 
883
 3: #include <sys/types.h>
884
 4: #include <netdb.h>
885
 5: #include <string.h>
886
 6: #include <sys/socket.h>
887
 7: #include <netinet/in.h>
888
 8: #include <sys/uio.h>
889
 9: #include <netinet/in_systm.h>
890
10: #include <netinet/tcp.h>
891
11: #include <netinet/tcp_fsm.h>
892
12: #include <netinet/udp.h>
893
13: #include <arpa/inet.h>
894
14: #include <net/ethernet.h>
895
15: #include <sys/un.h>
896
16: #include <ifaddrs.h>
897
17: #include <sys/ioctl.h>
898
18: #include <sys/sockio.h>
899
19: #include <net/if.h>
900
20: #include <sys/param.h>
901
21: #include <sys/ucred.h>
902
22: #include <net/if_dl.h>
903
23: #include <arpa/nameser.h>
904
24: #include <resolv.h>
905
25: 
906
26: /*top*/
907
27: typedef struct addrinfo conftest_type;
908
28: int conftestval[sizeof(conftest_type)?1:-1];
909
/* end */
910

    
911
--------------------
912

    
913
have_type: checking for socklen_t in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
914

    
915
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
916
In file included from conftest.c:1:
917
In file included from ../.././include/ruby.h:33:
918
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
919
rb_array_ptr_use_end(VALUE a, int allow_transient)
920
                                  ^
921
1 warning generated.
922
checked program was:
923
/* begin */
924
 1: #include "ruby.h"
925
 2: 
926
 3: #include <sys/types.h>
927
 4: #include <netdb.h>
928
 5: #include <string.h>
929
 6: #include <sys/socket.h>
930
 7: #include <netinet/in.h>
931
 8: #include <sys/uio.h>
932
 9: #include <netinet/in_systm.h>
933
10: #include <netinet/tcp.h>
934
11: #include <netinet/tcp_fsm.h>
935
12: #include <netinet/udp.h>
936
13: #include <arpa/inet.h>
937
14: #include <net/ethernet.h>
938
15: #include <sys/un.h>
939
16: #include <ifaddrs.h>
940
17: #include <sys/ioctl.h>
941
18: #include <sys/sockio.h>
942
19: #include <net/if.h>
943
20: #include <sys/param.h>
944
21: #include <sys/ucred.h>
945
22: #include <net/if_dl.h>
946
23: #include <arpa/nameser.h>
947
24: #include <resolv.h>
948
25: 
949
26: /*top*/
950
27: typedef socklen_t conftest_type;
951
28: int conftestval[sizeof(conftest_type)?1:-1];
952
/* end */
953

    
954
--------------------
955

    
956
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
957
In file included from conftest.c:1:
958
In file included from ../.././include/ruby.h:33:
959
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
960
rb_array_ptr_use_end(VALUE a, int allow_transient)
961
                                  ^
962
conftest.c:27:20: error: 'conftest_const' declared as an array with a negative size
963
int conftest_const[(sizeof(socklen_t) >= sizeof(long)) ? 1 : -1];
964
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
965
1 warning and 1 error generated.
966
checked program was:
967
/* begin */
968
 1: #include "ruby.h"
969
 2: 
970
 3: #include <sys/types.h>
971
 4: #include <netdb.h>
972
 5: #include <string.h>
973
 6: #include <sys/socket.h>
974
 7: #include <netinet/in.h>
975
 8: #include <sys/uio.h>
976
 9: #include <netinet/in_systm.h>
977
10: #include <netinet/tcp.h>
978
11: #include <netinet/tcp_fsm.h>
979
12: #include <netinet/udp.h>
980
13: #include <arpa/inet.h>
981
14: #include <net/ethernet.h>
982
15: #include <sys/un.h>
983
16: #include <ifaddrs.h>
984
17: #include <sys/ioctl.h>
985
18: #include <sys/sockio.h>
986
19: #include <net/if.h>
987
20: #include <sys/param.h>
988
21: #include <sys/ucred.h>
989
22: #include <net/if_dl.h>
990
23: #include <arpa/nameser.h>
991
24: #include <resolv.h>
992
25: 
993
26: /*top*/
994
27: int conftest_const[(sizeof(socklen_t) >= sizeof(long)) ? 1 : -1];
995
/* end */
996

    
997
have_type: checking for struct in_pktinfo in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
998

    
999
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1000
In file included from conftest.c:1:
1001
In file included from ../.././include/ruby.h:33:
1002
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1003
rb_array_ptr_use_end(VALUE a, int allow_transient)
1004
                                  ^
1005
1 warning generated.
1006
checked program was:
1007
/* begin */
1008
 1: #include "ruby.h"
1009
 2: 
1010
 3: #include <sys/types.h>
1011
 4: #include <netdb.h>
1012
 5: #include <string.h>
1013
 6: #include <sys/socket.h>
1014
 7: #include <netinet/in.h>
1015
 8: #include <sys/uio.h>
1016
 9: #include <netinet/in_systm.h>
1017
10: #include <netinet/tcp.h>
1018
11: #include <netinet/tcp_fsm.h>
1019
12: #include <netinet/udp.h>
1020
13: #include <arpa/inet.h>
1021
14: #include <net/ethernet.h>
1022
15: #include <sys/un.h>
1023
16: #include <ifaddrs.h>
1024
17: #include <sys/ioctl.h>
1025
18: #include <sys/sockio.h>
1026
19: #include <net/if.h>
1027
20: #include <sys/param.h>
1028
21: #include <sys/ucred.h>
1029
22: #include <net/if_dl.h>
1030
23: #include <arpa/nameser.h>
1031
24: #include <resolv.h>
1032
25: 
1033
26: /*top*/
1034
27: #if defined(IPPROTO_IP) && defined(IP_PKTINFO)
1035
28: typedef struct in_pktinfo conftest_type;
1036
29: int conftestval[sizeof(conftest_type)?1:-1];
1037
30: #else
1038
31: #error
1039
32: >>>>>> no in_pktinfo <<<<<<
1040
33: #endif
1041
/* end */
1042

    
1043
--------------------
1044

    
1045
have_struct_member: checking for struct in_pktinfo.ipi_spec_dst in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1046

    
1047
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1048
In file included from conftest.c:1:
1049
In file included from ../.././include/ruby.h:33:
1050
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1051
rb_array_ptr_use_end(VALUE a, int allow_transient)
1052
                                  ^
1053
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
1054
int main(int argc, char **argv)
1055
             ^
1056
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1057
int main(int argc, char **argv)
1058
                          ^
1059
3 warnings generated.
1060
checked program was:
1061
/* begin */
1062
 1: #include "ruby.h"
1063
 2: 
1064
 3: #include <sys/types.h>
1065
 4: #include <netdb.h>
1066
 5: #include <string.h>
1067
 6: #include <sys/socket.h>
1068
 7: #include <netinet/in.h>
1069
 8: #include <sys/uio.h>
1070
 9: #include <netinet/in_systm.h>
1071
10: #include <netinet/tcp.h>
1072
11: #include <netinet/tcp_fsm.h>
1073
12: #include <netinet/udp.h>
1074
13: #include <arpa/inet.h>
1075
14: #include <net/ethernet.h>
1076
15: #include <sys/un.h>
1077
16: #include <ifaddrs.h>
1078
17: #include <sys/ioctl.h>
1079
18: #include <sys/sockio.h>
1080
19: #include <net/if.h>
1081
20: #include <sys/param.h>
1082
21: #include <sys/ucred.h>
1083
22: #include <net/if_dl.h>
1084
23: #include <arpa/nameser.h>
1085
24: #include <resolv.h>
1086
25: 
1087
26: /*top*/
1088
27: int s = (char *)&((struct in_pktinfo*)0)->ipi_spec_dst - (char *)0;
1089
28: int main(int argc, char **argv)
1090
29: {
1091
30:   return 0;
1092
31: }
1093
/* end */
1094

    
1095
--------------------
1096

    
1097
have_type: checking for struct in6_pktinfo in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1098

    
1099
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1100
In file included from conftest.c:1:
1101
In file included from ../.././include/ruby.h:33:
1102
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1103
rb_array_ptr_use_end(VALUE a, int allow_transient)
1104
                                  ^
1105
1 warning generated.
1106
checked program was:
1107
/* begin */
1108
 1: #include "ruby.h"
1109
 2: 
1110
 3: #include <sys/types.h>
1111
 4: #include <netdb.h>
1112
 5: #include <string.h>
1113
 6: #include <sys/socket.h>
1114
 7: #include <netinet/in.h>
1115
 8: #include <sys/uio.h>
1116
 9: #include <netinet/in_systm.h>
1117
10: #include <netinet/tcp.h>
1118
11: #include <netinet/tcp_fsm.h>
1119
12: #include <netinet/udp.h>
1120
13: #include <arpa/inet.h>
1121
14: #include <net/ethernet.h>
1122
15: #include <sys/un.h>
1123
16: #include <ifaddrs.h>
1124
17: #include <sys/ioctl.h>
1125
18: #include <sys/sockio.h>
1126
19: #include <net/if.h>
1127
20: #include <sys/param.h>
1128
21: #include <sys/ucred.h>
1129
22: #include <net/if_dl.h>
1130
23: #include <arpa/nameser.h>
1131
24: #include <resolv.h>
1132
25: 
1133
26: /*top*/
1134
27: #if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)
1135
28: typedef struct in6_pktinfo conftest_type;
1136
29: int conftestval[sizeof(conftest_type)?1:-1];
1137
30: #else
1138
31: #error
1139
32: >>>>>> no in6_pktinfo <<<<<<
1140
33: #endif
1141
/* end */
1142

    
1143
--------------------
1144

    
1145
have_type: checking for struct sockcred in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
1146

    
1147
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1148
In file included from conftest.c:1:
1149
In file included from ../.././include/ruby.h:33:
1150
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1151
rb_array_ptr_use_end(VALUE a, int allow_transient)
1152
                                  ^
1153
conftest.c:28:17: error: invalid application of 'sizeof' to an incomplete type 'conftest_type' (aka 'struct sockcred')
1154
int conftestval[sizeof(conftest_type)?1:-1];
1155
                ^     ~~~~~~~~~~~~~~~
1156
conftest.c:27:16: note: forward declaration of 'struct sockcred'
1157
typedef struct sockcred conftest_type;
1158
               ^
1159
1 warning and 1 error generated.
1160
checked program was:
1161
/* begin */
1162
 1: #include "ruby.h"
1163
 2: 
1164
 3: #include <sys/types.h>
1165
 4: #include <netdb.h>
1166
 5: #include <string.h>
1167
 6: #include <sys/socket.h>
1168
 7: #include <netinet/in.h>
1169
 8: #include <sys/uio.h>
1170
 9: #include <netinet/in_systm.h>
1171
10: #include <netinet/tcp.h>
1172
11: #include <netinet/tcp_fsm.h>
1173
12: #include <netinet/udp.h>
1174
13: #include <arpa/inet.h>
1175
14: #include <net/ethernet.h>
1176
15: #include <sys/un.h>
1177
16: #include <ifaddrs.h>
1178
17: #include <sys/ioctl.h>
1179
18: #include <sys/sockio.h>
1180
19: #include <net/if.h>
1181
20: #include <sys/param.h>
1182
21: #include <sys/ucred.h>
1183
22: #include <net/if_dl.h>
1184
23: #include <arpa/nameser.h>
1185
24: #include <resolv.h>
1186
25: 
1187
26: /*top*/
1188
27: typedef struct sockcred conftest_type;
1189
28: int conftestval[sizeof(conftest_type)?1:-1];
1190
/* end */
1191

    
1192
--------------------
1193

    
1194
have_type: checking for struct cmsgcred in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
1195

    
1196
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1197
In file included from conftest.c:1:
1198
In file included from ../.././include/ruby.h:33:
1199
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1200
rb_array_ptr_use_end(VALUE a, int allow_transient)
1201
                                  ^
1202
conftest.c:28:17: error: invalid application of 'sizeof' to an incomplete type 'conftest_type' (aka 'struct cmsgcred')
1203
int conftestval[sizeof(conftest_type)?1:-1];
1204
                ^     ~~~~~~~~~~~~~~~
1205
conftest.c:27:16: note: forward declaration of 'struct cmsgcred'
1206
typedef struct cmsgcred conftest_type;
1207
               ^
1208
1 warning and 1 error generated.
1209
checked program was:
1210
/* begin */
1211
 1: #include "ruby.h"
1212
 2: 
1213
 3: #include <sys/types.h>
1214
 4: #include <netdb.h>
1215
 5: #include <string.h>
1216
 6: #include <sys/socket.h>
1217
 7: #include <netinet/in.h>
1218
 8: #include <sys/uio.h>
1219
 9: #include <netinet/in_systm.h>
1220
10: #include <netinet/tcp.h>
1221
11: #include <netinet/tcp_fsm.h>
1222
12: #include <netinet/udp.h>
1223
13: #include <arpa/inet.h>
1224
14: #include <net/ethernet.h>
1225
15: #include <sys/un.h>
1226
16: #include <ifaddrs.h>
1227
17: #include <sys/ioctl.h>
1228
18: #include <sys/sockio.h>
1229
19: #include <net/if.h>
1230
20: #include <sys/param.h>
1231
21: #include <sys/ucred.h>
1232
22: #include <net/if_dl.h>
1233
23: #include <arpa/nameser.h>
1234
24: #include <resolv.h>
1235
25: 
1236
26: /*top*/
1237
27: typedef struct cmsgcred conftest_type;
1238
28: int conftestval[sizeof(conftest_type)?1:-1];
1239
/* end */
1240

    
1241
--------------------
1242

    
1243
have_type: checking for struct ip_mreq in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1244

    
1245
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1246
In file included from conftest.c:1:
1247
In file included from ../.././include/ruby.h:33:
1248
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1249
rb_array_ptr_use_end(VALUE a, int allow_transient)
1250
                                  ^
1251
1 warning generated.
1252
checked program was:
1253
/* begin */
1254
 1: #include "ruby.h"
1255
 2: 
1256
 3: #include <sys/types.h>
1257
 4: #include <netdb.h>
1258
 5: #include <string.h>
1259
 6: #include <sys/socket.h>
1260
 7: #include <netinet/in.h>
1261
 8: #include <sys/uio.h>
1262
 9: #include <netinet/in_systm.h>
1263
10: #include <netinet/tcp.h>
1264
11: #include <netinet/tcp_fsm.h>
1265
12: #include <netinet/udp.h>
1266
13: #include <arpa/inet.h>
1267
14: #include <net/ethernet.h>
1268
15: #include <sys/un.h>
1269
16: #include <ifaddrs.h>
1270
17: #include <sys/ioctl.h>
1271
18: #include <sys/sockio.h>
1272
19: #include <net/if.h>
1273
20: #include <sys/param.h>
1274
21: #include <sys/ucred.h>
1275
22: #include <net/if_dl.h>
1276
23: #include <arpa/nameser.h>
1277
24: #include <resolv.h>
1278
25: 
1279
26: /*top*/
1280
27: typedef struct ip_mreq conftest_type;
1281
28: int conftestval[sizeof(conftest_type)?1:-1];
1282
/* end */
1283

    
1284
--------------------
1285

    
1286
have_type: checking for struct ip_mreqn in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1287

    
1288
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1289
In file included from conftest.c:1:
1290
In file included from ../.././include/ruby.h:33:
1291
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1292
rb_array_ptr_use_end(VALUE a, int allow_transient)
1293
                                  ^
1294
1 warning generated.
1295
checked program was:
1296
/* begin */
1297
 1: #include "ruby.h"
1298
 2: 
1299
 3: #include <sys/types.h>
1300
 4: #include <netdb.h>
1301
 5: #include <string.h>
1302
 6: #include <sys/socket.h>
1303
 7: #include <netinet/in.h>
1304
 8: #include <sys/uio.h>
1305
 9: #include <netinet/in_systm.h>
1306
10: #include <netinet/tcp.h>
1307
11: #include <netinet/tcp_fsm.h>
1308
12: #include <netinet/udp.h>
1309
13: #include <arpa/inet.h>
1310
14: #include <net/ethernet.h>
1311
15: #include <sys/un.h>
1312
16: #include <ifaddrs.h>
1313
17: #include <sys/ioctl.h>
1314
18: #include <sys/sockio.h>
1315
19: #include <net/if.h>
1316
20: #include <sys/param.h>
1317
21: #include <sys/ucred.h>
1318
22: #include <net/if_dl.h>
1319
23: #include <arpa/nameser.h>
1320
24: #include <resolv.h>
1321
25: 
1322
26: /*top*/
1323
27: typedef struct ip_mreqn conftest_type;
1324
28: int conftestval[sizeof(conftest_type)?1:-1];
1325
/* end */
1326

    
1327
--------------------
1328

    
1329
have_type: checking for struct ipv6_mreq in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1330

    
1331
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1332
In file included from conftest.c:1:
1333
In file included from ../.././include/ruby.h:33:
1334
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1335
rb_array_ptr_use_end(VALUE a, int allow_transient)
1336
                                  ^
1337
1 warning generated.
1338
checked program was:
1339
/* begin */
1340
 1: #include "ruby.h"
1341
 2: 
1342
 3: #include <sys/types.h>
1343
 4: #include <netdb.h>
1344
 5: #include <string.h>
1345
 6: #include <sys/socket.h>
1346
 7: #include <netinet/in.h>
1347
 8: #include <sys/uio.h>
1348
 9: #include <netinet/in_systm.h>
1349
10: #include <netinet/tcp.h>
1350
11: #include <netinet/tcp_fsm.h>
1351
12: #include <netinet/udp.h>
1352
13: #include <arpa/inet.h>
1353
14: #include <net/ethernet.h>
1354
15: #include <sys/un.h>
1355
16: #include <ifaddrs.h>
1356
17: #include <sys/ioctl.h>
1357
18: #include <sys/sockio.h>
1358
19: #include <net/if.h>
1359
20: #include <sys/param.h>
1360
21: #include <sys/ucred.h>
1361
22: #include <net/if_dl.h>
1362
23: #include <arpa/nameser.h>
1363
24: #include <resolv.h>
1364
25: 
1365
26: /*top*/
1366
27: typedef struct ipv6_mreq conftest_type;
1367
28: int conftestval[sizeof(conftest_type)?1:-1];
1368
/* end */
1369

    
1370
--------------------
1371

    
1372
have_struct_member: checking for struct msghdr.msg_control in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1373

    
1374
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1375
In file included from conftest.c:1:
1376
In file included from ../.././include/ruby.h:33:
1377
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1378
rb_array_ptr_use_end(VALUE a, int allow_transient)
1379
                                  ^
1380
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
1381
int main(int argc, char **argv)
1382
             ^
1383
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1384
int main(int argc, char **argv)
1385
                          ^
1386
3 warnings generated.
1387
checked program was:
1388
/* begin */
1389
 1: #include "ruby.h"
1390
 2: 
1391
 3: #include <sys/types.h>
1392
 4: #include <netdb.h>
1393
 5: #include <string.h>
1394
 6: #include <sys/socket.h>
1395
 7: #include <netinet/in.h>
1396
 8: #include <sys/uio.h>
1397
 9: #include <netinet/in_systm.h>
1398
10: #include <netinet/tcp.h>
1399
11: #include <netinet/tcp_fsm.h>
1400
12: #include <netinet/udp.h>
1401
13: #include <arpa/inet.h>
1402
14: #include <net/ethernet.h>
1403
15: #include <sys/un.h>
1404
16: #include <ifaddrs.h>
1405
17: #include <sys/ioctl.h>
1406
18: #include <sys/sockio.h>
1407
19: #include <net/if.h>
1408
20: #include <sys/param.h>
1409
21: #include <sys/ucred.h>
1410
22: #include <net/if_dl.h>
1411
23: #include <arpa/nameser.h>
1412
24: #include <resolv.h>
1413
25: 
1414
26: /*top*/
1415
27: int s = (char *)&((struct msghdr*)0)->msg_control - (char *)0;
1416
28: int main(int argc, char **argv)
1417
29: {
1418
30:   return 0;
1419
31: }
1420
/* end */
1421

    
1422
--------------------
1423

    
1424
have_struct_member: checking for struct msghdr.msg_accrights in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
1425

    
1426
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1427
In file included from conftest.c:1:
1428
In file included from ../.././include/ruby.h:33:
1429
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1430
rb_array_ptr_use_end(VALUE a, int allow_transient)
1431
                                  ^
1432
conftest.c:27:39: error: no member named 'msg_accrights' in 'struct msghdr'
1433
int s = (char *)&((struct msghdr*)0)->msg_accrights - (char *)0;
1434
                 ~~~~~~~~~~~~~~~~~~~  ^
1435
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
1436
int main(int argc, char **argv)
1437
             ^
1438
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1439
int main(int argc, char **argv)
1440
                          ^
1441
3 warnings and 1 error generated.
1442
checked program was:
1443
/* begin */
1444
 1: #include "ruby.h"
1445
 2: 
1446
 3: #include <sys/types.h>
1447
 4: #include <netdb.h>
1448
 5: #include <string.h>
1449
 6: #include <sys/socket.h>
1450
 7: #include <netinet/in.h>
1451
 8: #include <sys/uio.h>
1452
 9: #include <netinet/in_systm.h>
1453
10: #include <netinet/tcp.h>
1454
11: #include <netinet/tcp_fsm.h>
1455
12: #include <netinet/udp.h>
1456
13: #include <arpa/inet.h>
1457
14: #include <net/ethernet.h>
1458
15: #include <sys/un.h>
1459
16: #include <ifaddrs.h>
1460
17: #include <sys/ioctl.h>
1461
18: #include <sys/sockio.h>
1462
19: #include <net/if.h>
1463
20: #include <sys/param.h>
1464
21: #include <sys/ucred.h>
1465
22: #include <net/if_dl.h>
1466
23: #include <arpa/nameser.h>
1467
24: #include <resolv.h>
1468
25: 
1469
26: /*top*/
1470
27: int s = (char *)&((struct msghdr*)0)->msg_accrights - (char *)0;
1471
28: int main(int argc, char **argv)
1472
29: {
1473
30:   return 0;
1474
31: }
1475
/* end */
1476

    
1477
--------------------
1478

    
1479
have_type: checking for struct tcp_info in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
1480

    
1481
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1482
In file included from conftest.c:1:
1483
In file included from ../.././include/ruby.h:33:
1484
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1485
rb_array_ptr_use_end(VALUE a, int allow_transient)
1486
                                  ^
1487
conftest.c:28:17: error: invalid application of 'sizeof' to an incomplete type 'conftest_type' (aka 'struct tcp_info')
1488
int conftestval[sizeof(conftest_type)?1:-1];
1489
                ^     ~~~~~~~~~~~~~~~
1490
conftest.c:27:16: note: forward declaration of 'struct tcp_info'
1491
typedef struct tcp_info conftest_type;
1492
               ^
1493
1 warning and 1 error generated.
1494
checked program was:
1495
/* begin */
1496
 1: #include "ruby.h"
1497
 2: 
1498
 3: #include <sys/types.h>
1499
 4: #include <netdb.h>
1500
 5: #include <string.h>
1501
 6: #include <sys/socket.h>
1502
 7: #include <netinet/in.h>
1503
 8: #include <sys/uio.h>
1504
 9: #include <netinet/in_systm.h>
1505
10: #include <netinet/tcp.h>
1506
11: #include <netinet/tcp_fsm.h>
1507
12: #include <netinet/udp.h>
1508
13: #include <arpa/inet.h>
1509
14: #include <net/ethernet.h>
1510
15: #include <sys/un.h>
1511
16: #include <ifaddrs.h>
1512
17: #include <sys/ioctl.h>
1513
18: #include <sys/sockio.h>
1514
19: #include <net/if.h>
1515
20: #include <sys/param.h>
1516
21: #include <sys/ucred.h>
1517
22: #include <net/if_dl.h>
1518
23: #include <arpa/nameser.h>
1519
24: #include <resolv.h>
1520
25: 
1521
26: /*top*/
1522
27: typedef struct tcp_info conftest_type;
1523
28: int conftestval[sizeof(conftest_type)?1:-1];
1524
/* end */
1525

    
1526
--------------------
1527

    
1528
have_library: checking for t_open("", 0, (struct t_info *)NULL) in -lnsl... -------------------- no
1529

    
1530
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc -lnsl   "
1531
In file included from conftest.c:1:
1532
In file included from ../.././include/ruby.h:33:
1533
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1534
rb_array_ptr_use_end(VALUE a, int allow_transient)
1535
                                  ^
1536
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1537
int main(int argc, char **argv)
1538
                          ^
1539
conftest.c:38:15: warning: implicit declaration of function 't_open' is invalid in C99 [-Wimplicit-function-declaration]
1540
int t(void) { t_open("", 0, (struct t_info *)NULL); return 0; }
1541
              ^
1542
3 warnings generated.
1543
ld: library not found for -lnsl
1544
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1545
checked program was:
1546
/* begin */
1547
 1: #include "ruby.h"
1548
 2: 
1549
 3: #include <sys/types.h>
1550
 4: #include <netdb.h>
1551
 5: #include <string.h>
1552
 6: #include <sys/socket.h>
1553
 7: #include <netinet/in.h>
1554
 8: #include <sys/uio.h>
1555
 9: #include <netinet/in_systm.h>
1556
10: #include <netinet/tcp.h>
1557
11: #include <netinet/tcp_fsm.h>
1558
12: #include <netinet/udp.h>
1559
13: #include <arpa/inet.h>
1560
14: #include <net/ethernet.h>
1561
15: #include <sys/un.h>
1562
16: #include <ifaddrs.h>
1563
17: #include <sys/ioctl.h>
1564
18: #include <sys/sockio.h>
1565
19: #include <net/if.h>
1566
20: #include <sys/param.h>
1567
21: #include <sys/ucred.h>
1568
22: #include <net/if_dl.h>
1569
23: #include <arpa/nameser.h>
1570
24: #include <resolv.h>
1571
25: 
1572
26: /*top*/
1573
27: extern int t(void);
1574
28: int main(int argc, char **argv)
1575
29: {
1576
30:   if (argc > 1000000) {
1577
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1578
32:     printf("%d", (*tp)());
1579
33:   }
1580
34: 
1581
35:   return 0;
1582
36: }
1583
37: 
1584
38: int t(void) { t_open("", 0, (struct t_info *)NULL); return 0; }
1585
/* end */
1586

    
1587
--------------------
1588

    
1589
have_library: checking for socket(0,0,0) in -lsocket... -------------------- no
1590

    
1591
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc -lsocket   "
1592
In file included from conftest.c:1:
1593
In file included from ../.././include/ruby.h:33:
1594
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1595
rb_array_ptr_use_end(VALUE a, int allow_transient)
1596
                                  ^
1597
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1598
int main(int argc, char **argv)
1599
                          ^
1600
2 warnings generated.
1601
ld: library not found for -lsocket
1602
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1603
checked program was:
1604
/* begin */
1605
 1: #include "ruby.h"
1606
 2: 
1607
 3: #include <sys/types.h>
1608
 4: #include <netdb.h>
1609
 5: #include <string.h>
1610
 6: #include <sys/socket.h>
1611
 7: #include <netinet/in.h>
1612
 8: #include <sys/uio.h>
1613
 9: #include <netinet/in_systm.h>
1614
10: #include <netinet/tcp.h>
1615
11: #include <netinet/tcp_fsm.h>
1616
12: #include <netinet/udp.h>
1617
13: #include <arpa/inet.h>
1618
14: #include <net/ethernet.h>
1619
15: #include <sys/un.h>
1620
16: #include <ifaddrs.h>
1621
17: #include <sys/ioctl.h>
1622
18: #include <sys/sockio.h>
1623
19: #include <net/if.h>
1624
20: #include <sys/param.h>
1625
21: #include <sys/ucred.h>
1626
22: #include <net/if_dl.h>
1627
23: #include <arpa/nameser.h>
1628
24: #include <resolv.h>
1629
25: 
1630
26: /*top*/
1631
27: extern int t(void);
1632
28: int main(int argc, char **argv)
1633
29: {
1634
30:   if (argc > 1000000) {
1635
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1636
32:     printf("%d", (*tp)());
1637
33:   }
1638
34: 
1639
35:   return 0;
1640
36: }
1641
37: 
1642
38: int t(void) { socket(0,0,0); return 0; }
1643
/* end */
1644

    
1645
--------------------
1646

    
1647
have_func: checking for socket(0,0,0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1648

    
1649
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
1650
In file included from conftest.c:1:
1651
In file included from ../.././include/ruby.h:33:
1652
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1653
rb_array_ptr_use_end(VALUE a, int allow_transient)
1654
                                  ^
1655
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1656
int main(int argc, char **argv)
1657
                          ^
1658
2 warnings generated.
1659
checked program was:
1660
/* begin */
1661
 1: #include "ruby.h"
1662
 2: 
1663
 3: #include <sys/types.h>
1664
 4: #include <netdb.h>
1665
 5: #include <string.h>
1666
 6: #include <sys/socket.h>
1667
 7: #include <netinet/in.h>
1668
 8: #include <sys/uio.h>
1669
 9: #include <netinet/in_systm.h>
1670
10: #include <netinet/tcp.h>
1671
11: #include <netinet/tcp_fsm.h>
1672
12: #include <netinet/udp.h>
1673
13: #include <arpa/inet.h>
1674
14: #include <net/ethernet.h>
1675
15: #include <sys/un.h>
1676
16: #include <ifaddrs.h>
1677
17: #include <sys/ioctl.h>
1678
18: #include <sys/sockio.h>
1679
19: #include <net/if.h>
1680
20: #include <sys/param.h>
1681
21: #include <sys/ucred.h>
1682
22: #include <net/if_dl.h>
1683
23: #include <arpa/nameser.h>
1684
24: #include <resolv.h>
1685
25: 
1686
26: /*top*/
1687
27: extern int t(void);
1688
28: int main(int argc, char **argv)
1689
29: {
1690
30:   if (argc > 1000000) {
1691
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1692
32:     printf("%d", (*tp)());
1693
33:   }
1694
34: 
1695
35:   return 0;
1696
36: }
1697
37: 
1698
38: int t(void) { socket(0,0,0); return 0; }
1699
/* end */
1700

    
1701
--------------------
1702

    
1703
have_func: checking for sendmsg(0, (struct msghdr *)NULL, 0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1704

    
1705
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
1706
In file included from conftest.c:1:
1707
In file included from ../.././include/ruby.h:33:
1708
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1709
rb_array_ptr_use_end(VALUE a, int allow_transient)
1710
                                  ^
1711
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1712
int main(int argc, char **argv)
1713
                          ^
1714
2 warnings generated.
1715
checked program was:
1716
/* begin */
1717
 1: #include "ruby.h"
1718
 2: 
1719
 3: #include <sys/types.h>
1720
 4: #include <netdb.h>
1721
 5: #include <string.h>
1722
 6: #include <sys/socket.h>
1723
 7: #include <netinet/in.h>
1724
 8: #include <sys/uio.h>
1725
 9: #include <netinet/in_systm.h>
1726
10: #include <netinet/tcp.h>
1727
11: #include <netinet/tcp_fsm.h>
1728
12: #include <netinet/udp.h>
1729
13: #include <arpa/inet.h>
1730
14: #include <net/ethernet.h>
1731
15: #include <sys/un.h>
1732
16: #include <ifaddrs.h>
1733
17: #include <sys/ioctl.h>
1734
18: #include <sys/sockio.h>
1735
19: #include <net/if.h>
1736
20: #include <sys/param.h>
1737
21: #include <sys/ucred.h>
1738
22: #include <net/if_dl.h>
1739
23: #include <arpa/nameser.h>
1740
24: #include <resolv.h>
1741
25: 
1742
26: /*top*/
1743
27: extern int t(void);
1744
28: int main(int argc, char **argv)
1745
29: {
1746
30:   if (argc > 1000000) {
1747
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1748
32:     printf("%d", (*tp)());
1749
33:   }
1750
34: 
1751
35:   return 0;
1752
36: }
1753
37: 
1754
38: int t(void) { sendmsg(0, (struct msghdr *)NULL, 0); return 0; }
1755
/* end */
1756

    
1757
--------------------
1758

    
1759
have_func: checking for recvmsg(0, (struct msghdr *)NULL, 0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1760

    
1761
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
1762
In file included from conftest.c:1:
1763
In file included from ../.././include/ruby.h:33:
1764
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1765
rb_array_ptr_use_end(VALUE a, int allow_transient)
1766
                                  ^
1767
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1768
int main(int argc, char **argv)
1769
                          ^
1770
2 warnings generated.
1771
checked program was:
1772
/* begin */
1773
 1: #include "ruby.h"
1774
 2: 
1775
 3: #include <sys/types.h>
1776
 4: #include <netdb.h>
1777
 5: #include <string.h>
1778
 6: #include <sys/socket.h>
1779
 7: #include <netinet/in.h>
1780
 8: #include <sys/uio.h>
1781
 9: #include <netinet/in_systm.h>
1782
10: #include <netinet/tcp.h>
1783
11: #include <netinet/tcp_fsm.h>
1784
12: #include <netinet/udp.h>
1785
13: #include <arpa/inet.h>
1786
14: #include <net/ethernet.h>
1787
15: #include <sys/un.h>
1788
16: #include <ifaddrs.h>
1789
17: #include <sys/ioctl.h>
1790
18: #include <sys/sockio.h>
1791
19: #include <net/if.h>
1792
20: #include <sys/param.h>
1793
21: #include <sys/ucred.h>
1794
22: #include <net/if_dl.h>
1795
23: #include <arpa/nameser.h>
1796
24: #include <resolv.h>
1797
25: 
1798
26: /*top*/
1799
27: extern int t(void);
1800
28: int main(int argc, char **argv)
1801
29: {
1802
30:   if (argc > 1000000) {
1803
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1804
32:     printf("%d", (*tp)());
1805
33:   }
1806
34: 
1807
35:   return 0;
1808
36: }
1809
37: 
1810
38: int t(void) { recvmsg(0, (struct msghdr *)NULL, 0); return 0; }
1811
/* end */
1812

    
1813
--------------------
1814

    
1815
have_func: checking for freehostent((struct hostent *)NULL) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1816

    
1817
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
1818
In file included from conftest.c:1:
1819
In file included from ../.././include/ruby.h:33:
1820
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1821
rb_array_ptr_use_end(VALUE a, int allow_transient)
1822
                                  ^
1823
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1824
int main(int argc, char **argv)
1825
                          ^
1826
2 warnings generated.
1827
checked program was:
1828
/* begin */
1829
 1: #include "ruby.h"
1830
 2: 
1831
 3: #include <sys/types.h>
1832
 4: #include <netdb.h>
1833
 5: #include <string.h>
1834
 6: #include <sys/socket.h>
1835
 7: #include <netinet/in.h>
1836
 8: #include <sys/uio.h>
1837
 9: #include <netinet/in_systm.h>
1838
10: #include <netinet/tcp.h>
1839
11: #include <netinet/tcp_fsm.h>
1840
12: #include <netinet/udp.h>
1841
13: #include <arpa/inet.h>
1842
14: #include <net/ethernet.h>
1843
15: #include <sys/un.h>
1844
16: #include <ifaddrs.h>
1845
17: #include <sys/ioctl.h>
1846
18: #include <sys/sockio.h>
1847
19: #include <net/if.h>
1848
20: #include <sys/param.h>
1849
21: #include <sys/ucred.h>
1850
22: #include <net/if_dl.h>
1851
23: #include <arpa/nameser.h>
1852
24: #include <resolv.h>
1853
25: 
1854
26: /*top*/
1855
27: extern int t(void);
1856
28: int main(int argc, char **argv)
1857
29: {
1858
30:   if (argc > 1000000) {
1859
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1860
32:     printf("%d", (*tp)());
1861
33:   }
1862
34: 
1863
35:   return 0;
1864
36: }
1865
37: 
1866
38: int t(void) { freehostent((struct hostent *)NULL); return 0; }
1867
/* end */
1868

    
1869
--------------------
1870

    
1871
have_func: checking for freeaddrinfo((struct addrinfo *)NULL) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1872

    
1873
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
1874
In file included from conftest.c:1:
1875
In file included from ../.././include/ruby.h:33:
1876
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1877
rb_array_ptr_use_end(VALUE a, int allow_transient)
1878
                                  ^
1879
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1880
int main(int argc, char **argv)
1881
                          ^
1882
2 warnings generated.
1883
checked program was:
1884
/* begin */
1885
 1: #include "ruby.h"
1886
 2: 
1887
 3: #include <sys/types.h>
1888
 4: #include <netdb.h>
1889
 5: #include <string.h>
1890
 6: #include <sys/socket.h>
1891
 7: #include <netinet/in.h>
1892
 8: #include <sys/uio.h>
1893
 9: #include <netinet/in_systm.h>
1894
10: #include <netinet/tcp.h>
1895
11: #include <netinet/tcp_fsm.h>
1896
12: #include <netinet/udp.h>
1897
13: #include <arpa/inet.h>
1898
14: #include <net/ethernet.h>
1899
15: #include <sys/un.h>
1900
16: #include <ifaddrs.h>
1901
17: #include <sys/ioctl.h>
1902
18: #include <sys/sockio.h>
1903
19: #include <net/if.h>
1904
20: #include <sys/param.h>
1905
21: #include <sys/ucred.h>
1906
22: #include <net/if_dl.h>
1907
23: #include <arpa/nameser.h>
1908
24: #include <resolv.h>
1909
25: 
1910
26: /*top*/
1911
27: extern int t(void);
1912
28: int main(int argc, char **argv)
1913
29: {
1914
30:   if (argc > 1000000) {
1915
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1916
32:     printf("%d", (*tp)());
1917
33:   }
1918
34: 
1919
35:   return 0;
1920
36: }
1921
37: 
1922
38: int t(void) { freeaddrinfo((struct addrinfo *)NULL); return 0; }
1923
/* end */
1924

    
1925
--------------------
1926

    
1927
have_func: checking for gai_strerror(0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
1928

    
1929
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
1930
In file included from conftest.c:1:
1931
In file included from ../.././include/ruby.h:33:
1932
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1933
rb_array_ptr_use_end(VALUE a, int allow_transient)
1934
                                  ^
1935
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
1936
int main(int argc, char **argv)
1937
                          ^
1938
2 warnings generated.
1939
checked program was:
1940
/* begin */
1941
 1: #include "ruby.h"
1942
 2: 
1943
 3: #include <sys/types.h>
1944
 4: #include <netdb.h>
1945
 5: #include <string.h>
1946
 6: #include <sys/socket.h>
1947
 7: #include <netinet/in.h>
1948
 8: #include <sys/uio.h>
1949
 9: #include <netinet/in_systm.h>
1950
10: #include <netinet/tcp.h>
1951
11: #include <netinet/tcp_fsm.h>
1952
12: #include <netinet/udp.h>
1953
13: #include <arpa/inet.h>
1954
14: #include <net/ethernet.h>
1955
15: #include <sys/un.h>
1956
16: #include <ifaddrs.h>
1957
17: #include <sys/ioctl.h>
1958
18: #include <sys/sockio.h>
1959
19: #include <net/if.h>
1960
20: #include <sys/param.h>
1961
21: #include <sys/ucred.h>
1962
22: #include <net/if_dl.h>
1963
23: #include <arpa/nameser.h>
1964
24: #include <resolv.h>
1965
25: 
1966
26: /*top*/
1967
27: extern int t(void);
1968
28: int main(int argc, char **argv)
1969
29: {
1970
30:   if (argc > 1000000) {
1971
31:     int (* volatile tp)(void)=(int (*)(void))&t;
1972
32:     printf("%d", (*tp)());
1973
33:   }
1974
34: 
1975
35:   return 0;
1976
36: }
1977
37: 
1978
38: int t(void) { gai_strerror(0); return 0; }
1979
/* end */
1980

    
1981
--------------------
1982

    
1983
checking for gai_strerror() returns const pointer... -------------------- yes
1984

    
1985
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
1986
In file included from conftest.c:1:
1987
In file included from ../.././include/ruby.h:33:
1988
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
1989
rb_array_ptr_use_end(VALUE a, int allow_transient)
1990
                                  ^
1991
conftest.c:30:22: error: read-only variable is not assignable
1992
    *gai_strerror(0) = 0;
1993
    ~~~~~~~~~~~~~~~~ ^
1994
1 warning and 1 error generated.
1995
checked program was:
1996
/* begin */
1997
 1: #include "ruby.h"
1998
 2: 
1999
 3: #include <sys/types.h>
2000
 4: #include <netdb.h>
2001
 5: #include <string.h>
2002
 6: #include <sys/socket.h>
2003
 7: #include <netinet/in.h>
2004
 8: #include <sys/uio.h>
2005
 9: #include <netinet/in_systm.h>
2006
10: #include <netinet/tcp.h>
2007
11: #include <netinet/tcp_fsm.h>
2008
12: #include <netinet/udp.h>
2009
13: #include <arpa/inet.h>
2010
14: #include <net/ethernet.h>
2011
15: #include <sys/un.h>
2012
16: #include <ifaddrs.h>
2013
17: #include <sys/ioctl.h>
2014
18: #include <sys/sockio.h>
2015
19: #include <net/if.h>
2016
20: #include <sys/param.h>
2017
21: #include <sys/ucred.h>
2018
22: #include <net/if_dl.h>
2019
23: #include <arpa/nameser.h>
2020
24: #include <resolv.h>
2021
25: 
2022
26: #include <stdlib.h>
2023
27: void
2024
28: conftest_gai_strerror_is_const()
2025
29: {
2026
30:     *gai_strerror(0) = 0;
2027
31: }
2028
/* end */
2029

    
2030
--------------------
2031

    
2032
have_func: checking for accept4() in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
2033

    
2034
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2035
In file included from conftest.c:1:
2036
In file included from ../.././include/ruby.h:33:
2037
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2038
rb_array_ptr_use_end(VALUE a, int allow_transient)
2039
                                  ^
2040
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2041
int main(int argc, char **argv)
2042
                          ^
2043
conftest.c:37:57: error: use of undeclared identifier 'accept4'
2044
int t(void) { void ((*volatile p)()); p = (void ((*)()))accept4; return !p; }
2045
                                                        ^
2046
2 warnings and 1 error generated.
2047
checked program was:
2048
/* begin */
2049
 1: #include "ruby.h"
2050
 2: 
2051
 3: #include <sys/types.h>
2052
 4: #include <netdb.h>
2053
 5: #include <string.h>
2054
 6: #include <sys/socket.h>
2055
 7: #include <netinet/in.h>
2056
 8: #include <sys/uio.h>
2057
 9: #include <netinet/in_systm.h>
2058
10: #include <netinet/tcp.h>
2059
11: #include <netinet/tcp_fsm.h>
2060
12: #include <netinet/udp.h>
2061
13: #include <arpa/inet.h>
2062
14: #include <net/ethernet.h>
2063
15: #include <sys/un.h>
2064
16: #include <ifaddrs.h>
2065
17: #include <sys/ioctl.h>
2066
18: #include <sys/sockio.h>
2067
19: #include <net/if.h>
2068
20: #include <sys/param.h>
2069
21: #include <sys/ucred.h>
2070
22: #include <net/if_dl.h>
2071
23: #include <arpa/nameser.h>
2072
24: #include <resolv.h>
2073
25: 
2074
26: /*top*/
2075
27: extern int t(void);
2076
28: int main(int argc, char **argv)
2077
29: {
2078
30:   if (argc > 1000000) {
2079
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2080
32:     printf("%d", (*tp)());
2081
33:   }
2082
34: 
2083
35:   return 0;
2084
36: }
2085
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))accept4; return !p; }
2086
/* end */
2087

    
2088
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2089
In file included from conftest.c:1:
2090
In file included from ../.././include/ruby.h:33:
2091
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2092
rb_array_ptr_use_end(VALUE a, int allow_transient)
2093
                                  ^
2094
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2095
int main(int argc, char **argv)
2096
                          ^
2097
2 warnings generated.
2098
Undefined symbols for architecture x86_64:
2099
  "_accept4", referenced from:
2100
      _t in conftest-db9c39.o
2101
ld: symbol(s) not found for architecture x86_64
2102
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2103
checked program was:
2104
/* begin */
2105
 1: #include "ruby.h"
2106
 2: 
2107
 3: #include <sys/types.h>
2108
 4: #include <netdb.h>
2109
 5: #include <string.h>
2110
 6: #include <sys/socket.h>
2111
 7: #include <netinet/in.h>
2112
 8: #include <sys/uio.h>
2113
 9: #include <netinet/in_systm.h>
2114
10: #include <netinet/tcp.h>
2115
11: #include <netinet/tcp_fsm.h>
2116
12: #include <netinet/udp.h>
2117
13: #include <arpa/inet.h>
2118
14: #include <net/ethernet.h>
2119
15: #include <sys/un.h>
2120
16: #include <ifaddrs.h>
2121
17: #include <sys/ioctl.h>
2122
18: #include <sys/sockio.h>
2123
19: #include <net/if.h>
2124
20: #include <sys/param.h>
2125
21: #include <sys/ucred.h>
2126
22: #include <net/if_dl.h>
2127
23: #include <arpa/nameser.h>
2128
24: #include <resolv.h>
2129
25: 
2130
26: /*top*/
2131
27: extern int t(void);
2132
28: int main(int argc, char **argv)
2133
29: {
2134
30:   if (argc > 1000000) {
2135
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2136
32:     printf("%d", (*tp)());
2137
33:   }
2138
34: 
2139
35:   return 0;
2140
36: }
2141
37: extern void accept4();
2142
38: int t(void) { accept4(); return 0; }
2143
/* end */
2144

    
2145
--------------------
2146

    
2147
have_func: checking for inet_ntop(0, (const void *)0, (char *)0, 0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2148

    
2149
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2150
In file included from conftest.c:1:
2151
In file included from ../.././include/ruby.h:33:
2152
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2153
rb_array_ptr_use_end(VALUE a, int allow_transient)
2154
                                  ^
2155
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2156
int main(int argc, char **argv)
2157
                          ^
2158
2 warnings generated.
2159
checked program was:
2160
/* begin */
2161
 1: #include "ruby.h"
2162
 2: 
2163
 3: #include <sys/types.h>
2164
 4: #include <netdb.h>
2165
 5: #include <string.h>
2166
 6: #include <sys/socket.h>
2167
 7: #include <netinet/in.h>
2168
 8: #include <sys/uio.h>
2169
 9: #include <netinet/in_systm.h>
2170
10: #include <netinet/tcp.h>
2171
11: #include <netinet/tcp_fsm.h>
2172
12: #include <netinet/udp.h>
2173
13: #include <arpa/inet.h>
2174
14: #include <net/ethernet.h>
2175
15: #include <sys/un.h>
2176
16: #include <ifaddrs.h>
2177
17: #include <sys/ioctl.h>
2178
18: #include <sys/sockio.h>
2179
19: #include <net/if.h>
2180
20: #include <sys/param.h>
2181
21: #include <sys/ucred.h>
2182
22: #include <net/if_dl.h>
2183
23: #include <arpa/nameser.h>
2184
24: #include <resolv.h>
2185
25: 
2186
26: /*top*/
2187
27: extern int t(void);
2188
28: int main(int argc, char **argv)
2189
29: {
2190
30:   if (argc > 1000000) {
2191
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2192
32:     printf("%d", (*tp)());
2193
33:   }
2194
34: 
2195
35:   return 0;
2196
36: }
2197
37: 
2198
38: int t(void) { inet_ntop(0, (const void *)0, (char *)0, 0); return 0; }
2199
/* end */
2200

    
2201
--------------------
2202

    
2203
have_func: checking for inet_pton(0, "", (void *)0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2204

    
2205
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2206
In file included from conftest.c:1:
2207
In file included from ../.././include/ruby.h:33:
2208
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2209
rb_array_ptr_use_end(VALUE a, int allow_transient)
2210
                                  ^
2211
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2212
int main(int argc, char **argv)
2213
                          ^
2214
2 warnings generated.
2215
checked program was:
2216
/* begin */
2217
 1: #include "ruby.h"
2218
 2: 
2219
 3: #include <sys/types.h>
2220
 4: #include <netdb.h>
2221
 5: #include <string.h>
2222
 6: #include <sys/socket.h>
2223
 7: #include <netinet/in.h>
2224
 8: #include <sys/uio.h>
2225
 9: #include <netinet/in_systm.h>
2226
10: #include <netinet/tcp.h>
2227
11: #include <netinet/tcp_fsm.h>
2228
12: #include <netinet/udp.h>
2229
13: #include <arpa/inet.h>
2230
14: #include <net/ethernet.h>
2231
15: #include <sys/un.h>
2232
16: #include <ifaddrs.h>
2233
17: #include <sys/ioctl.h>
2234
18: #include <sys/sockio.h>
2235
19: #include <net/if.h>
2236
20: #include <sys/param.h>
2237
21: #include <sys/ucred.h>
2238
22: #include <net/if_dl.h>
2239
23: #include <arpa/nameser.h>
2240
24: #include <resolv.h>
2241
25: 
2242
26: /*top*/
2243
27: extern int t(void);
2244
28: int main(int argc, char **argv)
2245
29: {
2246
30:   if (argc > 1000000) {
2247
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2248
32:     printf("%d", (*tp)());
2249
33:   }
2250
34: 
2251
35:   return 0;
2252
36: }
2253
37: 
2254
38: int t(void) { inet_pton(0, "", (void *)0); return 0; }
2255
/* end */
2256

    
2257
--------------------
2258

    
2259
have_func: checking for getservbyport(0, "") in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2260

    
2261
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2262
In file included from conftest.c:1:
2263
In file included from ../.././include/ruby.h:33:
2264
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2265
rb_array_ptr_use_end(VALUE a, int allow_transient)
2266
                                  ^
2267
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2268
int main(int argc, char **argv)
2269
                          ^
2270
2 warnings generated.
2271
checked program was:
2272
/* begin */
2273
 1: #include "ruby.h"
2274
 2: 
2275
 3: #include <sys/types.h>
2276
 4: #include <netdb.h>
2277
 5: #include <string.h>
2278
 6: #include <sys/socket.h>
2279
 7: #include <netinet/in.h>
2280
 8: #include <sys/uio.h>
2281
 9: #include <netinet/in_systm.h>
2282
10: #include <netinet/tcp.h>
2283
11: #include <netinet/tcp_fsm.h>
2284
12: #include <netinet/udp.h>
2285
13: #include <arpa/inet.h>
2286
14: #include <net/ethernet.h>
2287
15: #include <sys/un.h>
2288
16: #include <ifaddrs.h>
2289
17: #include <sys/ioctl.h>
2290
18: #include <sys/sockio.h>
2291
19: #include <net/if.h>
2292
20: #include <sys/param.h>
2293
21: #include <sys/ucred.h>
2294
22: #include <net/if_dl.h>
2295
23: #include <arpa/nameser.h>
2296
24: #include <resolv.h>
2297
25: 
2298
26: /*top*/
2299
27: extern int t(void);
2300
28: int main(int argc, char **argv)
2301
29: {
2302
30:   if (argc > 1000000) {
2303
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2304
32:     printf("%d", (*tp)());
2305
33:   }
2306
34: 
2307
35:   return 0;
2308
36: }
2309
37: 
2310
38: int t(void) { getservbyport(0, ""); return 0; }
2311
/* end */
2312

    
2313
--------------------
2314

    
2315
have_func: checking for getifaddrs((struct ifaddrs **)NULL) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2316

    
2317
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2318
In file included from conftest.c:1:
2319
In file included from ../.././include/ruby.h:33:
2320
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2321
rb_array_ptr_use_end(VALUE a, int allow_transient)
2322
                                  ^
2323
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2324
int main(int argc, char **argv)
2325
                          ^
2326
2 warnings generated.
2327
checked program was:
2328
/* begin */
2329
 1: #include "ruby.h"
2330
 2: 
2331
 3: #include <sys/types.h>
2332
 4: #include <netdb.h>
2333
 5: #include <string.h>
2334
 6: #include <sys/socket.h>
2335
 7: #include <netinet/in.h>
2336
 8: #include <sys/uio.h>
2337
 9: #include <netinet/in_systm.h>
2338
10: #include <netinet/tcp.h>
2339
11: #include <netinet/tcp_fsm.h>
2340
12: #include <netinet/udp.h>
2341
13: #include <arpa/inet.h>
2342
14: #include <net/ethernet.h>
2343
15: #include <sys/un.h>
2344
16: #include <ifaddrs.h>
2345
17: #include <sys/ioctl.h>
2346
18: #include <sys/sockio.h>
2347
19: #include <net/if.h>
2348
20: #include <sys/param.h>
2349
21: #include <sys/ucred.h>
2350
22: #include <net/if_dl.h>
2351
23: #include <arpa/nameser.h>
2352
24: #include <resolv.h>
2353
25: 
2354
26: /*top*/
2355
27: extern int t(void);
2356
28: int main(int argc, char **argv)
2357
29: {
2358
30:   if (argc > 1000000) {
2359
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2360
32:     printf("%d", (*tp)());
2361
33:   }
2362
34: 
2363
35:   return 0;
2364
36: }
2365
37: 
2366
38: int t(void) { getifaddrs((struct ifaddrs **)NULL); return 0; }
2367
/* end */
2368

    
2369
--------------------
2370

    
2371
have_struct_member: checking for struct if_data.ifi_vhid in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
2372

    
2373
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
2374
In file included from conftest.c:1:
2375
In file included from ../.././include/ruby.h:33:
2376
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2377
rb_array_ptr_use_end(VALUE a, int allow_transient)
2378
                                  ^
2379
conftest.c:27:40: error: no member named 'ifi_vhid' in 'struct if_data'
2380
int s = (char *)&((struct if_data*)0)->ifi_vhid - (char *)0;
2381
                 ~~~~~~~~~~~~~~~~~~~~  ^
2382
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
2383
int main(int argc, char **argv)
2384
             ^
2385
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2386
int main(int argc, char **argv)
2387
                          ^
2388
3 warnings and 1 error generated.
2389
checked program was:
2390
/* begin */
2391
 1: #include "ruby.h"
2392
 2: 
2393
 3: #include <sys/types.h>
2394
 4: #include <netdb.h>
2395
 5: #include <string.h>
2396
 6: #include <sys/socket.h>
2397
 7: #include <netinet/in.h>
2398
 8: #include <sys/uio.h>
2399
 9: #include <netinet/in_systm.h>
2400
10: #include <netinet/tcp.h>
2401
11: #include <netinet/tcp_fsm.h>
2402
12: #include <netinet/udp.h>
2403
13: #include <arpa/inet.h>
2404
14: #include <net/ethernet.h>
2405
15: #include <sys/un.h>
2406
16: #include <ifaddrs.h>
2407
17: #include <sys/ioctl.h>
2408
18: #include <sys/sockio.h>
2409
19: #include <net/if.h>
2410
20: #include <sys/param.h>
2411
21: #include <sys/ucred.h>
2412
22: #include <net/if_dl.h>
2413
23: #include <arpa/nameser.h>
2414
24: #include <resolv.h>
2415
25: 
2416
26: /*top*/
2417
27: int s = (char *)&((struct if_data*)0)->ifi_vhid - (char *)0;
2418
28: int main(int argc, char **argv)
2419
29: {
2420
30:   return 0;
2421
31: }
2422
/* end */
2423

    
2424
--------------------
2425

    
2426
have_func: checking for getpeereid() in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2427

    
2428
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2429
In file included from conftest.c:1:
2430
In file included from ../.././include/ruby.h:33:
2431
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2432
rb_array_ptr_use_end(VALUE a, int allow_transient)
2433
                                  ^
2434
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2435
int main(int argc, char **argv)
2436
                          ^
2437
2 warnings generated.
2438
checked program was:
2439
/* begin */
2440
 1: #include "ruby.h"
2441
 2: 
2442
 3: #include <sys/types.h>
2443
 4: #include <netdb.h>
2444
 5: #include <string.h>
2445
 6: #include <sys/socket.h>
2446
 7: #include <netinet/in.h>
2447
 8: #include <sys/uio.h>
2448
 9: #include <netinet/in_systm.h>
2449
10: #include <netinet/tcp.h>
2450
11: #include <netinet/tcp_fsm.h>
2451
12: #include <netinet/udp.h>
2452
13: #include <arpa/inet.h>
2453
14: #include <net/ethernet.h>
2454
15: #include <sys/un.h>
2455
16: #include <ifaddrs.h>
2456
17: #include <sys/ioctl.h>
2457
18: #include <sys/sockio.h>
2458
19: #include <net/if.h>
2459
20: #include <sys/param.h>
2460
21: #include <sys/ucred.h>
2461
22: #include <net/if_dl.h>
2462
23: #include <arpa/nameser.h>
2463
24: #include <resolv.h>
2464
25: 
2465
26: /*top*/
2466
27: extern int t(void);
2467
28: int main(int argc, char **argv)
2468
29: {
2469
30:   if (argc > 1000000) {
2470
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2471
32:     printf("%d", (*tp)());
2472
33:   }
2473
34: 
2474
35:   return 0;
2475
36: }
2476
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))getpeereid; return !p; }
2477
/* end */
2478

    
2479
--------------------
2480

    
2481
have_func: checking for getpeerucred(0, (ucred_t **)NULL) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
2482

    
2483
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2484
In file included from conftest.c:1:
2485
In file included from ../.././include/ruby.h:33:
2486
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2487
rb_array_ptr_use_end(VALUE a, int allow_transient)
2488
                                  ^
2489
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2490
int main(int argc, char **argv)
2491
                          ^
2492
conftest.c:38:15: warning: implicit declaration of function 'getpeerucred' is invalid in C99 [-Wimplicit-function-declaration]
2493
int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
2494
              ^
2495
conftest.c:38:42: error: expected expression
2496
int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
2497
                                         ^
2498
conftest.c:38:32: error: use of undeclared identifier 'ucred_t'
2499
int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
2500
                               ^
2501
3 warnings and 2 errors generated.
2502
checked program was:
2503
/* begin */
2504
 1: #include "ruby.h"
2505
 2: 
2506
 3: #include <sys/types.h>
2507
 4: #include <netdb.h>
2508
 5: #include <string.h>
2509
 6: #include <sys/socket.h>
2510
 7: #include <netinet/in.h>
2511
 8: #include <sys/uio.h>
2512
 9: #include <netinet/in_systm.h>
2513
10: #include <netinet/tcp.h>
2514
11: #include <netinet/tcp_fsm.h>
2515
12: #include <netinet/udp.h>
2516
13: #include <arpa/inet.h>
2517
14: #include <net/ethernet.h>
2518
15: #include <sys/un.h>
2519
16: #include <ifaddrs.h>
2520
17: #include <sys/ioctl.h>
2521
18: #include <sys/sockio.h>
2522
19: #include <net/if.h>
2523
20: #include <sys/param.h>
2524
21: #include <sys/ucred.h>
2525
22: #include <net/if_dl.h>
2526
23: #include <arpa/nameser.h>
2527
24: #include <resolv.h>
2528
25: 
2529
26: /*top*/
2530
27: extern int t(void);
2531
28: int main(int argc, char **argv)
2532
29: {
2533
30:   if (argc > 1000000) {
2534
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2535
32:     printf("%d", (*tp)());
2536
33:   }
2537
34: 
2538
35:   return 0;
2539
36: }
2540
37: 
2541
38: int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
2542
/* end */
2543

    
2544
--------------------
2545

    
2546
have_func: checking for if_indextoname(0, "") in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2547

    
2548
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2549
In file included from conftest.c:1:
2550
In file included from ../.././include/ruby.h:33:
2551
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2552
rb_array_ptr_use_end(VALUE a, int allow_transient)
2553
                                  ^
2554
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2555
int main(int argc, char **argv)
2556
                          ^
2557
2 warnings generated.
2558
checked program was:
2559
/* begin */
2560
 1: #include "ruby.h"
2561
 2: 
2562
 3: #include <sys/types.h>
2563
 4: #include <netdb.h>
2564
 5: #include <string.h>
2565
 6: #include <sys/socket.h>
2566
 7: #include <netinet/in.h>
2567
 8: #include <sys/uio.h>
2568
 9: #include <netinet/in_systm.h>
2569
10: #include <netinet/tcp.h>
2570
11: #include <netinet/tcp_fsm.h>
2571
12: #include <netinet/udp.h>
2572
13: #include <arpa/inet.h>
2573
14: #include <net/ethernet.h>
2574
15: #include <sys/un.h>
2575
16: #include <ifaddrs.h>
2576
17: #include <sys/ioctl.h>
2577
18: #include <sys/sockio.h>
2578
19: #include <net/if.h>
2579
20: #include <sys/param.h>
2580
21: #include <sys/ucred.h>
2581
22: #include <net/if_dl.h>
2582
23: #include <arpa/nameser.h>
2583
24: #include <resolv.h>
2584
25: 
2585
26: /*top*/
2586
27: extern int t(void);
2587
28: int main(int argc, char **argv)
2588
29: {
2589
30:   if (argc > 1000000) {
2590
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2591
32:     printf("%d", (*tp)());
2592
33:   }
2593
34: 
2594
35:   return 0;
2595
36: }
2596
37: 
2597
38: int t(void) { if_indextoname(0, ""); return 0; }
2598
/* end */
2599

    
2600
--------------------
2601

    
2602
block in <top (required)>: checking for declaration of if_indextoname()... -------------------- no
2603

    
2604
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
2605
In file included from conftest.c:1:
2606
In file included from ../.././include/ruby.h:33:
2607
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2608
rb_array_ptr_use_end(VALUE a, int allow_transient)
2609
                                  ^
2610
1 warning generated.
2611
checked program was:
2612
/* begin */
2613
1: #include "ruby.h"
2614
2: 
2615
3: int if_indextoname(void);
2616
/* end */
2617

    
2618
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
2619
In file included from conftest.c:1:
2620
In file included from ../.././include/ruby.h:33:
2621
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2622
rb_array_ptr_use_end(VALUE a, int allow_transient)
2623
                                  ^
2624
1 warning generated.
2625
checked program was:
2626
/* begin */
2627
1: #include "ruby.h"
2628
2: 
2629
3: void if_indextoname(void);
2630
/* end */
2631

    
2632
--------------------
2633

    
2634
have_func: checking for if_nametoindex("") in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2635

    
2636
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2637
In file included from conftest.c:1:
2638
In file included from ../.././include/ruby.h:33:
2639
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2640
rb_array_ptr_use_end(VALUE a, int allow_transient)
2641
                                  ^
2642
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2643
int main(int argc, char **argv)
2644
                          ^
2645
2 warnings generated.
2646
checked program was:
2647
/* begin */
2648
 1: #include "ruby.h"
2649
 2: 
2650
 3: #include <sys/types.h>
2651
 4: #include <netdb.h>
2652
 5: #include <string.h>
2653
 6: #include <sys/socket.h>
2654
 7: #include <netinet/in.h>
2655
 8: #include <sys/uio.h>
2656
 9: #include <netinet/in_systm.h>
2657
10: #include <netinet/tcp.h>
2658
11: #include <netinet/tcp_fsm.h>
2659
12: #include <netinet/udp.h>
2660
13: #include <arpa/inet.h>
2661
14: #include <net/ethernet.h>
2662
15: #include <sys/un.h>
2663
16: #include <ifaddrs.h>
2664
17: #include <sys/ioctl.h>
2665
18: #include <sys/sockio.h>
2666
19: #include <net/if.h>
2667
20: #include <sys/param.h>
2668
21: #include <sys/ucred.h>
2669
22: #include <net/if_dl.h>
2670
23: #include <arpa/nameser.h>
2671
24: #include <resolv.h>
2672
25: 
2673
26: /*top*/
2674
27: extern int t(void);
2675
28: int main(int argc, char **argv)
2676
29: {
2677
30:   if (argc > 1000000) {
2678
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2679
32:     printf("%d", (*tp)());
2680
33:   }
2681
34: 
2682
35:   return 0;
2683
36: }
2684
37: 
2685
38: int t(void) { if_nametoindex(""); return 0; }
2686
/* end */
2687

    
2688
--------------------
2689

    
2690
block in <top (required)>: checking for declaration of if_nametoindex()... -------------------- no
2691

    
2692
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
2693
In file included from conftest.c:1:
2694
In file included from ../.././include/ruby.h:33:
2695
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2696
rb_array_ptr_use_end(VALUE a, int allow_transient)
2697
                                  ^
2698
1 warning generated.
2699
checked program was:
2700
/* begin */
2701
1: #include "ruby.h"
2702
2: 
2703
3: int if_nametoindex(void);
2704
/* end */
2705

    
2706
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
2707
In file included from conftest.c:1:
2708
In file included from ../.././include/ruby.h:33:
2709
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2710
rb_array_ptr_use_end(VALUE a, int allow_transient)
2711
                                  ^
2712
1 warning generated.
2713
checked program was:
2714
/* begin */
2715
1: #include "ruby.h"
2716
2: 
2717
3: void if_nametoindex(void);
2718
/* end */
2719

    
2720
--------------------
2721

    
2722
have_func: checking for hsterror() in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- no
2723

    
2724
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2725
In file included from conftest.c:1:
2726
In file included from ../.././include/ruby.h:33:
2727
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2728
rb_array_ptr_use_end(VALUE a, int allow_transient)
2729
                                  ^
2730
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2731
int main(int argc, char **argv)
2732
                          ^
2733
conftest.c:37:57: error: use of undeclared identifier 'hsterror'
2734
int t(void) { void ((*volatile p)()); p = (void ((*)()))hsterror; return !p; }
2735
                                                        ^
2736
2 warnings and 1 error generated.
2737
checked program was:
2738
/* begin */
2739
 1: #include "ruby.h"
2740
 2: 
2741
 3: #include <sys/types.h>
2742
 4: #include <netdb.h>
2743
 5: #include <string.h>
2744
 6: #include <sys/socket.h>
2745
 7: #include <netinet/in.h>
2746
 8: #include <sys/uio.h>
2747
 9: #include <netinet/in_systm.h>
2748
10: #include <netinet/tcp.h>
2749
11: #include <netinet/tcp_fsm.h>
2750
12: #include <netinet/udp.h>
2751
13: #include <arpa/inet.h>
2752
14: #include <net/ethernet.h>
2753
15: #include <sys/un.h>
2754
16: #include <ifaddrs.h>
2755
17: #include <sys/ioctl.h>
2756
18: #include <sys/sockio.h>
2757
19: #include <net/if.h>
2758
20: #include <sys/param.h>
2759
21: #include <sys/ucred.h>
2760
22: #include <net/if_dl.h>
2761
23: #include <arpa/nameser.h>
2762
24: #include <resolv.h>
2763
25: 
2764
26: /*top*/
2765
27: extern int t(void);
2766
28: int main(int argc, char **argv)
2767
29: {
2768
30:   if (argc > 1000000) {
2769
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2770
32:     printf("%d", (*tp)());
2771
33:   }
2772
34: 
2773
35:   return 0;
2774
36: }
2775
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))hsterror; return !p; }
2776
/* end */
2777

    
2778
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2779
In file included from conftest.c:1:
2780
In file included from ../.././include/ruby.h:33:
2781
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2782
rb_array_ptr_use_end(VALUE a, int allow_transient)
2783
                                  ^
2784
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2785
int main(int argc, char **argv)
2786
                          ^
2787
2 warnings generated.
2788
Undefined symbols for architecture x86_64:
2789
  "_hsterror", referenced from:
2790
      _t in conftest-e8a37d.o
2791
ld: symbol(s) not found for architecture x86_64
2792
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2793
checked program was:
2794
/* begin */
2795
 1: #include "ruby.h"
2796
 2: 
2797
 3: #include <sys/types.h>
2798
 4: #include <netdb.h>
2799
 5: #include <string.h>
2800
 6: #include <sys/socket.h>
2801
 7: #include <netinet/in.h>
2802
 8: #include <sys/uio.h>
2803
 9: #include <netinet/in_systm.h>
2804
10: #include <netinet/tcp.h>
2805
11: #include <netinet/tcp_fsm.h>
2806
12: #include <netinet/udp.h>
2807
13: #include <arpa/inet.h>
2808
14: #include <net/ethernet.h>
2809
15: #include <sys/un.h>
2810
16: #include <ifaddrs.h>
2811
17: #include <sys/ioctl.h>
2812
18: #include <sys/sockio.h>
2813
19: #include <net/if.h>
2814
20: #include <sys/param.h>
2815
21: #include <sys/ucred.h>
2816
22: #include <net/if_dl.h>
2817
23: #include <arpa/nameser.h>
2818
24: #include <resolv.h>
2819
25: 
2820
26: /*top*/
2821
27: extern int t(void);
2822
28: int main(int argc, char **argv)
2823
29: {
2824
30:   if (argc > 1000000) {
2825
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2826
32:     printf("%d", (*tp)());
2827
33:   }
2828
34: 
2829
35:   return 0;
2830
36: }
2831
37: extern void hsterror();
2832
38: int t(void) { hsterror(); return 0; }
2833
/* end */
2834

    
2835
--------------------
2836

    
2837
have_func: checking for getipnodebyname("", 0, 0, (int *)0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2838

    
2839
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2840
In file included from conftest.c:1:
2841
In file included from ../.././include/ruby.h:33:
2842
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2843
rb_array_ptr_use_end(VALUE a, int allow_transient)
2844
                                  ^
2845
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2846
int main(int argc, char **argv)
2847
                          ^
2848
2 warnings generated.
2849
checked program was:
2850
/* begin */
2851
 1: #include "ruby.h"
2852
 2: 
2853
 3: #include <sys/types.h>
2854
 4: #include <netdb.h>
2855
 5: #include <string.h>
2856
 6: #include <sys/socket.h>
2857
 7: #include <netinet/in.h>
2858
 8: #include <sys/uio.h>
2859
 9: #include <netinet/in_systm.h>
2860
10: #include <netinet/tcp.h>
2861
11: #include <netinet/tcp_fsm.h>
2862
12: #include <netinet/udp.h>
2863
13: #include <arpa/inet.h>
2864
14: #include <net/ethernet.h>
2865
15: #include <sys/un.h>
2866
16: #include <ifaddrs.h>
2867
17: #include <sys/ioctl.h>
2868
18: #include <sys/sockio.h>
2869
19: #include <net/if.h>
2870
20: #include <sys/param.h>
2871
21: #include <sys/ucred.h>
2872
22: #include <net/if_dl.h>
2873
23: #include <arpa/nameser.h>
2874
24: #include <resolv.h>
2875
25: 
2876
26: /*top*/
2877
27: extern int t(void);
2878
28: int main(int argc, char **argv)
2879
29: {
2880
30:   if (argc > 1000000) {
2881
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2882
32:     printf("%d", (*tp)());
2883
33:   }
2884
34: 
2885
35:   return 0;
2886
36: }
2887
37: 
2888
38: int t(void) { getipnodebyname("", 0, 0, (int *)0); return 0; }
2889
/* end */
2890

    
2891
--------------------
2892

    
2893
have_func: checking for gethostbyname2("", 0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2894

    
2895
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2896
In file included from conftest.c:1:
2897
In file included from ../.././include/ruby.h:33:
2898
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2899
rb_array_ptr_use_end(VALUE a, int allow_transient)
2900
                                  ^
2901
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2902
int main(int argc, char **argv)
2903
                          ^
2904
2 warnings generated.
2905
checked program was:
2906
/* begin */
2907
 1: #include "ruby.h"
2908
 2: 
2909
 3: #include <sys/types.h>
2910
 4: #include <netdb.h>
2911
 5: #include <string.h>
2912
 6: #include <sys/socket.h>
2913
 7: #include <netinet/in.h>
2914
 8: #include <sys/uio.h>
2915
 9: #include <netinet/in_systm.h>
2916
10: #include <netinet/tcp.h>
2917
11: #include <netinet/tcp_fsm.h>
2918
12: #include <netinet/udp.h>
2919
13: #include <arpa/inet.h>
2920
14: #include <net/ethernet.h>
2921
15: #include <sys/un.h>
2922
16: #include <ifaddrs.h>
2923
17: #include <sys/ioctl.h>
2924
18: #include <sys/sockio.h>
2925
19: #include <net/if.h>
2926
20: #include <sys/param.h>
2927
21: #include <sys/ucred.h>
2928
22: #include <net/if_dl.h>
2929
23: #include <arpa/nameser.h>
2930
24: #include <resolv.h>
2931
25: 
2932
26: /*top*/
2933
27: extern int t(void);
2934
28: int main(int argc, char **argv)
2935
29: {
2936
30:   if (argc > 1000000) {
2937
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2938
32:     printf("%d", (*tp)());
2939
33:   }
2940
34: 
2941
35:   return 0;
2942
36: }
2943
37: 
2944
38: int t(void) { gethostbyname2("", 0); return 0; }
2945
/* end */
2946

    
2947
--------------------
2948

    
2949
have_func: checking for socketpair(0, 0, 0, 0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
2950

    
2951
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
2952
In file included from conftest.c:1:
2953
In file included from ../.././include/ruby.h:33:
2954
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
2955
rb_array_ptr_use_end(VALUE a, int allow_transient)
2956
                                  ^
2957
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
2958
int main(int argc, char **argv)
2959
                          ^
2960
2 warnings generated.
2961
checked program was:
2962
/* begin */
2963
 1: #include "ruby.h"
2964
 2: 
2965
 3: #include <sys/types.h>
2966
 4: #include <netdb.h>
2967
 5: #include <string.h>
2968
 6: #include <sys/socket.h>
2969
 7: #include <netinet/in.h>
2970
 8: #include <sys/uio.h>
2971
 9: #include <netinet/in_systm.h>
2972
10: #include <netinet/tcp.h>
2973
11: #include <netinet/tcp_fsm.h>
2974
12: #include <netinet/udp.h>
2975
13: #include <arpa/inet.h>
2976
14: #include <net/ethernet.h>
2977
15: #include <sys/un.h>
2978
16: #include <ifaddrs.h>
2979
17: #include <sys/ioctl.h>
2980
18: #include <sys/sockio.h>
2981
19: #include <net/if.h>
2982
20: #include <sys/param.h>
2983
21: #include <sys/ucred.h>
2984
22: #include <net/if_dl.h>
2985
23: #include <arpa/nameser.h>
2986
24: #include <resolv.h>
2987
25: 
2988
26: /*top*/
2989
27: extern int t(void);
2990
28: int main(int argc, char **argv)
2991
29: {
2992
30:   if (argc > 1000000) {
2993
31:     int (* volatile tp)(void)=(int (*)(void))&t;
2994
32:     printf("%d", (*tp)());
2995
33:   }
2996
34: 
2997
35:   return 0;
2998
36: }
2999
37: 
3000
38: int t(void) { socketpair(0, 0, 0, 0); return 0; }
3001
/* end */
3002

    
3003
--------------------
3004

    
3005
have_func: checking for gethostname((char *)0, 0) in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
3006

    
3007
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
3008
In file included from conftest.c:1:
3009
In file included from ../.././include/ruby.h:33:
3010
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3011
rb_array_ptr_use_end(VALUE a, int allow_transient)
3012
                                  ^
3013
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
3014
int main(int argc, char **argv)
3015
                          ^
3016
2 warnings generated.
3017
checked program was:
3018
/* begin */
3019
 1: #include "ruby.h"
3020
 2: 
3021
 3: #include <sys/types.h>
3022
 4: #include <netdb.h>
3023
 5: #include <string.h>
3024
 6: #include <sys/socket.h>
3025
 7: #include <netinet/in.h>
3026
 8: #include <sys/uio.h>
3027
 9: #include <netinet/in_systm.h>
3028
10: #include <netinet/tcp.h>
3029
11: #include <netinet/tcp_fsm.h>
3030
12: #include <netinet/udp.h>
3031
13: #include <arpa/inet.h>
3032
14: #include <net/ethernet.h>
3033
15: #include <sys/un.h>
3034
16: #include <ifaddrs.h>
3035
17: #include <sys/ioctl.h>
3036
18: #include <sys/sockio.h>
3037
19: #include <net/if.h>
3038
20: #include <sys/param.h>
3039
21: #include <sys/ucred.h>
3040
22: #include <net/if_dl.h>
3041
23: #include <arpa/nameser.h>
3042
24: #include <resolv.h>
3043
25: 
3044
26: /*top*/
3045
27: extern int t(void);
3046
28: int main(int argc, char **argv)
3047
29: {
3048
30:   if (argc > 1000000) {
3049
31:     int (* volatile tp)(void)=(int (*)(void))&t;
3050
32:     printf("%d", (*tp)());
3051
33:   }
3052
34: 
3053
35:   return 0;
3054
36: }
3055
37: 
3056
38: int t(void) { gethostname((char *)0, 0); return 0; }
3057
/* end */
3058

    
3059
--------------------
3060

    
3061
checking for ipv6... -------------------- yes
3062

    
3063
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
3064
In file included from conftest.c:1:
3065
In file included from ../.././include/ruby.h:33:
3066
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3067
rb_array_ptr_use_end(VALUE a, int allow_transient)
3068
                                  ^
3069
1 warning generated.
3070
checked program was:
3071
/* begin */
3072
 1: #include "ruby.h"
3073
 2: 
3074
 3: #include <sys/types.h>
3075
 4: #ifndef _WIN32
3076
 5: #include <sys/socket.h>
3077
 6: #endif
3078
 7: int
3079
 8: main(void)
3080
 9: {
3081
10:   socket(AF_INET6, SOCK_STREAM, 0);
3082
11:   return 0;
3083
12: }
3084
/* end */
3085

    
3086
--------------------
3087

    
3088
checking for ipv6 type... -------------------- kame
3089

    
3090
have_macro: checking for IPV6_INRIA_VERSION in netinet/in.h... -------------------- no
3091

    
3092
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
3093
In file included from conftest.c:1:
3094
In file included from ../.././include/ruby.h:33:
3095
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3096
rb_array_ptr_use_end(VALUE a, int allow_transient)
3097
                                  ^
3098
conftest.c:6:3: error: 
3099
# error
3100
  ^
3101
conftest.c:7:1: error: expected identifier or '('
3102
|:/ === IPV6_INRIA_VERSION undefined === /:|
3103
^
3104
1 warning and 2 errors generated.
3105
checked program was:
3106
/* begin */
3107
1: #include "ruby.h"
3108
2: 
3109
3: #include <netinet/in.h>
3110
4: /*top*/
3111
5: #ifndef IPV6_INRIA_VERSION
3112
6: # error
3113
7: |:/ === IPV6_INRIA_VERSION undefined === /:|
3114
8: #endif
3115
/* end */
3116

    
3117
--------------------
3118

    
3119
have_macro: checking for __KAME__ in netinet/in.h... -------------------- yes
3120

    
3121
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
3122
In file included from conftest.c:1:
3123
In file included from ../.././include/ruby.h:33:
3124
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3125
rb_array_ptr_use_end(VALUE a, int allow_transient)
3126
                                  ^
3127
1 warning generated.
3128
checked program was:
3129
/* begin */
3130
1: #include "ruby.h"
3131
2: 
3132
3: #include <netinet/in.h>
3133
4: /*top*/
3134
5: #ifndef __KAME__
3135
6: # error
3136
7: |:/ === __KAME__ undefined === /:|
3137
8: #endif
3138
/* end */
3139

    
3140
--------------------
3141

    
3142
have_library: checking for -linet6... -------------------- no
3143

    
3144
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc -linet6   "
3145
In file included from conftest.c:1:
3146
In file included from ../.././include/ruby.h:33:
3147
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3148
rb_array_ptr_use_end(VALUE a, int allow_transient)
3149
                                  ^
3150
conftest.c:5:27: warning: unused parameter 'argv' [-Wunused-parameter]
3151
int main(int argc, char **argv)
3152
                          ^
3153
2 warnings generated.
3154
ld: library not found for -linet6
3155
clang: error: linker command failed with exit code 1 (use -v to see invocation)
3156
checked program was:
3157
/* begin */
3158
 1: #include "ruby.h"
3159
 2: 
3160
 3: /*top*/
3161
 4: extern int t(void);
3162
 5: int main(int argc, char **argv)
3163
 6: {
3164
 7:   if (argc > 1000000) {
3165
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
3166
 9:     printf("%d", (*tp)());
3167
10:   }
3168
11: 
3169
12:   return 0;
3170
13: }
3171
14: 
3172
15: int t(void) { ; return 0; }
3173
/* end */
3174

    
3175
--------------------
3176

    
3177
--------------------
3178

    
3179
have_macro: checking for IPPROTO_IPV6 in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
3180

    
3181
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
3182
In file included from conftest.c:1:
3183
In file included from ../.././include/ruby.h:33:
3184
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3185
rb_array_ptr_use_end(VALUE a, int allow_transient)
3186
                                  ^
3187
1 warning generated.
3188
checked program was:
3189
/* begin */
3190
 1: #include "ruby.h"
3191
 2: 
3192
 3: #include <sys/types.h>
3193
 4: #include <netdb.h>
3194
 5: #include <string.h>
3195
 6: #include <sys/socket.h>
3196
 7: #include <netinet/in.h>
3197
 8: #include <sys/uio.h>
3198
 9: #include <netinet/in_systm.h>
3199
10: #include <netinet/tcp.h>
3200
11: #include <netinet/tcp_fsm.h>
3201
12: #include <netinet/udp.h>
3202
13: #include <arpa/inet.h>
3203
14: #include <net/ethernet.h>
3204
15: #include <sys/un.h>
3205
16: #include <ifaddrs.h>
3206
17: #include <sys/ioctl.h>
3207
18: #include <sys/sockio.h>
3208
19: #include <net/if.h>
3209
20: #include <sys/param.h>
3210
21: #include <sys/ucred.h>
3211
22: #include <net/if_dl.h>
3212
23: #include <arpa/nameser.h>
3213
24: #include <resolv.h>
3214
25: /*top*/
3215
26: #ifndef IPPROTO_IPV6
3216
27: # error
3217
28: |:/ === IPPROTO_IPV6 undefined === /:|
3218
29: #endif
3219
/* end */
3220

    
3221
--------------------
3222

    
3223
have_const: checking for AF_UNIX in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
3224

    
3225
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
3226
In file included from conftest.c:1:
3227
In file included from ../.././include/ruby.h:33:
3228
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3229
rb_array_ptr_use_end(VALUE a, int allow_transient)
3230
                                  ^
3231
1 warning generated.
3232
checked program was:
3233
/* begin */
3234
 1: #include "ruby.h"
3235
 2: 
3236
 3: #include <sys/types.h>
3237
 4: #include <netdb.h>
3238
 5: #include <string.h>
3239
 6: #include <sys/socket.h>
3240
 7: #include <netinet/in.h>
3241
 8: #include <sys/uio.h>
3242
 9: #include <netinet/in_systm.h>
3243
10: #include <netinet/tcp.h>
3244
11: #include <netinet/tcp_fsm.h>
3245
12: #include <netinet/udp.h>
3246
13: #include <arpa/inet.h>
3247
14: #include <net/ethernet.h>
3248
15: #include <sys/un.h>
3249
16: #include <ifaddrs.h>
3250
17: #include <sys/ioctl.h>
3251
18: #include <sys/sockio.h>
3252
19: #include <net/if.h>
3253
20: #include <sys/param.h>
3254
21: #include <sys/ucred.h>
3255
22: #include <net/if_dl.h>
3256
23: #include <arpa/nameser.h>
3257
24: #include <resolv.h>
3258
25: 
3259
26: /*top*/
3260
27: typedef int conftest_type;
3261
28: conftest_type conftestval = (int)AF_UNIX;
3262
/* end */
3263

    
3264
--------------------
3265

    
3266
have_const: checking for SCM_RIGHTS in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
3267

    
3268
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542   -c conftest.c"
3269
In file included from conftest.c:1:
3270
In file included from ../.././include/ruby.h:33:
3271
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3272
rb_array_ptr_use_end(VALUE a, int allow_transient)
3273
                                  ^
3274
1 warning generated.
3275
checked program was:
3276
/* begin */
3277
 1: #include "ruby.h"
3278
 2: 
3279
 3: #include <sys/types.h>
3280
 4: #include <netdb.h>
3281
 5: #include <string.h>
3282
 6: #include <sys/socket.h>
3283
 7: #include <netinet/in.h>
3284
 8: #include <sys/uio.h>
3285
 9: #include <netinet/in_systm.h>
3286
10: #include <netinet/tcp.h>
3287
11: #include <netinet/tcp_fsm.h>
3288
12: #include <netinet/udp.h>
3289
13: #include <arpa/inet.h>
3290
14: #include <net/ethernet.h>
3291
15: #include <sys/un.h>
3292
16: #include <ifaddrs.h>
3293
17: #include <sys/ioctl.h>
3294
18: #include <sys/sockio.h>
3295
19: #include <net/if.h>
3296
20: #include <sys/param.h>
3297
21: #include <sys/ucred.h>
3298
22: #include <net/if_dl.h>
3299
23: #include <arpa/nameser.h>
3300
24: #include <resolv.h>
3301
25: 
3302
26: /*top*/
3303
27: typedef int conftest_type;
3304
28: conftest_type conftestval = (int)SCM_RIGHTS;
3305
/* end */
3306

    
3307
--------------------
3308

    
3309
test_recvmsg_with_msg_peek_creates_fds: checking for recvmsg() with MSG_PEEK allocate file descriptors... -------------------- no
3310

    
3311
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
3312
In file included from conftest.c:1:
3313
In file included from ../.././include/ruby.h:33:
3314
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3315
rb_array_ptr_use_end(VALUE a, int allow_transient)
3316
                                  ^
3317
conftest.c:43:20: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
3318
        char dummy[CMSG_SPACE(sizeof(int))];
3319
                   ^~~~~~~~~~~~~~~~~~~~~~~
3320
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/socket.h:647:33: note: expanded from macro 'CMSG_SPACE'
3321
#define CMSG_SPACE(l)           (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l))
3322
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3323
conftest.c:43:20: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
3324
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/socket.h:647:34: note: expanded from macro 'CMSG_SPACE'
3325
#define CMSG_SPACE(l)           (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l))
3326
                                 ^
3327
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/i386/_param.h:43:42: note: expanded from macro '__DARWIN_ALIGN32'
3328
#define       __DARWIN_ALIGN32(p)       ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
3329
                                         ^
3330
conftest.c:34:14: warning: unused parameter 'argc' [-Wunused-parameter]
3331
int main(int argc, char *argv[])
3332
             ^
3333
conftest.c:34:26: warning: unused parameter 'argv' [-Wunused-parameter]
3334
int main(int argc, char *argv[])
3335
                         ^
3336
4 warnings generated.
3337
checked program was:
3338
/* begin */
3339
  1: #include "ruby.h"
3340
  2: 
3341
  3: #include <sys/types.h>
3342
  4: #include <netdb.h>
3343
  5: #include <string.h>
3344
  6: #include <sys/socket.h>
3345
  7: #include <netinet/in.h>
3346
  8: #include <sys/uio.h>
3347
  9: #include <netinet/in_systm.h>
3348
 10: #include <netinet/tcp.h>
3349
 11: #include <netinet/tcp_fsm.h>
3350
 12: #include <netinet/udp.h>
3351
 13: #include <arpa/inet.h>
3352
 14: #include <net/ethernet.h>
3353
 15: #include <sys/un.h>
3354
 16: #include <ifaddrs.h>
3355
 17: #include <sys/ioctl.h>
3356
 18: #include <sys/sockio.h>
3357
 19: #include <net/if.h>
3358
 20: #include <sys/param.h>
3359
 21: #include <sys/ucred.h>
3360
 22: #include <net/if_dl.h>
3361
 23: #include <arpa/nameser.h>
3362
 24: #include <resolv.h>
3363
 25: #include <stdlib.h>
3364
 26: #include <stdio.h>
3365
 27: #include <string.h>
3366
 28: #include <sys/types.h>
3367
 29: #include <sys/stat.h>
3368
 30: #include <sys/socket.h>
3369
 31: #include <sys/un.h>
3370
 32: #include <unistd.h>
3371
 33: 
3372
 34: int main(int argc, char *argv[])
3373
 35: {
3374
 36:     int ps[2], sv[2];
3375
 37:     int ret;
3376
 38:     ssize_t ss;
3377
 39:     int s_fd, r_fd;
3378
 40:     struct msghdr s_msg, r_msg;
3379
 41:     union {
3380
 42:         struct cmsghdr hdr;
3381
 43:         char dummy[CMSG_SPACE(sizeof(int))];
3382
 44:     } s_cmsg, r_cmsg;
3383
 45:     struct iovec s_iov, r_iov;
3384
 46:     char s_buf[1], r_buf[1];
3385
 47:     struct stat s_statbuf, r_statbuf;
3386
 48: 
3387
 49:     ret = pipe(ps);
3388
 50:     if (ret == -1) { perror("pipe"); exit(EXIT_FAILURE); }
3389
 51: 
3390
 52:     s_fd = ps[0];
3391
 53: 
3392
 54:     ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, sv);
3393
 55:     if (ret == -1) { perror("socketpair"); exit(EXIT_FAILURE); }
3394
 56: 
3395
 57:     s_msg.msg_name = NULL;
3396
 58:     s_msg.msg_namelen = 0;
3397
 59:     s_msg.msg_iov = &s_iov;
3398
 60:     s_msg.msg_iovlen = 1;
3399
 61:     s_msg.msg_control = &s_cmsg;
3400
 62:     s_msg.msg_controllen = CMSG_SPACE(sizeof(int));;
3401
 63:     s_msg.msg_flags = 0;
3402
 64: 
3403
 65:     s_iov.iov_base = &s_buf;
3404
 66:     s_iov.iov_len = sizeof(s_buf);
3405
 67: 
3406
 68:     s_buf[0] = 'a';
3407
 69: 
3408
 70:     s_cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int));
3409
 71:     s_cmsg.hdr.cmsg_level = SOL_SOCKET;
3410
 72:     s_cmsg.hdr.cmsg_type = SCM_RIGHTS;
3411
 73:     memcpy(CMSG_DATA(&s_cmsg.hdr), (char *)&s_fd, sizeof(int));
3412
 74: 
3413
 75:     ss = sendmsg(sv[0], &s_msg, 0);
3414
 76:     if (ss == -1) { perror("sendmsg"); exit(EXIT_FAILURE); }
3415
 77: 
3416
 78:     r_msg.msg_name = NULL;
3417
 79:     r_msg.msg_namelen = 0;
3418
 80:     r_msg.msg_iov = &r_iov;
3419
 81:     r_msg.msg_iovlen = 1;
3420
 82:     r_msg.msg_control = &r_cmsg;
3421
 83:     r_msg.msg_controllen = CMSG_SPACE(sizeof(int));
3422
 84:     r_msg.msg_flags = 0;
3423
 85: 
3424
 86:     r_iov.iov_base = &r_buf;
3425
 87:     r_iov.iov_len = sizeof(r_buf);
3426
 88: 
3427
 89:     r_buf[0] = '0';
3428
 90: 
3429
 91:     memset(&r_cmsg, 0xff, CMSG_SPACE(sizeof(int)));
3430
 92: 
3431
 93:     ss = recvmsg(sv[1], &r_msg, MSG_PEEK);
3432
 94:     if (ss == -1) { perror("recvmsg"); exit(EXIT_FAILURE); }
3433
 95: 
3434
 96:     if (ss != 1) {
3435
 97:         fprintf(stderr, "unexpected return value from recvmsg: %ld\n", (long)ss);
3436
 98:         exit(EXIT_FAILURE);
3437
 99:     }
3438
100:     if (r_buf[0] != 'a') {
3439
101:         fprintf(stderr, "unexpected return data from recvmsg: 0x%02x\n", r_buf[0]);
3440
102:         exit(EXIT_FAILURE);
3441
103:     }
3442
104: 
3443
105:     if (r_msg.msg_controllen < CMSG_LEN(sizeof(int))) {
3444
106:         fprintf(stderr, "unexpected: r_msg.msg_controllen < CMSG_LEN(sizeof(int)) not hold: %ld\n",
3445
107:                 (long)r_msg.msg_controllen);
3446
108:         exit(EXIT_FAILURE);
3447
109:     }
3448
110:     if (r_cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(int))) {
3449
111:         fprintf(stderr, "unexpected: r_cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(int)) not hold: %ld\n",
3450
112:                 (long)r_cmsg.hdr.cmsg_len);
3451
113:         exit(EXIT_FAILURE);
3452
114:     }
3453
115:     memcpy((char *)&r_fd, CMSG_DATA(&r_cmsg.hdr), sizeof(int));
3454
116: 
3455
117:     if (r_fd < 0) {
3456
118:         fprintf(stderr, "negative r_fd: %d\n", r_fd);
3457
119:         exit(EXIT_FAILURE);
3458
120:     }
3459
121: 
3460
122:     if (r_fd == s_fd) {
3461
123:         fprintf(stderr, "r_fd and s_fd is same: %d\n", r_fd);
3462
124:         exit(EXIT_FAILURE);
3463
125:     }
3464
126: 
3465
127:     ret = fstat(s_fd, &s_statbuf);
3466
128:     if (ret == -1) { perror("fstat(s_fd)"); exit(EXIT_FAILURE); }
3467
129: 
3468
130:     ret = fstat(r_fd, &r_statbuf);
3469
131:     if (ret == -1) { perror("fstat(r_fd)"); exit(EXIT_FAILURE); }
3470
132: 
3471
133:     if (s_statbuf.st_dev != r_statbuf.st_dev ||
3472
134:         s_statbuf.st_ino != r_statbuf.st_ino) {
3473
135:         fprintf(stderr, "dev/ino doesn't match: s_fd:%ld/%ld r_fd:%ld/%ld\n",
3474
136:                 (long)s_statbuf.st_dev, (long)s_statbuf.st_ino,
3475
137:                 (long)r_statbuf.st_dev, (long)r_statbuf.st_ino);
3476
138:         exit(EXIT_FAILURE);
3477
139:     }
3478
140: 
3479
141:     return EXIT_SUCCESS;
3480
142: }
3481
/* end */
3482

    
3483
./conftest
3484
fstat(r_fd): Bad file descriptor
3485
--------------------
3486

    
3487
have_func: checking for getnameinfo() in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
3488

    
3489
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
3490
In file included from conftest.c:1:
3491
In file included from ../.././include/ruby.h:33:
3492
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3493
rb_array_ptr_use_end(VALUE a, int allow_transient)
3494
                                  ^
3495
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
3496
int main(int argc, char **argv)
3497
                          ^
3498
2 warnings generated.
3499
checked program was:
3500
/* begin */
3501
 1: #include "ruby.h"
3502
 2: 
3503
 3: #include <sys/types.h>
3504
 4: #include <netdb.h>
3505
 5: #include <string.h>
3506
 6: #include <sys/socket.h>
3507
 7: #include <netinet/in.h>
3508
 8: #include <sys/uio.h>
3509
 9: #include <netinet/in_systm.h>
3510
10: #include <netinet/tcp.h>
3511
11: #include <netinet/tcp_fsm.h>
3512
12: #include <netinet/udp.h>
3513
13: #include <arpa/inet.h>
3514
14: #include <net/ethernet.h>
3515
15: #include <sys/un.h>
3516
16: #include <ifaddrs.h>
3517
17: #include <sys/ioctl.h>
3518
18: #include <sys/sockio.h>
3519
19: #include <net/if.h>
3520
20: #include <sys/param.h>
3521
21: #include <sys/ucred.h>
3522
22: #include <net/if_dl.h>
3523
23: #include <arpa/nameser.h>
3524
24: #include <resolv.h>
3525
25: 
3526
26: /*top*/
3527
27: extern int t(void);
3528
28: int main(int argc, char **argv)
3529
29: {
3530
30:   if (argc > 1000000) {
3531
31:     int (* volatile tp)(void)=(int (*)(void))&t;
3532
32:     printf("%d", (*tp)());
3533
33:   }
3534
34: 
3535
35:   return 0;
3536
36: }
3537
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))getnameinfo; return !p; }
3538
/* end */
3539

    
3540
--------------------
3541

    
3542
have_func: checking for getaddrinfo() in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,sys/uio.h,netinet/in_systm.h,netinet/tcp.h,netinet/tcp_fsm.h,netinet/udp.h,arpa/inet.h,net/ethernet.h,sys/un.h,ifaddrs.h,sys/ioctl.h,sys/sockio.h,net/if.h,sys/param.h,sys/ucred.h,net/if_dl.h,arpa/nameser.h,resolv.h... -------------------- yes
3543

    
3544
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
3545
In file included from conftest.c:1:
3546
In file included from ../.././include/ruby.h:33:
3547
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3548
rb_array_ptr_use_end(VALUE a, int allow_transient)
3549
                                  ^
3550
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
3551
int main(int argc, char **argv)
3552
                          ^
3553
2 warnings generated.
3554
checked program was:
3555
/* begin */
3556
 1: #include "ruby.h"
3557
 2: 
3558
 3: #include <sys/types.h>
3559
 4: #include <netdb.h>
3560
 5: #include <string.h>
3561
 6: #include <sys/socket.h>
3562
 7: #include <netinet/in.h>
3563
 8: #include <sys/uio.h>
3564
 9: #include <netinet/in_systm.h>
3565
10: #include <netinet/tcp.h>
3566
11: #include <netinet/tcp_fsm.h>
3567
12: #include <netinet/udp.h>
3568
13: #include <arpa/inet.h>
3569
14: #include <net/ethernet.h>
3570
15: #include <sys/un.h>
3571
16: #include <ifaddrs.h>
3572
17: #include <sys/ioctl.h>
3573
18: #include <sys/sockio.h>
3574
19: #include <net/if.h>
3575
20: #include <sys/param.h>
3576
21: #include <sys/ucred.h>
3577
22: #include <net/if_dl.h>
3578
23: #include <arpa/nameser.h>
3579
24: #include <resolv.h>
3580
25: 
3581
26: /*top*/
3582
27: extern int t(void);
3583
28: int main(int argc, char **argv)
3584
29: {
3585
30:   if (argc > 1000000) {
3586
31:     int (* volatile tp)(void)=(int (*)(void))&t;
3587
32:     printf("%d", (*tp)());
3588
33:   }
3589
34: 
3590
35:   return 0;
3591
36: }
3592
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))getaddrinfo; return !p; }
3593
/* end */
3594

    
3595
--------------------
3596

    
3597
checking for system getaddrinfo working... -------------------- yes
3598

    
3599
"clang -o conftest -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 conftest.c  -L. -L../.. -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib     -lruby.2.6-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc   "
3600
In file included from conftest.c:1:
3601
In file included from ../.././include/ruby.h:33:
3602
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
3603
rb_array_ptr_use_end(VALUE a, int allow_transient)
3604
                                  ^
3605
1 warning generated.
3606
checked program was:
3607
/* begin */
3608
  1: #include "ruby.h"
3609
  2: 
3610
  3: #include <sys/types.h>
3611
  4: #include <netdb.h>
3612
  5: #include <string.h>
3613
  6: #include <sys/socket.h>
3614
  7: #include <netinet/in.h>
3615
  8: #include <sys/uio.h>
3616
  9: #include <netinet/in_systm.h>
3617
 10: #include <netinet/tcp.h>
3618
 11: #include <netinet/tcp_fsm.h>
3619
 12: #include <netinet/udp.h>
3620
 13: #include <arpa/inet.h>
3621
 14: #include <net/ethernet.h>
3622
 15: #include <sys/un.h>
3623
 16: #include <ifaddrs.h>
3624
 17: #include <sys/ioctl.h>
3625
 18: #include <sys/sockio.h>
3626
 19: #include <net/if.h>
3627
 20: #include <sys/param.h>
3628
 21: #include <sys/ucred.h>
3629
 22: #include <net/if_dl.h>
3630
 23: #include <arpa/nameser.h>
3631
 24: #include <resolv.h>
3632
 25: #include <stdlib.h>
3633
 26: 
3634
 27: #ifndef EXIT_SUCCESS
3635
 28: #define EXIT_SUCCESS 0
3636
 29: #endif
3637
 30: #ifndef EXIT_FAILURE
3638
 31: #define EXIT_FAILURE 1
3639
 32: #endif
3640
 33: 
3641
 34: #ifndef AF_LOCAL
3642
 35: #define AF_LOCAL AF_UNIX
3643
 36: #endif
3644
 37: 
3645
 38: int
3646
 39: main(void)
3647
 40: {
3648
 41:   int passive, gaierr, inet4 = 0, inet6 = 0;
3649
 42:   struct addrinfo hints, *ai, *aitop;
3650
 43:   char straddr[INET6_ADDRSTRLEN], strport[16];
3651
 44: #ifdef _WIN32
3652
 45:   WSADATA retdata;
3653
 46: 
3654
 47:   WSAStartup(MAKEWORD(2, 0), &retdata);
3655
 48: #endif
3656
 49: 
3657
 50:   for (passive = 0; passive <= 1; passive++) {
3658
 51:     memset(&hints, 0, sizeof(hints));
3659
 52:     hints.ai_family = AF_UNSPEC;
3660
 53:     hints.ai_protocol = IPPROTO_TCP;
3661
 54:     hints.ai_flags = passive ? AI_PASSIVE : 0;
3662
 55:     hints.ai_socktype = SOCK_STREAM;
3663
 56:     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
3664
 57:       (void)gai_strerror(gaierr);
3665
 58:       goto bad;
3666
 59:     }
3667
 60:     for (ai = aitop; ai; ai = ai->ai_next) {
3668
 61:       if (ai->ai_family == AF_LOCAL) continue;
3669
 62:       if (ai->ai_addr == NULL)
3670
 63:         goto bad;
3671
 64: #if defined(_AIX)
3672
 65:       if (ai->ai_family == AF_INET6 && passive) {
3673
 66:         inet6++;
3674
 67:         continue;
3675
 68:       }
3676
 69:       ai->ai_addr->sa_len = ai->ai_addrlen;
3677
 70:       ai->ai_addr->sa_family = ai->ai_family;
3678
 71: #endif
3679
 72:       if (ai->ai_addrlen == 0 ||
3680
 73:           getnameinfo(ai->ai_addr, ai->ai_addrlen,
3681
 74:                       straddr, sizeof(straddr), strport, sizeof(strport),
3682
 75:                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
3683
 76:         goto bad;
3684
 77:       }
3685
 78:       if (strcmp(strport, "54321") != 0) {
3686
 79:         goto bad;
3687
 80:       }
3688
 81:       switch (ai->ai_family) {
3689
 82:       case AF_INET:
3690
 83:         if (passive) {
3691
 84:           if (strcmp(straddr, "0.0.0.0") != 0) {
3692
 85:             goto bad;
3693
 86:           }
3694
 87:         } else {
3695
 88:           if (strcmp(straddr, "127.0.0.1") != 0) {
3696
 89:             goto bad;
3697
 90:           }
3698
 91:         }
3699
 92:         inet4++;
3700
 93:         break;
3701
 94:       case AF_INET6:
3702
 95:         if (passive) {
3703
 96:           if (strcmp(straddr, "::") != 0) {
3704
 97:             goto bad;
3705
 98:           }
3706
 99:         } else {
3707
100:           if (strcmp(straddr, "::1") != 0) {
3708
101:             goto bad;
3709
102:           }
3710
103:         }
3711
104:         inet6++;
3712
105:         break;
3713
106:       case AF_UNSPEC:
3714
107:         goto bad;
3715
108:         break;
3716
109:       default:
3717
110:         /* another family support? */
3718
111:         break;
3719
112:       }
3720
113:     }
3721
114:   }
3722
115: 
3723
116:   if (!(inet4 == 0 || inet4 == 2))
3724
117:     goto bad;
3725
118:   if (!(inet6 == 0 || inet6 == 2))
3726
119:     goto bad;
3727
120: 
3728
121:   if (aitop)
3729
122:     freeaddrinfo(aitop);
3730
123:   return EXIT_SUCCESS;
3731
124: 
3732
125:  bad:
3733
126:   if (aitop)
3734
127:     freeaddrinfo(aitop);
3735
128:   return EXIT_FAILURE;
3736
129: }
3737
/* end */
3738

    
3739
./conftest
3740
--------------------
3741

    
3742
"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../.  -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542  -Werror -c conftest.c"
3743
In file included from conftest.c:1:
3744
In file included from ../.././include/ruby.h:33:
3745
../.././include/ruby/ruby.h:2186:35: error: unused parameter 'allow_transient' [-Werror,-Wunused-parameter]
3746
rb_array_ptr_use_end(VALUE a, int allow_transient)
3747
                                  ^
3748
1 error generated.
3749
checked program was:
3750
/* begin */
3751
1: #include "ruby.h"
3752
2: 
3753
3: #include <netinet/in.h>
3754
4: int t(struct in6_addr *addr) {return IN6_IS_ADDR_UNSPECIFIED(addr);}
3755
/* end */
3756

    
3757
/Users/franklinyu/src/ruby-2.6.3/ext/socket/extconf.rb:660: No such file or directory @ rb_sysopen - /usr/include/netinet6/in6.h
3758
	/Users/franklinyu/src/ruby-2.6.3/ext/socket/extconf.rb:660:in `read'
3759
	/Users/franklinyu/src/ruby-2.6.3/ext/socket/extconf.rb:660:in `<top (required)>'
3760
	./ext/extmk.rb:214:in `load'
3761
	./ext/extmk.rb:214:in `block in extmake'
3762
	/Users/franklinyu/src/ruby-2.6.3/lib/mkmf.rb:331:in `open'
3763
	./ext/extmk.rb:210:in `extmake'
3764
	./ext/extmk.rb:568:in `block in <main>'
3765
	./ext/extmk.rb:564:in `each'
3766
	./ext/extmk.rb:564:in `<main>'