Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package]: gem ethon #831

Closed
1 task done
wakhidrf opened this issue Feb 17, 2024 · 4 comments
Closed
1 task done

[Package]: gem ethon #831

wakhidrf opened this issue Feb 17, 2024 · 4 comments

Comments

@wakhidrf
Copy link

Name

gem ethon

Home page URL

No response

Source code URL

https://rubygems.org/gems/ethon

Packaging policy acknowledgement

Additional information

Based on bing AI it says

It seems you’re encountering an issue with the ffi gem in Ruby on Termux. The error message indicates that the function getdtablesize is not found in libc.so. This function was used by the ethon gem, but it appears to have been removed from the libc of more recent Android distributions.

full error log

/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ffi-1.16.3/lib/ffi/library.rb:216:in `attach_function': Function 'getdtablesize' not found in [libc.so] (FFI::NotFoundError)
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb:17:in `<module:Libc>'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb:7:in `<module:Ethon>'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb:2:in `<top (required)>'            from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'              from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'              from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon.rb:15:in `<top (required)>'                from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'              from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/typhoeus-1.4.1/lib/typhoeus.rb:2:in `<top (required)>'
        from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/cms_scanner-0.13.9/lib/cms_scanner.rb:4:in `<top (required)>'
        from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/wpscan-3.8.25/lib/wpscan.rb:8:in `<top (required)>'
        from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/data/data/com.termux/files/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/wpscan-3.8.25/bin/wpscan:4:in `<top (required)>'
        from /data/data/com.termux/files/usr/bin/wpscan:25:in `load'
        from /data/data/com.termux/files/usr/bin/wpscan:25:in `<main>'

my device

Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=11826
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list                                                  deb https://mirror.mwt.me/termux/main stable main
# tur-repo (sources.list.d/tur.list)                            deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous                                                     Updatable packages:
All packages up to date                                         termux-tools version:
1.40.6                                                          Android version:
14                                                              Kernel build information:
Linux localhost 4.19.191+ #1 SMP PREEMPT Fri Dec 29 19:07:00 CST 2023 aarch64 Android                                           Device manufacturer:
OPPO
Device model:
CPH2387
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

Here's also some reference sysconf()
Thank you

@SunPodder
Copy link
Contributor

apt install libffi

Then try again

@wakhidrf
Copy link
Author

nvm, i think it's caused by getdtablesize which isn't supported by the developer, i read somewhere they have tried but fail

@SunPodder
Copy link
Contributor

nvm, i think it's caused by getdtablesize which isn't supported by the developer, i read somewhere they have tried but fail

I just installed it on my phone :)

apt install libffi
gem install ethon

@wakhidrf
Copy link
Author

yeah i installed too

typhoeus/ethon#192

/data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ffi-1.16.3/lib/ffi/library.rb:216:in `attach_function': Function 'getdtablesize' not found in [libc.so] (FFI::NotFoundError)
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb:17:in `<module:Libc>'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb:7:in `<module:Ethon>'
        from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb:2:in `<top (required)>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants