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

Failures on ruby calling _CGSDefaultConnection #62

Open
GoogleCodeExporter opened this issue Mar 3, 2015 · 0 comments
Open

Failures on ruby calling _CGSDefaultConnection #62

GoogleCodeExporter opened this issue Mar 3, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

csshX fails when it tries to use ruby to open shared libraries using `dl.open` 
and just before the terminal window closes itself, I see:

    -:5:in 'sym': wrong number of arguments (2 for 1) (ArgumentError)
    from -:5:in '<main>'

This seems to come from:

        require 'dl'
        dl = DL::dlopen('/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices')
        con = dl.sym('_CGSDefaultConnection', '${I}').call()

which does indeed fail on machine:

    $ irb 
    irb(main):001:0> require 'dl'
    DL is deprecated, please use Fiddle
    => true
    irb(main):002:0> dl = DL::dlopen('/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices')
    => #<DL::Handle:0x007fd712896c28>
    irb(main):003:0> dl.sym('_CGSDefaultConnection', 'I')
    ArgumentError: wrong number of arguments (2 for 1)
        from (irb):3:in `sym'
        from (irb):3
        from /usr/bin/irb:12:in `<main>'
    irb(main):004:0>

Original issue reported on code.google.com by erik.van...@gmail.com on 7 Mar 2014 at 8:52

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

1 participant