Project

General

Profile

Feature #15665 ยป mkmf.log

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

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:3:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:3:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
/* end */

--------------------

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

"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"
conftest.c:9:10: fatal error: 'xti.h' file not found
#include <xti.h>
^~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <xti.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
/* end */

--------------------

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

"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"
conftest.c:14:10: fatal error: 'netpacket/packet.h' file not found
#include <netpacket/packet.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <netpacket/packet.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
/* end */

--------------------

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

"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"
conftest.c:22:10: fatal error: 'ucred.h' file not found
#include <ucred.h>
^~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <ucred.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
/* end */

--------------------

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

"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"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct sockaddr*)0)->sa_len - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct sockaddr_in*)0)->sin_len - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct sockaddr_in6*)0)->sin6_len - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct sockaddr_un conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct sockaddr_un*)0)->sun_len - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct sockaddr_dl conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct sockaddr_storage conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct addrinfo conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef socklen_t conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:27:20: error: 'conftest_const' declared as an array with a negative size
int conftest_const[(sizeof(socklen_t) >= sizeof(long)) ? 1 : -1];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int conftest_const[(sizeof(socklen_t) >= sizeof(long)) ? 1 : -1];
/* end */

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: #if defined(IPPROTO_IP) && defined(IP_PKTINFO)
28: typedef struct in_pktinfo conftest_type;
29: int conftestval[sizeof(conftest_type)?1:-1];
30: #else
31: #error
32: >>>>>> no in_pktinfo <<<<<<
33: #endif
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct in_pktinfo*)0)->ipi_spec_dst - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: #if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)
28: typedef struct in6_pktinfo conftest_type;
29: int conftestval[sizeof(conftest_type)?1:-1];
30: #else
31: #error
32: >>>>>> no in6_pktinfo <<<<<<
33: #endif
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:17: error: invalid application of 'sizeof' to an incomplete type 'conftest_type' (aka 'struct sockcred')
int conftestval[sizeof(conftest_type)?1:-1];
^ ~~~~~~~~~~~~~~~
conftest.c:27:16: note: forward declaration of 'struct sockcred'
typedef struct sockcred conftest_type;
^
1 warning and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct sockcred conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:17: error: invalid application of 'sizeof' to an incomplete type 'conftest_type' (aka 'struct cmsgcred')
int conftestval[sizeof(conftest_type)?1:-1];
^ ~~~~~~~~~~~~~~~
conftest.c:27:16: note: forward declaration of 'struct cmsgcred'
typedef struct cmsgcred conftest_type;
^
1 warning and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct cmsgcred conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct ip_mreq conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct ip_mreqn conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct ipv6_mreq conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct msghdr*)0)->msg_control - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:27:39: error: no member named 'msg_accrights' in 'struct msghdr'
int s = (char *)&((struct msghdr*)0)->msg_accrights - (char *)0;
~~~~~~~~~~~~~~~~~~~ ^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct msghdr*)0)->msg_accrights - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:17: error: invalid application of 'sizeof' to an incomplete type 'conftest_type' (aka 'struct tcp_info')
int conftestval[sizeof(conftest_type)?1:-1];
^ ~~~~~~~~~~~~~~~
conftest.c:27:16: note: forward declaration of 'struct tcp_info'
typedef struct tcp_info conftest_type;
^
1 warning and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef struct tcp_info conftest_type;
28: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:38:15: warning: implicit declaration of function 't_open' is invalid in C99 [-Wimplicit-function-declaration]
int t(void) { t_open("", 0, (struct t_info *)NULL); return 0; }
^
3 warnings generated.
ld: library not found for -lnsl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { t_open("", 0, (struct t_info *)NULL); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
ld: library not found for -lsocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { socket(0,0,0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { socket(0,0,0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { sendmsg(0, (struct msghdr *)NULL, 0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { recvmsg(0, (struct msghdr *)NULL, 0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { freehostent((struct hostent *)NULL); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { freeaddrinfo((struct addrinfo *)NULL); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { gai_strerror(0); return 0; }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:30:22: error: read-only variable is not assignable
*gai_strerror(0) = 0;
~~~~~~~~~~~~~~~~ ^
1 warning and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: #include <stdlib.h>
27: void
28: conftest_gai_strerror_is_const()
29: {
30: *gai_strerror(0) = 0;
31: }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:37:57: error: use of undeclared identifier 'accept4'
int t(void) { void ((*volatile p)()); p = (void ((*)()))accept4; return !p; }
^
2 warnings and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))accept4; return !p; }
/* end */

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
Undefined symbols for architecture x86_64:
"_accept4", referenced from:
_t in conftest-db9c39.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: extern void accept4();
38: int t(void) { accept4(); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { inet_ntop(0, (const void *)0, (char *)0, 0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { inet_pton(0, "", (void *)0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { getservbyport(0, ""); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { getifaddrs((struct ifaddrs **)NULL); return 0; }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:27:40: error: no member named 'ifi_vhid' in 'struct if_data'
int s = (char *)&((struct if_data*)0)->ifi_vhid - (char *)0;
~~~~~~~~~~~~~~~~~~~~ ^
conftest.c:28:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
3 warnings and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: int s = (char *)&((struct if_data*)0)->ifi_vhid - (char *)0;
28: int main(int argc, char **argv)
29: {
30: return 0;
31: }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))getpeereid; return !p; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:38:15: warning: implicit declaration of function 'getpeerucred' is invalid in C99 [-Wimplicit-function-declaration]
int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
^
conftest.c:38:42: error: expected expression
int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
^
conftest.c:38:32: error: use of undeclared identifier 'ucred_t'
int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
^
3 warnings and 2 errors generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { getpeerucred(0, (ucred_t **)NULL); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { if_indextoname(0, ""); return 0; }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int if_indextoname(void);
/* end */

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: void if_indextoname(void);
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { if_nametoindex(""); return 0; }
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int if_nametoindex(void);
/* end */

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: void if_nametoindex(void);
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
conftest.c:37:57: error: use of undeclared identifier 'hsterror'
int t(void) { void ((*volatile p)()); p = (void ((*)()))hsterror; return !p; }
^
2 warnings and 1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))hsterror; return !p; }
/* end */

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
Undefined symbols for architecture x86_64:
"_hsterror", referenced from:
_t in conftest-e8a37d.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: extern void hsterror();
38: int t(void) { hsterror(); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { getipnodebyname("", 0, 0, (int *)0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { gethostbyname2("", 0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { socketpair(0, 0, 0, 0); return 0; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37:
38: int t(void) { gethostname((char *)0, 0); return 0; }
/* end */

--------------------

checking for ipv6... -------------------- yes

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #ifndef _WIN32
5: #include <sys/socket.h>
6: #endif
7: int
8: main(void)
9: {
10: socket(AF_INET6, SOCK_STREAM, 0);
11: return 0;
12: }
/* end */

--------------------

checking for ipv6 type... -------------------- kame

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:6:3: error:
# error
^
conftest.c:7:1: error: expected identifier or '('
|:/ === IPV6_INRIA_VERSION undefined === /:|
^
1 warning and 2 errors generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <netinet/in.h>
4: /*top*/
5: #ifndef IPV6_INRIA_VERSION
6: # error
7: |:/ === IPV6_INRIA_VERSION undefined === /:|
8: #endif
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <netinet/in.h>
4: /*top*/
5: #ifndef __KAME__
6: # error
7: |:/ === __KAME__ undefined === /:|
8: #endif
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:5:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
ld: library not found for -linet6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: int (* volatile tp)(void)=(int (*)(void))&t;
9: printf("%d", (*tp)());
10: }
11:
12: return 0;
13: }
14:
15: int t(void) { ; return 0; }
/* end */

--------------------

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25: /*top*/
26: #ifndef IPPROTO_IPV6
27: # error
28: |:/ === IPPROTO_IPV6 undefined === /:|
29: #endif
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef int conftest_type;
28: conftest_type conftestval = (int)AF_UNIX;
/* end */

--------------------

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

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: typedef int conftest_type;
28: conftest_type conftestval = (int)SCM_RIGHTS;
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:43:20: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
char dummy[CMSG_SPACE(sizeof(int))];
^~~~~~~~~~~~~~~~~~~~~~~
/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'
#define CMSG_SPACE(l) (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:43:20: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
/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'
#define CMSG_SPACE(l) (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l))
^
/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'
#define __DARWIN_ALIGN32(p) ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
^
conftest.c:34:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char *argv[])
^
conftest.c:34:26: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char *argv[])
^
4 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25: #include <stdlib.h>
26: #include <stdio.h>
27: #include <string.h>
28: #include <sys/types.h>
29: #include <sys/stat.h>
30: #include <sys/socket.h>
31: #include <sys/un.h>
32: #include <unistd.h>
33:
34: int main(int argc, char *argv[])
35: {
36: int ps[2], sv[2];
37: int ret;
38: ssize_t ss;
39: int s_fd, r_fd;
40: struct msghdr s_msg, r_msg;
41: union {
42: struct cmsghdr hdr;
43: char dummy[CMSG_SPACE(sizeof(int))];
44: } s_cmsg, r_cmsg;
45: struct iovec s_iov, r_iov;
46: char s_buf[1], r_buf[1];
47: struct stat s_statbuf, r_statbuf;
48:
49: ret = pipe(ps);
50: if (ret == -1) { perror("pipe"); exit(EXIT_FAILURE); }
51:
52: s_fd = ps[0];
53:
54: ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, sv);
55: if (ret == -1) { perror("socketpair"); exit(EXIT_FAILURE); }
56:
57: s_msg.msg_name = NULL;
58: s_msg.msg_namelen = 0;
59: s_msg.msg_iov = &s_iov;
60: s_msg.msg_iovlen = 1;
61: s_msg.msg_control = &s_cmsg;
62: s_msg.msg_controllen = CMSG_SPACE(sizeof(int));;
63: s_msg.msg_flags = 0;
64:
65: s_iov.iov_base = &s_buf;
66: s_iov.iov_len = sizeof(s_buf);
67:
68: s_buf[0] = 'a';
69:
70: s_cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int));
71: s_cmsg.hdr.cmsg_level = SOL_SOCKET;
72: s_cmsg.hdr.cmsg_type = SCM_RIGHTS;
73: memcpy(CMSG_DATA(&s_cmsg.hdr), (char *)&s_fd, sizeof(int));
74:
75: ss = sendmsg(sv[0], &s_msg, 0);
76: if (ss == -1) { perror("sendmsg"); exit(EXIT_FAILURE); }
77:
78: r_msg.msg_name = NULL;
79: r_msg.msg_namelen = 0;
80: r_msg.msg_iov = &r_iov;
81: r_msg.msg_iovlen = 1;
82: r_msg.msg_control = &r_cmsg;
83: r_msg.msg_controllen = CMSG_SPACE(sizeof(int));
84: r_msg.msg_flags = 0;
85:
86: r_iov.iov_base = &r_buf;
87: r_iov.iov_len = sizeof(r_buf);
88:
89: r_buf[0] = '0';
90:
91: memset(&r_cmsg, 0xff, CMSG_SPACE(sizeof(int)));
92:
93: ss = recvmsg(sv[1], &r_msg, MSG_PEEK);
94: if (ss == -1) { perror("recvmsg"); exit(EXIT_FAILURE); }
95:
96: if (ss != 1) {
97: fprintf(stderr, "unexpected return value from recvmsg: %ld\n", (long)ss);
98: exit(EXIT_FAILURE);
99: }
100: if (r_buf[0] != 'a') {
101: fprintf(stderr, "unexpected return data from recvmsg: 0x%02x\n", r_buf[0]);
102: exit(EXIT_FAILURE);
103: }
104:
105: if (r_msg.msg_controllen < CMSG_LEN(sizeof(int))) {
106: fprintf(stderr, "unexpected: r_msg.msg_controllen < CMSG_LEN(sizeof(int)) not hold: %ld\n",
107: (long)r_msg.msg_controllen);
108: exit(EXIT_FAILURE);
109: }
110: if (r_cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(int))) {
111: fprintf(stderr, "unexpected: r_cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(int)) not hold: %ld\n",
112: (long)r_cmsg.hdr.cmsg_len);
113: exit(EXIT_FAILURE);
114: }
115: memcpy((char *)&r_fd, CMSG_DATA(&r_cmsg.hdr), sizeof(int));
116:
117: if (r_fd < 0) {
118: fprintf(stderr, "negative r_fd: %d\n", r_fd);
119: exit(EXIT_FAILURE);
120: }
121:
122: if (r_fd == s_fd) {
123: fprintf(stderr, "r_fd and s_fd is same: %d\n", r_fd);
124: exit(EXIT_FAILURE);
125: }
126:
127: ret = fstat(s_fd, &s_statbuf);
128: if (ret == -1) { perror("fstat(s_fd)"); exit(EXIT_FAILURE); }
129:
130: ret = fstat(r_fd, &r_statbuf);
131: if (ret == -1) { perror("fstat(r_fd)"); exit(EXIT_FAILURE); }
132:
133: if (s_statbuf.st_dev != r_statbuf.st_dev ||
134: s_statbuf.st_ino != r_statbuf.st_ino) {
135: fprintf(stderr, "dev/ino doesn't match: s_fd:%ld/%ld r_fd:%ld/%ld\n",
136: (long)s_statbuf.st_dev, (long)s_statbuf.st_ino,
137: (long)r_statbuf.st_dev, (long)r_statbuf.st_ino);
138: exit(EXIT_FAILURE);
139: }
140:
141: return EXIT_SUCCESS;
142: }
/* end */

./conftest
fstat(r_fd): Bad file descriptor
--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))getnameinfo; return !p; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
conftest.c:28:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
2 warnings generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25:
26: /*top*/
27: extern int t(void);
28: int main(int argc, char **argv)
29: {
30: if (argc > 1000000) {
31: int (* volatile tp)(void)=(int (*)(void))&t;
32: printf("%d", (*tp)());
33: }
34:
35: return 0;
36: }
37: int t(void) { void ((*volatile p)()); p = (void ((*)()))getaddrinfo; return !p; }
/* end */

--------------------

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

"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 "
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: warning: unused parameter 'allow_transient' [-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/types.h>
4: #include <netdb.h>
5: #include <string.h>
6: #include <sys/socket.h>
7: #include <netinet/in.h>
8: #include <sys/uio.h>
9: #include <netinet/in_systm.h>
10: #include <netinet/tcp.h>
11: #include <netinet/tcp_fsm.h>
12: #include <netinet/udp.h>
13: #include <arpa/inet.h>
14: #include <net/ethernet.h>
15: #include <sys/un.h>
16: #include <ifaddrs.h>
17: #include <sys/ioctl.h>
18: #include <sys/sockio.h>
19: #include <net/if.h>
20: #include <sys/param.h>
21: #include <sys/ucred.h>
22: #include <net/if_dl.h>
23: #include <arpa/nameser.h>
24: #include <resolv.h>
25: #include <stdlib.h>
26:
27: #ifndef EXIT_SUCCESS
28: #define EXIT_SUCCESS 0
29: #endif
30: #ifndef EXIT_FAILURE
31: #define EXIT_FAILURE 1
32: #endif
33:
34: #ifndef AF_LOCAL
35: #define AF_LOCAL AF_UNIX
36: #endif
37:
38: int
39: main(void)
40: {
41: int passive, gaierr, inet4 = 0, inet6 = 0;
42: struct addrinfo hints, *ai, *aitop;
43: char straddr[INET6_ADDRSTRLEN], strport[16];
44: #ifdef _WIN32
45: WSADATA retdata;
46:
47: WSAStartup(MAKEWORD(2, 0), &retdata);
48: #endif
49:
50: for (passive = 0; passive <= 1; passive++) {
51: memset(&hints, 0, sizeof(hints));
52: hints.ai_family = AF_UNSPEC;
53: hints.ai_protocol = IPPROTO_TCP;
54: hints.ai_flags = passive ? AI_PASSIVE : 0;
55: hints.ai_socktype = SOCK_STREAM;
56: if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
57: (void)gai_strerror(gaierr);
58: goto bad;
59: }
60: for (ai = aitop; ai; ai = ai->ai_next) {
61: if (ai->ai_family == AF_LOCAL) continue;
62: if (ai->ai_addr == NULL)
63: goto bad;
64: #if defined(_AIX)
65: if (ai->ai_family == AF_INET6 && passive) {
66: inet6++;
67: continue;
68: }
69: ai->ai_addr->sa_len = ai->ai_addrlen;
70: ai->ai_addr->sa_family = ai->ai_family;
71: #endif
72: if (ai->ai_addrlen == 0 ||
73: getnameinfo(ai->ai_addr, ai->ai_addrlen,
74: straddr, sizeof(straddr), strport, sizeof(strport),
75: NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
76: goto bad;
77: }
78: if (strcmp(strport, "54321") != 0) {
79: goto bad;
80: }
81: switch (ai->ai_family) {
82: case AF_INET:
83: if (passive) {
84: if (strcmp(straddr, "0.0.0.0") != 0) {
85: goto bad;
86: }
87: } else {
88: if (strcmp(straddr, "127.0.0.1") != 0) {
89: goto bad;
90: }
91: }
92: inet4++;
93: break;
94: case AF_INET6:
95: if (passive) {
96: if (strcmp(straddr, "::") != 0) {
97: goto bad;
98: }
99: } else {
100: if (strcmp(straddr, "::1") != 0) {
101: goto bad;
102: }
103: }
104: inet6++;
105: break;
106: case AF_UNSPEC:
107: goto bad;
108: break;
109: default:
110: /* another family support? */
111: break;
112: }
113: }
114: }
115:
116: if (!(inet4 == 0 || inet4 == 2))
117: goto bad;
118: if (!(inet6 == 0 || inet6 == 2))
119: goto bad;
120:
121: if (aitop)
122: freeaddrinfo(aitop);
123: return EXIT_SUCCESS;
124:
125: bad:
126: if (aitop)
127: freeaddrinfo(aitop);
128: return EXIT_FAILURE;
129: }
/* end */

./conftest
--------------------

"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"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: error: unused parameter 'allow_transient' [-Werror,-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <netinet/in.h>
4: int t(struct in6_addr *addr) {return IN6_IS_ADDR_UNSPECIFIED(addr);}
/* end */

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