blackwinter / unicode

Unicode normalization library. (Mirror of Yoshida-san's code base to maintain the RubyGem.)
http://www.yoshidam.net/Ruby.html#unicode
79 stars 13 forks source link

Ruby 2.0.0-rc1 Compilation Failure #4

Closed conradwt closed 11 years ago

conradwt commented 11 years ago

I'm seeing the following compilation failure when attempting to install the unicode gem on Mac OS 10.8.2 with Xcode 4.5.2:


$ gem install unicode
Building native extensions.  This could take a while...
ERROR:  Error installing unicode:
    ERROR: Failed to build gem native extension.

    /Users/conradwt/.rbenv/versions/2.0.0-rc1/bin/ruby extconf.rb
creating Makefile

make
compiling unicode.c
unicode.c:646:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:646:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:647:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:647:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:688:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:688:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:689:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:689:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:725:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:725:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:751:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:751:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:777:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:777:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:803:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:803:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:830:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:830:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:860:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:860:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:890:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:890:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:919:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:919:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:945:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:945:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:976:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:976:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1037:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1037:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1055:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1055:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1079:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1079:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1225:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1225:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
36 warnings generated.
compiling ustring.c
compiling wstring.c
linking shared-object unicode.bundle

make install
/opt/local/bin/ginstall -c -m 0755 unicode.bundle /Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3/.
/opt/local/bin/ginstall: ‘unicode.bundle’ and ‘/Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3/./unicode.bundle’ are the same file
make: *** [install-so] Error 1

Gem files will remain installed in /Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3 for inspection.
Results logged to /Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3/./gem_make.out
blackwinter commented 11 years ago

thanks for reporting this. aside from all the warnings, it's the same problem as discussed in rubygems/rubygems#411.

since this is supposed to be a mirror only, i don't know what the best strategy might be. but we already did something similar for the windows gem (see a4a9ac3cfbd45f8841935a4fe9c7f1670e5883b0). please stay tuned.

blackwinter commented 11 years ago

i've just pushed version 0.4.3.1.pre1. please let me know if that works for you.

conradwt commented 11 years ago

@blackwinter I'm seeing the following message during the installation process:

unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/unicode/unicode_native.bundle, skipping

However, the Rails 3 application which depends on the gem appears to be working as expected.

blackwinter commented 11 years ago

maybe this SO question has some hints for you.

EDIT: just to be clear, this warning only affects documentation; the gem should work fine.

cpence commented 11 years ago

Actually, this doesn't quite close this issue. For some reason:

Any idea why it would do this? If I go in and manually run

cd ~/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/unicode-0.4.4
cd lib
mv unicode unicode_native.bundle
mkdir unicode
mv unicode_native.bundle unicode

then everything works fine.

blackwinter commented 11 years ago

i'll reopen and see if Ruby-Bug #7698 is going to settle on a solution now.

mhenrixon commented 11 years ago

Looks like gem update --system to rubygems 2.0.2 solves all problems or well these types of installation problems at least.

cpence commented 11 years ago

I can confirm that, you're good to close here; it was a RubyGems bug.

blackwinter commented 11 years ago

well, that was to be expected, i just wasn't sure if the fix made it into the latest release. so i'll close the ticket, leaving 70ce3a2 in place for now.