[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-dev] torsocks configure bug (uClibc, maybe other nonstandard libcs)
- To: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [tor-dev] torsocks configure bug (uClibc, maybe other nonstandard libcs)
- From: akater <nuclearspace@xxxxxxxxx>
- Date: Wed, 13 Nov 2019 09:58:53 +0000
- Autocrypt: addr=nuclearspace@xxxxxxxxx; keydata= mQINBFZne44BEAD0o2l71AoxrijgKb28rmgMcAEo9VOyRKX92o5dgdHnngrFLq6u+eOtUBFd9DTu D5NmlF8X5/IIPXffTtiQSRV3fexeePc6Mvf21Nxj8lUS2uzrceMO8GrjkyiYTJ+LFi19ZFO28nBf lAM3b+H+zvPjSI/NRP8UX0W0t6dF6pFuPWkrnR1Ae5UTsZgB0HnObv5T538hWR4pJubQWZYfX6G+ CBOwS00PeZvALMM1eFg4YqEuOoZPDUak96v2Mw0pC9CYo3VOkPJQoNSnyFWvAMsHCAAc5SlztUjP wCNyjJuln9RLPanUN6kVIJCPaZQ+QgyfEDMRlKTow25IdTo1TOYlEas4QzvA8CV6GzyJXjeHePDj N7pPHwhMX9hUK/7eByHqcf1SZql3drsgrTJW7u3dAnGuqBzn3b8Ku0hlwPX4SUuBEr2k4zkh2UAf K2MOrQJDtryNAsvSdVcB3YfwK2K9jFq5iksY/A4KHePv5sKp0Elee1IoRb4yIoLddeGHoaNSwCbp AvwWho+90LsHBodG+Qc8UJDKRyhIQgII0MA/nHdwHF07mx9F9TZG3amSPL8ZzT2eTAFuwgUShqqU lAz1hjiNeRI02ktpdY44IwyyO59tgWDVwSTMaO5Ri1V3ELz4Y8xudcwQeHGlHO4XFxfvtZGy33Zj YgvTJIJfTXLaRQARAQABtB9Ba2F0ZXIgPG51Y2xlYXJzcGFjZUBnbWFpbC5jb20+iQI3BBMBCgAh AhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheABQJaRu9zAAoJEJlVXOby4bIda28QAKFzUo8ZjPPe cDi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, 14 Nov 2019 04:39:10 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:autocrypt:mime-version:content-transfer-encoding:subject:to :from:message-id; bh=uQ9wX5rpmlSMrBloajJ9LiOzwOw/dExdV8izTql1Rzs=; b=pWi/6CYpOPuXv5Z5fqNUchQjUjVY7ZMGzAV1knGvvOmO1UU96xqydgiig6k094hySK Wv6KrDsEUtlbKBQ6xMXABmMIVdR1zlu6s6RAvwfIPxqXOOykWETG9ipI8NN9s296grFS WP8GzCkU9jsLIOwKALVnADaoLFFk1wML4zBRqciKh6DRCQB5INzpSVSgKy+yI1pK1Fmx U8fTY5ruV3YiFi2FJ366Yuop+qQEyHjYOnQdWdODnzeVavuNbnIRGN1XHW7e06uYUyKK nZFuxJ2uJGbZuiXzpX8ERMwrhHiWlImTpaQAcfehjPGeIyaMxeA/UhjE8OPV9xjUYrgq rFNA==
- List-archive: <http://lists.torproject.org/pipermail/tor-dev/>
- List-help: <mailto:tor-dev-request@lists.torproject.org?subject=help>
- List-id: discussion regarding Tor development <tor-dev.lists.torproject.org>
- List-post: <mailto:tor-dev@lists.torproject.org>
- List-subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=subscribe>
- List-unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=unsubscribe>
- Reply-to: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Sender: "tor-dev" <tor-dev-bounces@xxxxxxxxxxxxxxxxxxxx>
In torsocks' configure.ac, libc_name is determined by means of ldd /usr/bin/yes which is then grepped for libc.
On a uClibc system I use, ldd /usr/bin/yes yields two entries, namely
libc.so.0 => ...
ld64-uClibc.so.0 => ...
The resulting string begins with quotation mark, ends with quotation mark and contains newline character.
At some point during the configuration process (I have not figured out when exactly), the aforementioned string is trimmed erroneously. In my case, the first line is left out and the second one is discarded. The remaining chunk, with the opening quotation mark but without the closing one, ends up in another configuration file, producing a line like
SOME_VARIABLE="libc.so.0
without the closing quotation mark. Build cannot proceed from there.
The libc determination process thus needs to be fixed.
My hotfix was to change
grep 'libc\.'
to
grep '\slibc\.'
but I can't suggest the proper solution as I'm not experienced with shell scripts. I will perform a test if provided with (a link to) a relevant standalone patch for torsocks-2.2.0 or torsocks-2.3.0.Attachment:
signature.asc
Description: PGP signature
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev