all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* torsocks works with wget but fails git-clone: "unable to lookup symbols in libc.so.6"
@ 2017-04-05 22:41 Mekeor Melire
  2017-04-05 22:54 ` ng0
  0 siblings, 1 reply; 4+ messages in thread
From: Mekeor Melire @ 2017-04-05 22:41 UTC (permalink / raw)
  To: help-guix


Problem
=======

This works fine:

    $ torsocks wget http://github.com/mekeor/config

This fails:

    $ torsocks git clone http://github.com/mekeor/config
    1491426097 ERROR torsocks[25849]: Unable to lookup symbols in libc.so.6((null)) (in init_libc_symbols() at torsocks.c:239)

Torifying browsers like netsurf-gtk, surf, w3m either also fail or don't
succeed. Using "torify" instead of "torsocks" results in the same.


Information
===========

My config.scm contains:

    (tor-service)

My whole config is available at:

    https://github.com/mekeor/config/blob/master/etc/guix/config.scm

The error is printed on this line in the code of torsocks:

    https://github.com/dgoulet/torsocks/blob/master/src/lib/torsocks.c#L239

I'm using version 20170405.20 of Guix (on GuixSD).


Question
========

Why does torsocks work with wget but doesn't work with git-clone? What
does the error mean? What does it have to do with libc? Is anybody able
to reproduce this?

--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: torsocks works with wget but fails git-clone: "unable to lookup symbols in libc.so.6"
  2017-04-05 22:41 torsocks works with wget but fails git-clone: "unable to lookup symbols in libc.so.6" Mekeor Melire
@ 2017-04-05 22:54 ` ng0
  2017-04-06 21:08   ` Mekeor Melire
  0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2017-04-05 22:54 UTC (permalink / raw)
  To: Mekeor Melire; +Cc: help-guix

Mekeor Melire transcribed 1.0K bytes:
> 
> Problem
> =======
> 
> This works fine:
> 
>     $ torsocks wget http://github.com/mekeor/config
> 
> This fails:
> 
>     $ torsocks git clone http://github.com/mekeor/config
>     1491426097 ERROR torsocks[25849]: Unable to lookup symbols in libc.so.6((null)) (in init_libc_symbols() at torsocks.c:239)
> 
> Torifying browsers like netsurf-gtk, surf, w3m either also fail or don't
> succeed. Using "torify" instead of "torsocks" results in the same.
> 
> 
> Information
> ===========
> 
> My config.scm contains:
> 
>     (tor-service)

That's not enough for torify (torification? to use torsocks / the SOCKS5
of tor) of applications. As I told you earlier, you need a SOCKSPort,
like so:

(services (cons*
            (tor-service
              (plain-file "torrc"
"SocksPort 127.0.0.1:9050\n"))))

This can be extended any other values you can find in "man torrc" as
long as you end the lines with "\n".
 
The (tor-service) is mostly just usable for offering onion services, and
we should document that the default is to leave it up to the person
using the system to
configure more behavior.

> My whole config is available at:
> 
>     https://github.com/mekeor/config/blob/master/etc/guix/config.scm
> 
> The error is printed on this line in the code of torsocks:
> 
>     https://github.com/dgoulet/torsocks/blob/master/src/lib/torsocks.c#L239
> 
> I'm using version 20170405.20 of Guix (on GuixSD).
> 
> 
> Question
> ========
> 
> Why does torsocks work with wget but doesn't work with git-clone? What
> does the error mean? What does it have to do with libc? Is anybody able
> to reproduce this?
> 
> --
> mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: torsocks works with wget but fails git-clone: "unable to lookup symbols in libc.so.6"
  2017-04-05 22:54 ` ng0
@ 2017-04-06 21:08   ` Mekeor Melire
  2017-04-06 21:54     ` ng0
  0 siblings, 1 reply; 4+ messages in thread
From: Mekeor Melire @ 2017-04-06 21:08 UTC (permalink / raw)
  To: ng0; +Cc: help-guix

ng0 <contact.ng0@cryptolab.net> writes:

> That's not enough for torify (torification? to use torsocks / the SOCKS5
> of tor) of applications. As I told you earlier, you need a SOCKSPort,
> like so:
>
> (services (cons*
>             (tor-service
>               (plain-file "torrc"
> "SocksPort 127.0.0.1:9050\n"))))
>
> This can be extended any other values you can find in "man torrc" as
> long as you end the lines with "\n".
>
> The (tor-service) is mostly just usable for offering onion services, and
> we should document that the default is to leave it up to the person
> using the system to
> configure more behavior.
>

Why does the exact same command, namely “torify git clone
https://github.com/mekeor/config” work for other people on GuixSD then
without any custom tor-config but just (tor-service)? (Like, in
particular, I remember that rekado told me so.)

Also, after reconfiguring with the snippet you suggested, I still get
the same error.

--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: torsocks works with wget but fails git-clone: "unable to lookup symbols in libc.so.6"
  2017-04-06 21:08   ` Mekeor Melire
@ 2017-04-06 21:54     ` ng0
  0 siblings, 0 replies; 4+ messages in thread
From: ng0 @ 2017-04-06 21:54 UTC (permalink / raw)
  To: Mekeor Melire; +Cc: help-guix

Mekeor Melire transcribed 1.0K bytes:
> ng0 <contact.ng0@cryptolab.net> writes:
> 
> > That's not enough for torify (torification? to use torsocks / the SOCKS5
> > of tor) of applications. As I told you earlier, you need a SOCKSPort,
> > like so:
> >
> > (services (cons*
> >             (tor-service
> >               (plain-file "torrc"
> > "SocksPort 127.0.0.1:9050\n"))))
> >
> > This can be extended any other values you can find in "man torrc" as
> > long as you end the lines with "\n".
> >
> > The (tor-service) is mostly just usable for offering onion services, and
> > we should document that the default is to leave it up to the person
> > using the system to
> > configure more behavior.
> >
> 
> Why does the exact same command, namely “torify git clone
> https://github.com/mekeor/config” work for other people on GuixSD then
> without any custom tor-config but just (tor-service)? (Like, in
> particular, I remember that rekado told me so.)
> 
> Also, after reconfiguring with the snippet you suggested, I still get
> the same error.
> 
> --
> mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868

Okay that is weird...

Okay, you need the SOCKSPort to make use of the SOCKS5 proxy. Apparently
torify is something else and I forgot about that. Sorry.

I assume your system and profile are recent enough?
I have never experienced this error, so I can't really help.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-06 21:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-05 22:41 torsocks works with wget but fails git-clone: "unable to lookup symbols in libc.so.6" Mekeor Melire
2017-04-05 22:54 ` ng0
2017-04-06 21:08   ` Mekeor Melire
2017-04-06 21:54     ` ng0

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.