Advertisement
Guest User

Untitled

a guest
Feb 10th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.03 KB | None | 0 0
  1. $ sudo gem install libarchive
  2.  
  3. ERROR:  Error installing libarchive:
  4.     ERROR: Failed to build gem native extension.
  5.  
  6.         /usr/bin/ruby1.9.1 extconf.rb
  7. checking for gcc... gcc
  8. checking for C compiler default output file name... a.out
  9. checking whether the C compiler works... yes
  10. checking whether we are cross compiling... no
  11. checking for suffix of executables...
  12. checking for suffix of object files... o
  13. checking whether we are using the GNU C compiler... yes
  14. checking whether gcc accepts -g... yes
  15. checking for gcc option to accept ISO C89... none needed
  16. checking for special C compiler options needed for large files... no
  17. checking for _FILE_OFFSET_BITS value needed for large files... no
  18. checking for a BSD-compatible install... /usr/bin/install -c
  19. configure: creating ./config.status
  20. config.status: creating config.h
  21. checking for config.h... yes
  22. checking for archive.h... yes
  23. checking for archive_entry.h... yes
  24. checking for zlib.h... yes
  25. checking for bzlib.h... yes
  26. creating Makefile
  27.  
  28. make
  29. compiling archive_write_open_rb_str.c
  30. compiling archive_read_support_compression.c
  31. archive_read_support_compression.c:8:3: warning: ‘archive_read_support_compression_none’ is deprecated (declared at /usr/include/archive.h:323) [-Wdeprecated-declarations]
  32.    { ARCHIVE_COMPRESSION_NONE,     archive_read_support_compression_none     },
  33.    ^
  34. archive_read_support_compression.c:9:3: warning: ‘archive_read_support_compression_gzip’ is deprecated (declared at /usr/include/archive.h:317) [-Wdeprecated-declarations]
  35.    { ARCHIVE_COMPRESSION_GZIP,     archive_read_support_compression_gzip     },
  36.    ^
  37. archive_read_support_compression.c:10:3: warning: ‘archive_read_support_compression_bzip2’ is deprecated (declared at /usr/include/archive.h:313) [-Wdeprecated-declarations]
  38.    { ARCHIVE_COMPRESSION_BZIP2,    archive_read_support_compression_bzip2    },
  39.    ^
  40. archive_read_support_compression.c:11:3: warning: ‘archive_read_support_compression_compress’ is deprecated (declared at /usr/include/archive.h:315) [-Wdeprecated-declarations]
  41.    { ARCHIVE_COMPRESSION_COMPRESS, archive_read_support_compression_compress },
  42.    ^
  43. compiling libarchive.c
  44. In file included from libarchive_internal.h:31:0,
  45.                  from libarchive.c:1:
  46. /usr/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
  47.  #warning rubysig.h is obsolete
  48.   ^
  49. libarchive.c: In function ‘rb_libarchive_s_version_number’:
  50. libarchive.c:11:3: warning: implicit declaration of function ‘archive_version_stamp’ [-Wimplicit-function-declaration]
  51.    return INT2NUM(archive_version_stamp());
  52.    ^
  53. compiling libarchive_writer.c
  54. In file included from libarchive_internal.h:31:0,
  55.                  from libarchive_writer.c:1:
  56. /usr/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
  57.  #warning rubysig.h is obsolete
  58.   ^
  59. libarchive_writer.c: In function ‘rb_libarchive_writer_close0’:
  60. libarchive_writer.c:10:3: warning: ‘archive_write_finish’ is deprecated (declared at /usr/include/archive.h:721) [-Wdeprecated-declarations]
  61.    archive_write_finish(p->ar);
  62.    ^
  63. libarchive_writer.c: In function ‘rb_libarchive_writer_s_open0’:
  64. libarchive_writer.c:35:5: warning: ‘archive_write_set_compression_program’ is deprecated (declared at /usr/include/archive.h:630) [-Wdeprecated-declarations]
  65.      r = archive_write_set_compression_program(p->ar,  cmd);
  66.      ^
  67. compiling libarchive_entry.c
  68. In file included from libarchive_internal.h:31:0,
  69.                  from libarchive_entry.c:1:
  70. /usr/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
  71.  #warning rubysig.h is obsolete
  72.   ^
  73. libarchive_entry.c: In function ‘rb_libarchive_entry_fflags’:
  74. libarchive_entry.c:209:3: warning: pointer targets in passing argument 2 of ‘archive_entry_fflags’ differ in signedness [-Wpointer-sign]
  75.    archive_entry_fflags(p->ae, &set, &clear);
  76.    ^
  77. In file included from libarchive_internal.h:28:0,
  78.                  from libarchive_entry.c:1:
  79. /usr/include/archive_entry.h:205:18: note: expected ‘long unsigned int *’ but argument is of type ‘long int *
  80.  __LA_DECL void   archive_entry_fflags(struct archive_entry *,
  81.                   ^
  82. libarchive_entry.c:209:3: warning: pointer targets in passing argument 3 of ‘archive_entry_fflags’ differ in signedness [-Wpointer-sign]
  83.    archive_entry_fflags(p->ae, &set, &clear);
  84.    ^
  85. In file included from libarchive_internal.h:28:0,
  86.                  from libarchive_entry.c:1:
  87. /usr/include/archive_entry.h:205:18: note: expected ‘long unsigned int *’ but argument is of type ‘long int *
  88.  __LA_DECL void   archive_entry_fflags(struct archive_entry *,
  89.                   ^
  90. libarchive_entry.c: In function ‘rb_libarchive_entry_copy_stat’:
  91. libarchive_entry.c:832:5: warning: spurious trailing ‘%in format [-Wformat=]
  92.      rb_raise(rb_eArchiveError, "Copy stat failed: %", strerror(errno));
  93.      ^
  94. libarchive_entry.c:832:5: warning: too many arguments for format [-Wformat-extra-args]
  95. libarchive_entry.c: In function ‘rb_libarchive_entry_copy_lstat’:
  96. libarchive_entry.c:850:5: warning: spurious trailing ‘%in format [-Wformat=]
  97.      rb_raise(rb_eArchiveError, "Copy stat failed: %", strerror(errno));
  98.      ^
  99. libarchive_entry.c:850:5: warning: too many arguments for format [-Wformat-extra-args]
  100. compiling archive_write_set_compression.c
  101. archive_write_set_compression.c:8:3: warning: ‘archive_write_set_compression_none’ is deprecated (declared at /usr/include/archive.h:628) [-Wdeprecated-declarations]
  102.    { ARCHIVE_COMPRESSION_NONE,     archive_write_set_compression_none     },
  103.    ^
  104. archive_write_set_compression.c:9:3: warning: ‘archive_write_set_compression_gzip’ is deprecated (declared at /usr/include/archive.h:622) [-Wdeprecated-declarations]
  105.    { ARCHIVE_COMPRESSION_GZIP,     archive_write_set_compression_gzip     },
  106.    ^
  107. archive_write_set_compression.c:10:3: warning: ‘archive_write_set_compression_bzip2’ is deprecated (declared at /usr/include/archive.h:618) [-Wdeprecated-declarations]
  108.    { ARCHIVE_COMPRESSION_BZIP2,    archive_write_set_compression_bzip2    },
  109.    ^
  110. archive_write_set_compression.c:12:3: warning: ‘archive_write_set_compression_compress’ is deprecated (declared at /usr/include/archive.h:620) [-Wdeprecated-declarations]
  111.    { ARCHIVE_COMPRESSION_COMPRESS, archive_write_set_compression_compress },
  112.    ^
  113. compiling archive_read_support_format.c
  114. compiling libarchive_archive.c
  115. In file included from libarchive_internal.h:31:0,
  116.                  from libarchive_archive.c:1:
  117. /usr/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
  118.  #warning rubysig.h is obsolete
  119.   ^
  120. libarchive_archive.c: In function ‘rb_libarchive_archive_position_compressed’:
  121. libarchive_archive.c:28:3: warning: ‘archive_position_compressed’ is deprecated (declared at /usr/include/archive.h:900) [-Wdeprecated-declarations]
  122.    return LONG2NUM(archive_position_compressed(p->ar));
  123.    ^
  124. libarchive_archive.c: In function ‘rb_libarchive_archive_position_uncompressed’:
  125. libarchive_archive.c:36:3: warning: ‘archive_position_uncompressed’ is deprecated (declared at /usr/include/archive.h:903) [-Wdeprecated-declarations]
  126.    return LONG2NUM(archive_position_uncompressed(p->ar));
  127.    ^
  128. libarchive_archive.c: In function ‘rb_libarchive_archive_compression_name’:
  129. libarchive_archive.c:44:3: warning: ‘archive_compression_name’ is deprecated (declared at /usr/include/archive.h:906) [-Wdeprecated-declarations]
  130.    return rb_str_new2(archive_compression_name(p->ar));
  131.    ^
  132. libarchive_archive.c:44:3: warning: ‘archive_compression_name’ is deprecated (declared at /usr/include/archive.h:906) [-Wdeprecated-declarations]
  133. libarchive_archive.c:44:3: warning: ‘archive_compression_name’ is deprecated (declared at /usr/include/archive.h:906) [-Wdeprecated-declarations]
  134. libarchive_archive.c:44:3: warning: ‘archive_compression_name’ is deprecated (declared at /usr/include/archive.h:906) [-Wdeprecated-declarations]
  135. libarchive_archive.c: In function ‘rb_libarchive_archive_compression’:
  136. libarchive_archive.c:52:3: warning: ‘archive_compression’ is deprecated (declared at /usr/include/archive.h:909) [-Wdeprecated-declarations]
  137.    return INT2NUM(archive_compression(p->ar));
  138.    ^
  139. compiling libarchive_reader.c
  140. In file included from libarchive_internal.h:31:0,
  141.                  from libarchive_reader.c:1:
  142. /usr/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
  143.  #warning rubysig.h is obsolete
  144.   ^
  145. libarchive_reader.c: In function ‘rb_libarchive_reader_close0’:
  146. libarchive_reader.c:10:3: warning: ‘archive_read_finish’ is deprecated (declared at /usr/include/archive.h:585) [-Wdeprecated-declarations]
  147.    archive_read_finish(p->ar);
  148.    ^
  149. libarchive_reader.c: In function ‘rb_libarchive_reader_s_open0’:
  150. libarchive_reader.c:35:5: warning: ‘archive_read_support_compression_program’ is deprecated (declared at /usr/include/archive.h:325) [-Wdeprecated-declarations]
  151.      r = archive_read_support_compression_program(p->ar, cmd);
  152.      ^
  153. libarchive_reader.c:39:5: warning: ‘archive_read_support_compression_all’ is deprecated (declared at /usr/include/archive.h:311) [-Wdeprecated-declarations]
  154.      r = archive_read_support_compression_all(p->ar);
  155.      ^
  156. libarchive_reader.c: In function ‘rb_libarchive_reader_s_open_filename0’:
  157. libarchive_reader.c:92:7: error: format not a string literal and no format arguments [-Werror=format-security]
  158.        archive_set_error(p->ar, -1, strerror(errno));
  159.        ^
  160. libarchive_reader.c: In function ‘rb_libarchive_reader_save_data’:
  161. libarchive_reader.c:275:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
  162.    _close(fd);
  163.    ^
  164. cc1: some warnings being treated as errors
  165. make: *** [libarchive_reader.o] Error 1
  166.  
  167.  
  168. Gem files will remain installed in /var/lib/gems/1.9.1/gems/libarchive-0.1.2 for inspection.
  169. Results logged to /var/lib/gems/1.9.1/gems/libarchive-0.1.2/ext/gem_make.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement