Guest User

Untitled

a guest
Oct 17th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.37 KB | None | 0 0
  1. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
  2. checking for bzlib.h... yes
  3. checking for BZ2_bzWriteOpen() in -lbz2... yes
  4. creating Makefile
  5.  
  6. make
  7. compiling bzip2.c
  8. In file included from bzip2.c:5:0:
  9. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h" [-Wcpp]
  10. #warning use "ruby/io.h" instead of "rubyio.h"
  11. ^
  12. bzip2.c: In function ‘bz_find_struct’:
  13. bzip2.c:117:71: error: ‘OpenFile’ undeclared (first use in this function)
  14. if (TYPE(bziv->io) == T_FILE && RFILE(bziv->io)->fptr == (OpenFile *)ptr) {
  15. ^
  16. bzip2.c:117:71: note: each undeclared identifier is reported only once for each function it appears in
  17. bzip2.c:117:81: error: expected expression before ‘)’ token
  18. if (TYPE(bziv->io) == T_FILE && RFILE(bziv->io)->fptr == (OpenFile *)ptr) {
  19. ^
  20. bzip2.c: In function ‘bz_io_data_finalize’:
  21. bzip2.c:297:13: error: unknown type name ‘OpenFile’
  22. OpenFile *file = (OpenFile *)ptr;
  23. ^
  24. bzip2.c:297:31: error: ‘OpenFile’ undeclared (first use in this function)
  25. OpenFile *file = (OpenFile *)ptr;
  26. ^
  27. bzip2.c:297:41: error: expected expression before ‘)’ token
  28. OpenFile *file = (OpenFile *)ptr;
  29. ^
  30. bzip2.c:298:21: error: request for member ‘f’ in something not a structure or union
  31. if (file->f) {
  32. ^
  33. bzip2.c:299:28: error: request for member ‘f’ in something not a structure or union
  34. fclose(file->f);
  35. ^
  36. bzip2.c:300:21: error: request for member ‘f’ in something not a structure or union
  37. file->f = 0;
  38. ^
  39. bzip2.c:302:21: error: request for member ‘f2’ in something not a structure or union
  40. if (file->f2) {
  41. ^
  42. bzip2.c:303:28: error: request for member ‘f2’ in something not a structure or union
  43. fclose(file->f2);
  44. ^
  45. bzip2.c:304:21: error: request for member ‘f2’ in something not a structure or union
  46. file->f2 = 0;
  47. ^
  48. bzip2.c: In function ‘bz_writer_init’:
  49. bzip2.c:473:9: error: unknown type name ‘OpenFile’
  50. OpenFile *fptr;
  51. ^
  52. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
  53. from bzip2.c:5:
  54. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:120:53: warning: assignment from incompatible pointer type [enabled by default]
  55. #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
  56. ^
  57. bzip2.c:483:13: note: in expansion of macro ‘GetOpenFile’
  58. GetOpenFile(a, fptr);
  59. ^
  60. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby.h:33:0,
  61. from bzip2.c:1:
  62. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:1107:30: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
  63. #define RFILE(obj) (R_CAST(RFile)(obj))
  64. ^
  65. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:1093:30: note: in definition of macro ‘R_CAST’
  66. #define R_CAST(st) (struct st*)
  67. ^
  68. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:120:55: note: in expansion of macro ‘RFILE’
  69. #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
  70. ^
  71. bzip2.c:483:13: note: in expansion of macro ‘GetOpenFile’
  72. GetOpenFile(a, fptr);
  73. ^
  74. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
  75. from bzip2.c:5:
  76. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:179:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
  77. void rb_io_check_closed(rb_io_t*);
  78. ^
  79. bzip2.c:484:13: warning: passing argument 1 of ‘rb_io_check_writable’ from incompatible pointer type [enabled by default]
  80. rb_io_check_writable(fptr);
  81. ^
  82. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
  83. from bzip2.c:5:
  84. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:172:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
  85. void rb_io_check_writable(rb_io_t*);
  86. ^
  87. bzip2.c: In function ‘bz_reader_init’:
  88. bzip2.c:698:13: error: unknown type name ‘OpenFile’
  89. OpenFile *fptr;
  90. ^
  91. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
  92. from bzip2.c:5:
  93. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:120:53: warning: assignment from incompatible pointer type [enabled by default]
  94. #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
  95. ^
  96. bzip2.c:703:13: note: in expansion of macro ‘GetOpenFile’
  97. GetOpenFile(a, fptr);
  98. ^
  99. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby.h:33:0,
  100. from bzip2.c:1:
  101. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:1107:30: warning: passing argument 1 of ‘rb_io_check_closed’ from incompatible pointer type [enabled by default]
  102. #define RFILE(obj) (R_CAST(RFile)(obj))
  103. ^
  104. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:1093:30: note: in definition of macro ‘R_CAST’
  105. #define R_CAST(st) (struct st*)
  106. ^
  107. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:120:55: note: in expansion of macro ‘RFILE’
  108. #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
  109. ^
  110. bzip2.c:703:13: note: in expansion of macro ‘GetOpenFile’
  111. GetOpenFile(a, fptr);
  112. ^
  113. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
  114. from bzip2.c:5:
  115. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:179:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
  116. void rb_io_check_closed(rb_io_t*);
  117. ^
  118. bzip2.c:704:13: warning: passing argument 1 of ‘rb_io_check_readable’ from incompatible pointer type [enabled by default]
  119. rb_io_check_readable(fptr);
  120. ^
  121. In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
  122. from bzip2.c:5:
  123. /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/io.h:173:6: note: expected ‘struct rb_io_t *’ but argument is of type ‘int *’
  124. void rb_io_check_readable(rb_io_t*);
  125. ^
  126. bzip2.c: In function ‘bz_next_available’:
  127. bzip2.c:779:18: warning: operation on ‘bzf->buf’ may be undefined [-Wsequence-point]
  128. bzf->buf = REALLOC_N(bzf->buf, char, bzf->buflen+BZ_RB_BLOCKSIZE+1);
  129. ^
  130. bzip2.c: In function ‘bz_reader_ungetc’:
  131. bzip2.c:981:18: warning: operation on ‘bzf->buf’ may be undefined [-Wsequence-point]
  132. bzf->buf = REALLOC_N(bzf->buf, char, bzf->buflen + 2);
  133. ^
  134. bzip2.c: In function ‘bz_reader_ungets’:
  135. bzip2.c:1025:18: warning: operation on ‘bzf->buf’ may be undefined [-Wsequence-point]
  136. bzf->buf = REALLOC_N(bzf->buf, char, bzf->buflen + RSTRING_LEN(a) + 1);
  137. ^
  138. bzip2.c: In function ‘Init_bzip2_ext’:
  139. bzip2.c:1726:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  140. VALUE bz_mBzip2Singleton = rb_singleton_class(bz_mBzip2);
  141. ^
  142. make: *** [bzip2.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment