Ruby 1.8.4 on Mac OS X 10.4 Intel
From:
Dae San Hwang <daesan@...>
Date:
2006-02-12 14:14:30 UTC
List:
ruby-core #7344
Hi, all. This is my first time posting to this mailing list. I tried compiling Ruby 1.8.4 on Mac OS X 10.4 Intel. While it compiles and works mostly, the compiler issued many warnings. Most warnings were about "differ in signedness". (Warning messages are appended at the end of this message.) Also, it seems that Ruby's socket library doesn't know how to resolve Bonjour-based domain name. Bonjour is Apple's branding for Zero-Conf networking. When I use Socket::getaddrinfo to resolve Bonjour-based domain name such as "arabica.local", it triggers following error: "SocketError: getnameinfo: Non-recoverable failure in name resolution" Any comments will be appreciated! Cheers, daesan [Ruby compilation warning messages] dln.c:1478: warning: 'NSIsSymbolNameDefined' is deprecated (declared at /usr/include/mach-o/dyld.h:150) dln.c:1481: warning: 'NSLookupAndBindSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:158) re.c: In function 'rb_memsearch': re.c:121: warning: pointer targets in passing argument 1 of 'rb_memcicmp' differ in signedness re.c:121: warning: pointer targets in passing argument 2 of 'rb_memcicmp' differ in signedness re.c:129: warning: pointer targets in passing argument 1 of 'rb_memcicmp' differ in signedness re.c:129: warning: pointer targets in passing argument 2 of 'rb_memcicmp' differ in signedness gcc -g -O2 -pipe -fno-common -DRUBY_EXPORT -I. -I. -c regex.c regex.c: In function 'calculate_must_string': regex.c:1014: warning: pointer targets in initialization differ in signedness regex.c:1015: warning: pointer targets in initialization differ in signedness regex.c:1029: warning: pointer targets in assignment differ in signedness regex.c: In function 'ruby_re_search': regex.c:3222: warning: pointer targets in passing argument 1 of 'slow_search' differ in signedness regex.c:3222: warning: pointer targets in passing argument 3 of 'slow_search' differ in signedness regex.c:3222: warning: pointer targets in passing argument 5 of 'slow_search' differ in signedness regex.c:2689: warning: pointer targets in passing argument 5 of 'slow_match' differ in signedness regex.c:3227: warning: pointer targets in passing argument 1 of 'bm_search' differ in signedness regex.c:3227: warning: pointer targets in passing argument 3 of 'bm_search' differ in signedness gcc -g -O2 -pipe -fno-common -DRUBY_EXPORT -I. -I. -c string.c string.c: In function 'rb_str_index_m': string.c:1133: warning: pointer targets in initialization differ in signedness string.c: In function 'rb_str_rindex_m': string.c:1255: warning: pointer targets in initialization differ in signedness string.c:1256: warning: pointer targets in initialization differ in signedness gcc -fno-common -g -O2 -pipe -fno-common -I. -I../.. -I../../. - I../.././ext/bigdecimal -c bigdecimal.c bigdecimal.c: In function 'BigDecimal_load': bigdecimal.c:201: warning: pointer targets in assignment differ in signedness bigdecimal.c:210: warning: pointer targets in passing argument 2 of 'VpNewRbClass' differ in signedness gcc -fno-common -g -O2 -pipe -fno-common -I. -I../.. -I../../. - I../.././ext/digest -c digest.c digest.c: In function 'rb_digest_base_s_digest': digest.c:100: warning: pointer targets in passing argument 2 of 'algo- >update_func' differ in signedness digest.c:107: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness digest.c: In function 'rb_digest_base_s_hexdigest': digest.c:129: warning: pointer targets in passing argument 2 of 'algo- >update_func' differ in signedness digest.c:136: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness digest.c: In function 'rb_digest_base_update': digest.c:174: warning: pointer targets in passing argument 2 of 'algo- >update_func' differ in signedness digest.c: In function 'rb_digest_base_digest': digest.c:217: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness digest.c: In function 'rb_digest_base_hexdigest': digest.c:248: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness gcc -fno-common -g -O2 -pipe -fno-common -DHAVE_CONFIG_H -I../../.././ ext/digest/sha2/.. -I. -I../../.. -I../../../. -I../../.././ext/ digest/sha2 -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H - DHAVE_TYPE_UINT64_T -c sha2hl.c sha2hl.c: In function 'rb_Digest_SHA256_End': sha2hl.c:108: warning: pointer targets in assignment differ in signedness sha2hl.c:121: warning: pointer targets in return differ in signedness sha2hl.c: In function 'rb_Digest_SHA384_End': sha2hl.c:168: warning: pointer targets in assignment differ in signedness sha2hl.c:181: warning: pointer targets in return differ in signedness sha2hl.c: In function 'rb_Digest_SHA512_End': sha2hl.c:228: warning: pointer targets in assignment differ in signedness sha2hl.c:241: warning: pointer targets in return differ in signedness compiling nkf gcc -fno-common -g -O2 -pipe -fno-common -I. -I../.. -I../../. - I../.././ext/nkf -c nkf.c nkf.c: In function 'rb_nkf_putchar': nkf.c:66: warning: pointer targets in assignment differ in signedness nkf.c: In function 'rb_nkf_kconv': nkf.c:92: warning: pointer targets in passing argument 1 of 'options' differ in signedness nkf.c:98: warning: pointer targets in assignment differ in signedness nkf.c:104: warning: pointer targets in assignment differ in signedness nkf.c: In function 'rb_nkf_guess1': nkf.c:137: warning: pointer targets in assignment differ in signedness nkf.c: In function 'rb_nkf_guess2': nkf.c:232: warning: pointer targets in assignment differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_asn1.c ossl_asn1.c: In function 'asn1time_to_time': ossl_asn1.c:37: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness ossl_asn1.c:48: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness ossl_asn1.c: In function 'asn1str_to_str': ossl_asn1.c:83: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness ossl_asn1.c: In function 'obj_to_asn1bstr': ossl_asn1.c:217: warning: pointer targets in passing argument 2 of 'ASN1_BIT_STRING_set' differ in signedness ossl_asn1.c: In function 'decode_bstr': ossl_asn1.c:359: warning: pointer targets in passing argument 1 of 'ossl_buf2str' differ in signedness ossl_asn1.c: In function 'ossl_asn1data_to_der': ossl_asn1.c:705: warning: pointer targets in assignment differ in signedness ossl_asn1.c: In function 'ossl_asn1_decode0': ossl_asn1.c:762: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness ossl_asn1.c: In function 'ossl_asn1_traverse': ossl_asn1.c:827: warning: pointer targets in assignment differ in signedness ossl_asn1.c: In function 'ossl_asn1_decode': ossl_asn1.c:843: warning: pointer targets in assignment differ in signedness ossl_asn1.c: In function 'ossl_asn1_decode_all': ossl_asn1.c:860: warning: pointer targets in assignment differ in signedness ossl_asn1.c: In function 'ossl_asn1prim_to_der': ossl_asn1.c:957: warning: pointer targets in passing argument 1 of 'ossl_buf2str' differ in signedness ossl_asn1.c: In function 'ossl_asn1cons_to_der': ossl_asn1.c:979: warning: pointer targets in assignment differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_bn.c ossl_bn.c: In function 'ossl_bn_initialize': ossl_bn.c:127: warning: pointer targets in passing argument 1 of 'BN_mpi2bn' differ in signedness ossl_bn.c:132: warning: pointer targets in passing argument 1 of 'BN_bin2bn' differ in signedness ossl_bn.c: In function 'ossl_bn_to_s': ossl_bn.c:168: warning: pointer targets in passing argument 2 of 'BN_bn2mpi' differ in signedness ossl_bn.c:174: warning: pointer targets in passing argument 2 of 'BN_bn2bin' differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_cipher.c ossl_cipher.c: In function 'ossl_cipher_init': ossl_cipher.c:161: warning: pointer targets in passing argument 4 of 'EVP_BytesToKey' differ in signedness ossl_cipher.c: In function 'ossl_cipher_pkcs5_keyivgen': ossl_cipher.c:202: warning: pointer targets in assignment differ in signedness ossl_cipher.c:208: warning: pointer targets in passing argument 4 of 'EVP_BytesToKey' differ in signedness ossl_cipher.c: In function 'ossl_cipher_update': ossl_cipher.c:231: warning: pointer targets in passing argument 2 of 'EVP_CipherUpdate' differ in signedness ossl_cipher.c:231: warning: pointer targets in passing argument 4 of 'EVP_CipherUpdate' differ in signedness ossl_cipher.c: In function 'ossl_cipher_final': ossl_cipher.c:259: warning: pointer targets in passing argument 2 of 'EVP_CipherFinal_ex' differ in signedness ossl_cipher.c: In function 'ossl_cipher_set_key': ossl_cipher.c:289: warning: pointer targets in passing argument 4 of 'EVP_CipherInit_ex' differ in signedness ossl_cipher.c: In function 'ossl_cipher_set_iv': ossl_cipher.c:306: warning: pointer targets in passing argument 5 of 'EVP_CipherInit_ex' differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_hmac.c ossl_hmac.c: In function 'ossl_hmac_update': ossl_hmac.c:97: warning: pointer targets in passing argument 2 of 'HMAC_Update' differ in signedness ossl_hmac.c: In function 'hmac_final': ossl_hmac.c:115: warning: pointer targets in passing argument 2 of 'HMAC_Final' differ in signedness ossl_hmac.c:115: warning: pointer targets in passing argument 3 of 'HMAC_Final' differ in signedness ossl_hmac.c: In function 'ossl_hmac_s_digest': ossl_hmac.c:163: warning: pointer targets in passing argument 4 of 'HMAC' differ in signedness ossl_hmac.c:163: warning: pointer targets in passing argument 7 of 'HMAC' differ in signedness ossl_hmac.c:163: warning: pointer targets in assignment differ in signedness ossl_hmac.c: In function 'ossl_hmac_s_hexdigest': ossl_hmac.c:179: warning: pointer targets in passing argument 4 of 'HMAC' differ in signedness ossl_hmac.c:179: warning: pointer targets in passing argument 7 of 'HMAC' differ in signedness ossl_hmac.c:179: warning: pointer targets in assignment differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_pkey_dsa.c ossl_pkey_dsa.c: In function 'ossl_dsa_to_der': ossl_pkey_dsa.c:244: warning: pointer targets in assignment differ in signedness ossl_pkey_dsa.c: In function 'ossl_dsa_sign': ossl_pkey_dsa.c:338: warning: pointer targets in passing argument 2 of 'DSA_sign' differ in signedness ossl_pkey_dsa.c:338: warning: pointer targets in passing argument 4 of 'DSA_sign' differ in signedness ossl_pkey_dsa.c:338: warning: pointer targets in passing argument 5 of 'DSA_sign' differ in signedness ossl_pkey_dsa.c: In function 'ossl_dsa_verify': ossl_pkey_dsa.c:358: warning: pointer targets in passing argument 2 of 'DSA_verify' differ in signedness ossl_pkey_dsa.c:358: warning: pointer targets in passing argument 4 of 'DSA_verify' differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_pkey_rsa.c ossl_pkey_rsa.c: In function 'ossl_rsa_to_der': ossl_pkey_rsa.c:239: warning: pointer targets in assignment differ in signedness ossl_pkey_rsa.c: In function 'ossl_rsa_public_encrypt': ossl_pkey_rsa.c:263: warning: pointer targets in passing argument 2 of 'RSA_public_encrypt' differ in signedness ossl_pkey_rsa.c:263: warning: pointer targets in passing argument 3 of 'RSA_public_encrypt' differ in signedness ossl_pkey_rsa.c: In function 'ossl_rsa_public_decrypt': ossl_pkey_rsa.c:285: warning: pointer targets in passing argument 2 of 'RSA_public_decrypt' differ in signedness ossl_pkey_rsa.c:285: warning: pointer targets in passing argument 3 of 'RSA_public_decrypt' differ in signedness ossl_pkey_rsa.c: In function 'ossl_rsa_private_encrypt': ossl_pkey_rsa.c:310: warning: pointer targets in passing argument 2 of 'RSA_private_encrypt' differ in signedness ossl_pkey_rsa.c:310: warning: pointer targets in passing argument 3 of 'RSA_private_encrypt' differ in signedness ossl_pkey_rsa.c: In function 'ossl_rsa_private_decrypt': ossl_pkey_rsa.c:335: warning: pointer targets in passing argument 2 of 'RSA_private_decrypt' differ in signedness ossl_pkey_rsa.c:335: warning: pointer targets in passing argument 3 of 'RSA_private_decrypt' differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_x509attr.c ossl_x509attr.c: In function 'ossl_x509attr_initialize': ossl_x509attr.c:98: warning: pointer targets in assignment differ in signedness ossl_x509attr.c: In function 'ossl_x509attr_get_value': ossl_x509attr.c:195: warning: pointer targets in assignment differ in signedness ossl_x509attr.c:203: warning: pointer targets in assignment differ in signedness ossl_x509attr.c: In function 'ossl_x509attr_to_der': ossl_x509attr.c:225: warning: pointer targets in assignment differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_x509name.c ossl_x509name.c: In function 'ossl_x509name_initialize': ossl_x509name.c:134: warning: pointer targets in assignment differ in signedness ossl_x509name.c: In function 'ossl_x509name_add_entry': ossl_x509name.c:156: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness ossl_x509name.c: In function 'ossl_x509name_to_a': ossl_x509name.c:228: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness ossl_x509name.c: In function 'ossl_x509name_to_der': ossl_x509name.c:294: warning: pointer targets in assignment differ in signedness gcc -fno-common -g -O2 -pipe -fno-common -I. -I../.. -I../../. - I../.././ext/zlib -DHAVE_ZLIB_H -DOS_CODE=OS_UNIX -c zlib.c zlib.c: In function 'do_checksum': zlib.c:285: warning: pointer targets in passing argument 2 of 'func' differ in signedness zlib.c: In function 'zstream_expand_buffer': zlib.c:440: warning: pointer targets in assignment differ in signedness zlib.c:459: warning: pointer targets in assignment differ in signedness zlib.c: In function 'zstream_expand_buffer_into': zlib.c:472: warning: pointer targets in assignment differ in signedness zlib.c:478: warning: pointer targets in assignment differ in signedness zlib.c: In function 'zstream_append_buffer': zlib.c:493: warning: pointer targets in assignment differ in signedness zlib.c:513: warning: pointer targets in assignment differ in signedness zlib.c: In function 'zstream_shift_buffer': zlib.c:557: warning: pointer targets in assignment differ in signedness zlib.c: In function 'zstream_run': zlib.c:712: warning: pointer targets in assignment differ in signedness zlib.c:716: warning: pointer targets in passing argument 2 of 'zstream_append_input' differ in signedness zlib.c:717: warning: pointer targets in assignment differ in signedness zlib.c:748: warning: pointer targets in passing argument 2 of 'zstream_append_input' differ in signedness zlib.c:761: warning: pointer targets in passing argument 2 of 'zstream_append_input' differ in signedness zlib.c: In function 'zstream_sync': zlib.c:776: warning: pointer targets in assignment differ in signedness zlib.c:782: warning: pointer targets in passing argument 2 of 'zstream_append_input' differ in signedness zlib.c:787: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness zlib.c:798: warning: pointer targets in passing argument 2 of 'zstream_append_input' differ in signedness zlib.c:802: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness zlib.c: In function 'rb_zstream_finish': zlib.c:954: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'deflate_run': zlib.c:1187: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'do_deflate': zlib.c:1247: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c:1252: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'rb_deflate_flush': zlib.c:1326: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'rb_deflate_set_dictionary': zlib.c:1389: warning: pointer targets in passing argument 2 of 'deflateSetDictionary' differ in signedness zlib.c: In function 'inflate_run': zlib.c:1454: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c:1455: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'do_inflate': zlib.c:1506: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c:1511: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'rb_inflate_sync': zlib.c:1607: warning: pointer targets in passing argument 2 of 'zstream_sync' differ in signedness zlib.c: In function 'rb_inflate_set_dictionary': zlib.c:1651: warning: pointer targets in passing argument 2 of 'inflateSetDictionary' differ in signedness zlib.c: In function 'gzfile_make_header': zlib.c:1941: warning: pointer targets in passing argument 2 of 'zstream_append_buffer' differ in signedness zlib.c: In function 'gzfile_make_footer': zlib.c:1963: warning: pointer targets in passing argument 2 of 'zstream_append_buffer' differ in signedness zlib.c: In function 'gzfile_read_header': zlib.c:1979: warning: pointer targets in assignment differ in signedness zlib.c:2017: warning: pointer targets in passing argument 1 of 'gzfile_get16' differ in signedness zlib.c: In function 'gzfile_check_footer': zlib.c:2055: warning: pointer targets in passing argument 1 of 'gzfile_get32' differ in signedness zlib.c:2056: warning: pointer targets in passing argument 1 of 'gzfile_get32' differ in signedness zlib.c: In function 'gzfile_read_more': zlib.c:2103: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'gzfile_calc_crc': zlib.c:2120: warning: pointer targets in passing argument 2 of 'crc32' differ in signedness zlib.c: In function 'gzfile_writer_end': zlib.c:2207: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'rb_gzwriter_flush': zlib.c:2751: warning: pointer targets in passing argument 2 of 'zstream_run' differ in signedness zlib.c: In function 'rb_gzwriter_write': zlib.c:2773: warning: pointer targets in passing argument 2 of 'gzfile_write' differ in signedness zlib.c: In function 'rb_gzwriter_putc': zlib.c:2787: warning: pointer targets in passing argument 2 of 'gzfile_write' differ in signedness