checking "for evp.h"... (/usr/include/openssl) yes checking for EVP_EncryptInit in -lcrypto... yes configure: checking for SOCKS Library ... ... checking for SOCKSconnect in -lsocks5... no checking for Rconnect in -lsocks... no configure: error: SOCKS library not found. !!! Please attach the following file when seeking support: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_musl_hardened-20240501-134026 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-musl-13 * clang/llvm (if any): clang version 18.1.5 Target: x86_64-pc-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg /usr/lib/llvm/18 18.1.5 Python 3.11.9 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) [3] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.77.1 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.22_p7 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-11 [2] openjdk-bin-17 [3] openjdk-bin-21 system-vm php cli (if any): [1] php8.1 * [2] php8.3 go version go1.22.2 linux/amd64 HEAD of ::gentoo commit 2a14f18bf5b8a1b1d3c82747e24e081b1201dec0 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon May 6 09:34:42 2024 +0000 2024-05-06 09:34:41 UTC emerge -qpvO net-vpn/vtun [ebuild N ] net-vpn/vtun-3.0.4-r4 USE="socks5 ssl zlib -lzo"
Created attachment 892386 [details] emerge-info.txt
Created attachment 892387 [details] emerge-history.txt.xz
Created attachment 892388 [details] environment
Created attachment 892389 [details] etc.clang.tar.xz
Created attachment 892390 [details] etc.portage.tar.xz
Created attachment 892391 [details] logs.tar.xz
Created attachment 892392 [details] net-vpn:vtun-3.0.4-r4:20240506-100816.log
Created attachment 892393 [details] qlist-info.txt.xz
Created attachment 892394 [details] temp.tar.xz
So what breaks the test for -lsocks (enabled by USE=socks5) is this: With a just minimal test.c: int main() { } $ cc -o test test.c -lsocks /usr/lib/gcc/x86_64-pc-linux-musl/13/../../../../x86_64-pc-linux-musl/bin/ld: /usr/lib/gcc/x86_64-pc-linux-musl/13/../../../../lib/libsocks.so: undefined reference to `bindresvport' collect2: error: ld returned 1 exit status Obviously bindresvport is not available in musl. Potential similar issues: https://github.com/gentoo/musl/issues/108 https://bugs.gentoo.org/862816 (not solved) Adding a dependency to a library that just happens to contain an implementation of this like suggested in the first of the similar issues seems a little bit weird to me.
I think the real solution to this lies in net-proxy/dante and https://bugs.gentoo.org/909563