Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931321 - net-vpn/vtun-3.0.4-r4 - configure: error: SOCKS library not found.
Summary: net-vpn/vtun-3.0.4-r4 - configure: error: SOCKS library not found.
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 17:38 UTC by Toralf Förster
Modified: 2024-05-09 11:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,20.35 KB, text/plain)
2024-05-06 17:38 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,62.50 KB, application/x-xz)
2024-05-06 17:38 UTC, Toralf Förster
Details
environment (environment,98.23 KB, text/plain)
2024-05-06 17:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-05-06 17:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,38.13 KB, application/x-xz)
2024-05-06 17:38 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.93 KB, application/x-xz)
2024-05-06 17:38 UTC, Toralf Förster
Details
net-vpn:vtun-3.0.4-r4:20240506-100816.log (net-vpn:vtun-3.0.4-r4:20240506-100816.log,6.62 KB, text/plain)
2024-05-06 17:38 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,67.30 KB, application/x-xz)
2024-05-06 17:38 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.77 KB, application/x-xz)
2024-05-06 17:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-05-06 17:38:01 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2024-05-06 17:38:02 UTC
Created attachment 892386 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-06 17:38:04 UTC
Created attachment 892387 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-05-06 17:38:05 UTC
Created attachment 892388 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-05-06 17:38:06 UTC
Created attachment 892389 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-05-06 17:38:07 UTC
Created attachment 892390 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-06 17:38:08 UTC
Created attachment 892391 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-06 17:38:09 UTC
Created attachment 892392 [details]
net-vpn:vtun-3.0.4-r4:20240506-100816.log
Comment 8 Toralf Förster gentoo-dev 2024-05-06 17:38:10 UTC
Created attachment 892393 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-05-06 17:38:11 UTC
Created attachment 892394 [details]
temp.tar.xz
Comment 10 Jan-Espen Oversand 2024-05-09 10:48:00 UTC
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.
Comment 11 Jan-Espen Oversand 2024-05-09 11:03:54 UTC
I think the real solution to this lies in net-proxy/dante and https://bugs.gentoo.org/909563