Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
- checking for bzlib.h... yes
- checking for BZ2_bzWriteOpen() in -lbz2... yes
- creating Makefile
- make
- compiling bzip2.c
- In file included from bzip2.c:5:0:
- /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]
- #warning use "ruby/io.h" instead of "rubyio.h"
- ^
- bzip2.c: In function ‘bz_find_struct’:
- bzip2.c:117:71: error: ‘OpenFile’ undeclared (first use in this function)
- if (TYPE(bziv->io) == T_FILE && RFILE(bziv->io)->fptr == (OpenFile *)ptr) {
- ^
- bzip2.c:117:71: note: each undeclared identifier is reported only once for each function it appears in
- bzip2.c:117:81: error: expected expression before ‘)’ token
- if (TYPE(bziv->io) == T_FILE && RFILE(bziv->io)->fptr == (OpenFile *)ptr) {
- ^
- bzip2.c: In function ‘bz_io_data_finalize’:
- bzip2.c:297:13: error: unknown type name ‘OpenFile’
- OpenFile *file = (OpenFile *)ptr;
- ^
- bzip2.c:297:31: error: ‘OpenFile’ undeclared (first use in this function)
- OpenFile *file = (OpenFile *)ptr;
- ^
- bzip2.c:297:41: error: expected expression before ‘)’ token
- OpenFile *file = (OpenFile *)ptr;
- ^
- bzip2.c:298:21: error: request for member ‘f’ in something not a structure or union
- if (file->f) {
- ^
- bzip2.c:299:28: error: request for member ‘f’ in something not a structure or union
- fclose(file->f);
- ^
- bzip2.c:300:21: error: request for member ‘f’ in something not a structure or union
- file->f = 0;
- ^
- bzip2.c:302:21: error: request for member ‘f2’ in something not a structure or union
- if (file->f2) {
- ^
- bzip2.c:303:28: error: request for member ‘f2’ in something not a structure or union
- fclose(file->f2);
- ^
- bzip2.c:304:21: error: request for member ‘f2’ in something not a structure or union
- file->f2 = 0;
- ^
- bzip2.c: In function ‘bz_writer_init’:
- bzip2.c:473:9: error: unknown type name ‘OpenFile’
- OpenFile *fptr;
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
- from bzip2.c:5:
- /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]
- #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
- ^
- bzip2.c:483:13: note: in expansion of macro ‘GetOpenFile’
- GetOpenFile(a, fptr);
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby.h:33:0,
- from bzip2.c:1:
- /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]
- #define RFILE(obj) (R_CAST(RFile)(obj))
- ^
- /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’
- #define R_CAST(st) (struct st*)
- ^
- /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’
- #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
- ^
- bzip2.c:483:13: note: in expansion of macro ‘GetOpenFile’
- GetOpenFile(a, fptr);
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
- from bzip2.c:5:
- /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 *’
- void rb_io_check_closed(rb_io_t*);
- ^
- bzip2.c:484:13: warning: passing argument 1 of ‘rb_io_check_writable’ from incompatible pointer type [enabled by default]
- rb_io_check_writable(fptr);
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
- from bzip2.c:5:
- /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 *’
- void rb_io_check_writable(rb_io_t*);
- ^
- bzip2.c: In function ‘bz_reader_init’:
- bzip2.c:698:13: error: unknown type name ‘OpenFile’
- OpenFile *fptr;
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
- from bzip2.c:5:
- /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]
- #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
- ^
- bzip2.c:703:13: note: in expansion of macro ‘GetOpenFile’
- GetOpenFile(a, fptr);
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby.h:33:0,
- from bzip2.c:1:
- /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]
- #define RFILE(obj) (R_CAST(RFile)(obj))
- ^
- /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’
- #define R_CAST(st) (struct st*)
- ^
- /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’
- #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
- ^
- bzip2.c:703:13: note: in expansion of macro ‘GetOpenFile’
- GetOpenFile(a, fptr);
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
- from bzip2.c:5:
- /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 *’
- void rb_io_check_closed(rb_io_t*);
- ^
- bzip2.c:704:13: warning: passing argument 1 of ‘rb_io_check_readable’ from incompatible pointer type [enabled by default]
- rb_io_check_readable(fptr);
- ^
- In file included from /home/misutowolf/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/backward/rubyio.h:6:0,
- from bzip2.c:5:
- /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 *’
- void rb_io_check_readable(rb_io_t*);
- ^
- bzip2.c: In function ‘bz_next_available’:
- bzip2.c:779:18: warning: operation on ‘bzf->buf’ may be undefined [-Wsequence-point]
- bzf->buf = REALLOC_N(bzf->buf, char, bzf->buflen+BZ_RB_BLOCKSIZE+1);
- ^
- bzip2.c: In function ‘bz_reader_ungetc’:
- bzip2.c:981:18: warning: operation on ‘bzf->buf’ may be undefined [-Wsequence-point]
- bzf->buf = REALLOC_N(bzf->buf, char, bzf->buflen + 2);
- ^
- bzip2.c: In function ‘bz_reader_ungets’:
- bzip2.c:1025:18: warning: operation on ‘bzf->buf’ may be undefined [-Wsequence-point]
- bzf->buf = REALLOC_N(bzf->buf, char, bzf->buflen + RSTRING_LEN(a) + 1);
- ^
- bzip2.c: In function ‘Init_bzip2_ext’:
- bzip2.c:1726:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
- VALUE bz_mBzip2Singleton = rb_singleton_class(bz_mBzip2);
- ^
- make: *** [bzip2.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment