Skip to content

Error install in Blackarch (repo but i am in arch linux) like this #1100

@rizal-mujahiddan

Description

@rizal-mujahiddan

Why error using arachni like this

sudo pacman -S arachni  ✔  29s  
[sudo] password for archblack:
warning: arachni-1.6.1.3.2.gc1710d607-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) arachni-1.6.1.3.2.gc1710d607-1

Total Installed Size: 7.18 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [###################################] 100%
(1/1) checking package integrity [###################################] 100%
(1/1) loading package files [###################################] 100%
(1/1) checking for file conflicts [###################################] 100%
(1/1) checking available disk space [###################################] 100%
:: Processing package changes...
(1/1) reinstalling arachni [###################################] 100%
[DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path 'vendor/bundle', and stop using this flag
Don't run Bundler as root. Installing your bundle as root will break this
application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Installing msgpack 1.2.4 with native extensions
Installing ox 2.9.4 with native extensions
Installing oj 3.6.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/msgpack-1.2.4/ext/msgpack
/usr/bin/ruby extconf.rb
checking for ruby/st.h... yes
checking for st.h... no
checking for rb_str_replace() in ruby.h... yes
checking for rb_intern_str() in ruby.h... yes
checking for rb_sym2str() in ruby.h... yes
checking for rb_str_intern() in ruby.h... yes
checking for rb_block_lambda() in ruby.h... yes
checking for rb_hash_dup() in ruby.h... yes
checking for rb_hash_clear() in ruby.h... yes
creating Makefile

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/msgpack-1.2.4/ext/msgpack
make DESTDIR= sitearchdir=./.gem.20250525-13654-gq83wa
sitelibdir=./.gem.20250525-13654-gq83wa clean

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/msgpack-1.2.4/ext/msgpack
make DESTDIR= sitearchdir=./.gem.20250525-13654-gq83wa
sitelibdir=./.gem.20250525-13654-gq83wa
compiling buffer.c
compiling buffer_class.c
buffer_class.c: In function ‘Buffer_alloc’:
buffer_class.c:60:5: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
60 | return Data_Wrap_Struct(klass, msgpack_buffer_mark, Buffer_free, b);
| ^~~~~~
In file included from /usr/include/ruby-3.4.0/ruby/internal/core.h:27,
from /usr/include/ruby-3.4.0/ruby/ruby.h:29,
from /usr/include/ruby-3.4.0/ruby.h:38,
from compat.h:22,
from buffer_class.c:19:
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘MessagePack_Buffer_wrap’:
buffer_class.c:114:5: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
114 | return Data_Wrap_Struct(cMessagePack_Buffer, msgpack_buffer_mark,
NULL, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_initialize’:
buffer_class.c:144:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
144 | BUFFER(self, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
325 | rb_data_object_get_warning(VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_clear’:
buffer_class.c:153:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
153 | BUFFER(self, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
325 | rb_data_object_get_warning(VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_size’:
buffer_class.c:160:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
160 | BUFFER(self, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
325 | rb_data_object_get_warning(VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_empty_p’:
buffer_class.c:167:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
167 | BUFFER(self, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
325 | rb_data_object_get_warning(VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_write’:
buffer_class.c:177:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
177 | BUFFER(self, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
325 | rb_data_object_get_warning(VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_append’:
buffer_class.c:189:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
189 | BUFFER(self, b);
| ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
325 | rb_data_object_get_warning(VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘read_until_eof’:
buffer_class.c:261:17: error: passing argument 3 of ‘rb_rescue2’ from
incompatible pointer type [-Wincompatible-pointer-types]
261 | read_until_eof_error, (VALUE)(void
) args,
| ^~~~~~~~~~~~~~~~~~~~
| |
| VALUE (
)(VALUE) {aka long unsigned int ()(long
unsigned int)}
In file included from /usr/include/ruby-3.4.0/ruby/ruby.h:41:
/usr/include/ruby-3.4.0/ruby/internal/iterator.h:388:63: note: expected ‘VALUE
(
)(VALUE, VALUE)’ {aka ‘long unsigned int ()(long unsigned int, long
unsigned int)’} but argument is of type ‘VALUE (
)(VALUE)’ {aka ‘long unsigned
int (*)(long unsigned int)’}
388 | VALUE rb_rescue2(VALUE (*b_proc)(VALUE), VALUE data1, VALUE
(*r_proc)(VALUE, VALUE), VALUE data2, ...);
|

buffer_class.c:248:14: note: ‘read_until_eof_error’ declared here
  248 | static VALUE read_until_eof_error(VALUE args)
      |              ^~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_skip’:
buffer_class.c:294:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  294 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_skip_all’:
buffer_class.c:309:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  309 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_read_all’:
buffer_class.c:347:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  347 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_read’:
buffer_class.c:393:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  393 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_to_str’:
buffer_class.c:436:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  436 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_to_a’:
buffer_class.c:442:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  442 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_flush’:
buffer_class.c:448:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  448 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_io’:
buffer_class.c:455:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  455 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_close’:
buffer_class.c:461:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  461 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
buffer_class.c: In function ‘Buffer_write_to’:
buffer_class.c:470:5: warning: ‘rb_data_object_get_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  470 |     BUFFER(self, b);
      |     ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:251: buffer_class.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/msgpack-1.2.4 for inspection.
Results logged to
/usr/share/arachni/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/msgpack-1.2.4/gem_make.out

/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:126:in
'Gem::Ext::Builder.run'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:52:in 'block in
Gem::Ext::Builder.make'
  /usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:44:in 'Array#each'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:44:in
'Gem::Ext::Builder.make'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/ext_conf_builder.rb:44:in
'Gem::Ext::ExtConfBuilder.build'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:195:in
'Gem::Ext::Builder#build_extension'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:229:in 'block in
Gem::Ext::Builder#build_extensions'
  /usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:226:in 'Array#each'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:226:in
'Gem::Ext::Builder#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/installer.rb:844:in
'Gem::Installer#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/bundler/rubygems_gem_installer.rb:111:in
'Bundler::RubyGemsGemInstaller#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/bundler/rubygems_gem_installer.rb:30:in
'Bundler::RubyGemsGemInstaller#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/source/rubygems.rb:220:in
'Bundler::Source::Rubygems#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/gem_installer.rb:55:in
'Bundler::GemInstaller#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/gem_installer.rb:17:in
'Bundler::GemInstaller#install_from_spec'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/parallel_installer.rb:133:in
'Bundler::ParallelInstaller#do_install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/parallel_installer.rb:124:in
'block in Bundler::ParallelInstaller#worker_pool'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:62:in
'Bundler::Worker#apply_func'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:57:in 'block in
Bundler::Worker#process_queue'
  <internal:kernel>:168:in 'Kernel#loop'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:54:in
'Bundler::Worker#process_queue'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:90:in 'block (2 levels) in
Bundler::Worker#create_threads'

An error occurred while installing msgpack (1.2.4), and Bundler cannot continue.

In Gemfile:
  arachni was resolved to 1.6.1.3, which depends on
    msgpack


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/oj-3.6.5/ext/oj
/usr/bin/ruby extconf.rb
>>>>> Creating Makefile for ruby version 3.4.4 on x86_64-linux <<<<<
creating Makefile

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/oj-3.6.5/ext/oj
make DESTDIR\= sitearchdir\=./.gem.20250525-13654-xe26i
sitelibdir\=./.gem.20250525-13654-xe26i clean

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/oj-3.6.5/ext/oj
make DESTDIR\= sitearchdir\=./.gem.20250525-13654-xe26i
sitelibdir\=./.gem.20250525-13654-xe26i
compiling cache8.c
compiling circarray.c
compiling code.c
compiling compat.c
compiling custom.c
custom.c: In function ‘dump_hash’:
custom.c:321:30: error: passing argument 2 of ‘rb_hash_foreach’ from
incompatible pointer type [-Wincompatible-pointer-types]
  321 |         rb_hash_foreach(obj, hash_cb, (VALUE)out);
      |                              ^~~~~~~
      |                              |
|                              int (*)(VALUE,  VALUE,  struct _Out *) {aka
int (*)(long unsigned int,  long unsigned int,  struct _Out *)}
In file included from /usr/include/ruby-3.4.0/ruby/internal/scan_args.h:37,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:46,
                 from /usr/include/ruby-3.4.0/ruby.h:38,
                 from code.h:9,
                 from custom.c:8:
/usr/include/ruby-3.4.0/ruby/internal/intern/hash.h:83:40: note: expected ‘int
(*)(VALUE,  VALUE,  VALUE)’ {aka ‘int (*)(long unsigned int,  long unsigned int,
long unsigned int)’} but argument is of type ‘int (*)(VALUE,  VALUE,  struct
_Out *)’ {aka ‘int (*)(long unsigned int,  long unsigned int,  struct _Out *)’}
83 | void rb_hash_foreach(VALUE hash, int (*func)(VALUE key, VALUE val, VALUE
arg), VALUE arg);
|                                 
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
custom.c:245:1: note: ‘hash_cb’ declared here
  245 | hash_cb(VALUE key, VALUE value, Out out) {
      | ^~~~~~~
custom.c: In function ‘dump_obj_attrs’:
custom.c:636:26: error: passing argument 2 of ‘rb_ivar_foreach’ from
incompatible pointer type [-Wincompatible-pointer-types]
  636 |     rb_ivar_foreach(obj, dump_attr_cb, (VALUE)out);
      |                          ^~~~~~~~~~~~
      |                          |
|                          int (*)(ID,  VALUE,  struct _Out *) {aka int
(*)(long unsigned int,  long unsigned int,  struct _Out *)}
In file included from /usr/include/ruby-3.4.0/ruby/intern.h:60,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:194:
/usr/include/ruby-3.4.0/ruby/internal/intern/variable.h:263:39: note: expected
‘int (*)(ID,  VALUE,  st_data_t)’ {aka ‘int (*)(long unsigned int,  long
unsigned int,  long unsigned int)’} but argument is of type ‘int (*)(ID,  VALUE,
struct _Out *)’ {aka ‘int (*)(long unsigned int,  long unsigned int,  struct
_Out *)’}
263 | void rb_ivar_foreach(VALUE obj, int (*func)(ID name, VALUE val,
st_data_t arg), st_data_t arg);
|                                
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
custom.c:543:1: note: ‘dump_attr_cb’ declared here
  543 | dump_attr_cb(ID key, VALUE value, Out out) {
      | ^~~~~~~~~~~~
make: *** [Makefile:251: custom.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/oj-3.6.5 for inspection.
Results logged to
/usr/share/arachni/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/oj-3.6.5/gem_make.out

/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:126:in
'Gem::Ext::Builder.run'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:52:in 'block in
Gem::Ext::Builder.make'
  /usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:44:in 'Array#each'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:44:in
'Gem::Ext::Builder.make'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/ext_conf_builder.rb:44:in
'Gem::Ext::ExtConfBuilder.build'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:195:in
'Gem::Ext::Builder#build_extension'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:229:in 'block in
Gem::Ext::Builder#build_extensions'
  /usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:226:in 'Array#each'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:226:in
'Gem::Ext::Builder#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/installer.rb:844:in
'Gem::Installer#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/bundler/rubygems_gem_installer.rb:111:in
'Bundler::RubyGemsGemInstaller#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/bundler/rubygems_gem_installer.rb:30:in
'Bundler::RubyGemsGemInstaller#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/source/rubygems.rb:220:in
'Bundler::Source::Rubygems#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/gem_installer.rb:55:in
'Bundler::GemInstaller#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/gem_installer.rb:17:in
'Bundler::GemInstaller#install_from_spec'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/parallel_installer.rb:133:in
'Bundler::ParallelInstaller#do_install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/parallel_installer.rb:124:in
'block in Bundler::ParallelInstaller#worker_pool'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:62:in
'Bundler::Worker#apply_func'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:57:in 'block in
Bundler::Worker#process_queue'
  <internal:kernel>:168:in 'Kernel#loop'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:54:in
'Bundler::Worker#process_queue'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:90:in 'block (2 levels) in
Bundler::Worker#create_threads'

An error occurred while installing oj (3.6.5), and Bundler cannot continue.

In Gemfile:
  arachni was resolved to 1.6.1.3, which depends on
    oj


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/ox-2.9.4/ext/ox
/usr/bin/ruby extconf.rb
>>>>> Creating Makefile for ruby version 3.4.4 on x86_64-linux <<<<<
creating Makefile

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/ox-2.9.4/ext/ox
make DESTDIR\= sitearchdir\=./.gem.20250525-13654-ar4i4c
sitelibdir\=./.gem.20250525-13654-ar4i4c clean

current directory:
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/ox-2.9.4/ext/ox
make DESTDIR\= sitearchdir\=./.gem.20250525-13654-ar4i4c
sitelibdir\=./.gem.20250525-13654-ar4i4c
compiling base64.c
compiling builder.c
builder.c: In function ‘builder_new’:
builder.c:384:9: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
384 |         volatile VALUE  rb = Data_Wrap_Struct(builder_class, NULL,
builder_free, b);
      |         ^~~~~~~~
In file included from /usr/include/ruby-3.4.0/ruby/internal/core.h:27,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:29,
                 from /usr/include/ruby-3.4.0/ruby.h:38,
                 from ox.h:18,
                 from builder.c:11:
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c:391:9: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  391 |         return Data_Wrap_Struct(builder_class, NULL, builder_free, b);
      |         ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c: In function ‘builder_file’:
builder.c:448:9: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
448 |         volatile VALUE  rb = Data_Wrap_Struct(builder_class, NULL,
builder_free, b);
      |         ^~~~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c:453:9: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  453 |         return Data_Wrap_Struct(builder_class, NULL, builder_free, b);
      |         ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c: In function ‘builder_io’:
builder.c:511:9: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
511 |         volatile VALUE  rb = Data_Wrap_Struct(builder_class, NULL,
builder_free, b);
      |         ^~~~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c:516:9: warning: ‘rb_data_object_wrap_warning’ is deprecated: by
TypedData [-Wdeprecated-declarations]
  516 |         return Data_Wrap_Struct(builder_class, NULL, builder_free, b);
      |         ^~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark,
RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c: In function ‘builder_element’:
builder.c:644:34: error: passing argument 2 of ‘rb_hash_foreach’ from
incompatible pointer type [-Wincompatible-pointer-types]
  644 |         rb_hash_foreach(argv[1], append_attr, (VALUE)b);
      |                                  ^~~~~~~~~~~
      |                                  |
|                                  int (*)(VALUE,  VALUE,  struct _Builder
*) {aka int (*)(long unsigned int,  long unsigned int,  struct _Builder *)}
In file included from /usr/include/ruby-3.4.0/ruby/internal/scan_args.h:37,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:46:
/usr/include/ruby-3.4.0/ruby/internal/intern/hash.h:83:40: note: expected ‘int
(*)(VALUE,  VALUE,  VALUE)’ {aka ‘int (*)(long unsigned int,  long unsigned int,
long unsigned int)’} but argument is of type ‘int (*)(VALUE,  VALUE,  struct
_Builder *)’ {aka ‘int (*)(long unsigned int,  long unsigned int,  struct
_Builder *)’}
83 | void rb_hash_foreach(VALUE hash, int (*func)(VALUE key, VALUE val, VALUE
arg), VALUE arg);
|                                 
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c:222:1: note: ‘append_attr’ declared here
  222 | append_attr(VALUE key, VALUE value, Builder b) {
      | ^~~~~~~~~~~
builder.c: In function ‘builder_void_element’:
builder.c:690:34: error: passing argument 2 of ‘rb_hash_foreach’ from
incompatible pointer type [-Wincompatible-pointer-types]
  690 |         rb_hash_foreach(argv[1], append_attr, (VALUE)b);
      |                                  ^~~~~~~~~~~
      |                                  |
|                                  int (*)(VALUE,  VALUE,  struct _Builder
*) {aka int (*)(long unsigned int,  long unsigned int,  struct _Builder *)}
/usr/include/ruby-3.4.0/ruby/internal/intern/hash.h:83:40: note: expected ‘int
(*)(VALUE,  VALUE,  VALUE)’ {aka ‘int (*)(long unsigned int,  long unsigned int,
long unsigned int)’} but argument is of type ‘int (*)(VALUE,  VALUE,  struct
_Builder *)’ {aka ‘int (*)(long unsigned int,  long unsigned int,  struct
_Builder *)’}
83 | void rb_hash_foreach(VALUE hash, int (*func)(VALUE key, VALUE val, VALUE
arg), VALUE arg);
|                                 
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
builder.c:222:1: note: ‘append_attr’ declared here
  222 | append_attr(VALUE key, VALUE value, Builder b) {
      | ^~~~~~~~~~~
make: *** [Makefile:251: builder.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/usr/share/arachni/vendor/bundle/ruby/3.4.0/gems/ox-2.9.4 for inspection.
Results logged to
/usr/share/arachni/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/ox-2.9.4/gem_make.out

/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:126:in
'Gem::Ext::Builder.run'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:52:in 'block in
Gem::Ext::Builder.make'
  /usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:44:in 'Array#each'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:44:in
'Gem::Ext::Builder.make'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/ext_conf_builder.rb:44:in
'Gem::Ext::ExtConfBuilder.build'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:195:in
'Gem::Ext::Builder#build_extension'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:229:in 'block in
Gem::Ext::Builder#build_extensions'
  /usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:226:in 'Array#each'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:226:in
'Gem::Ext::Builder#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/rubygems/installer.rb:844:in
'Gem::Installer#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/bundler/rubygems_gem_installer.rb:111:in
'Bundler::RubyGemsGemInstaller#build_extensions'
/usr/lib/ruby/site_ruby/3.4.0/bundler/rubygems_gem_installer.rb:30:in
'Bundler::RubyGemsGemInstaller#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/source/rubygems.rb:220:in
'Bundler::Source::Rubygems#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/gem_installer.rb:55:in
'Bundler::GemInstaller#install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/gem_installer.rb:17:in
'Bundler::GemInstaller#install_from_spec'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/parallel_installer.rb:133:in
'Bundler::ParallelInstaller#do_install'
/usr/lib/ruby/site_ruby/3.4.0/bundler/installer/parallel_installer.rb:124:in
'block in Bundler::ParallelInstaller#worker_pool'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:62:in
'Bundler::Worker#apply_func'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:57:in 'block in
Bundler::Worker#process_queue'
  <internal:kernel>:168:in 'Kernel#loop'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:54:in
'Bundler::Worker#process_queue'
/usr/lib/ruby/site_ruby/3.4.0/bundler/worker.rb:90:in 'block (2 levels) in
Bundler::Worker#create_threads'

An error occurred while installing ox (2.9.4), and Bundler cannot continue.

In Gemfile:
  arachni was resolved to 1.6.1.3, which depends on
    ox
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions