Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712544 - net-analyzer/openbsd-netcat-1.190 : socks.c:(.text+<snip>): undefined reference to b64_ntop
Summary: net-analyzer/openbsd-netcat-1.190 : socks.c:(.text+<snip>): undefined referen...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
Depends on:
Reported: 2020-03-14 17:55 UTC by Toralf Förster
Modified: 2021-03-15 08:35 UTC (History)
4 users (show)

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

emerge-info.txt (emerge-info.txt,15.40 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,80.20 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
environment (environment,51.01 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
etc.portage.tbz2 (etc.portage.tbz2,11.52 KB, application/x-bzip)
2020-03-14 17:55 UTC, Toralf Förster
net-analyzer:openbsd-netcat-1.190:20200314-173739.log (net-analyzer:openbsd-netcat-1.190:20200314-173739.log,3.76 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
temp.tbz2 (temp.tbz2,13.96 KB, application/x-bzip)
2020-03-14 17:55 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-14 17:55:33 UTC
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../ warning: This function cannot be safely ported, use getline(3) instead, as it is supported by GNU and POSIX.1-2008.
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: socks.o: in function socks_connect:
socks.c:(.text+0x48c): undefined reference to b64_ntop
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: nc] Error 1
 * ERROR: net-analyzer/openbsd-netcat-1.190::gentoo failed (compile phase):


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810


gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] x86_64-gentoo-linux-musl-9.3.0
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *
The following VMs are available for generation-2:

==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Mar 2020 16:44:09 +0000
emerge -qpvO net-analyzer/openbsd-netcat
[ebuild  N    ] net-analyzer/openbsd-netcat-1.190
Comment 1 Toralf Förster gentoo-dev 2020-03-14 17:55:35 UTC
Created attachment 619084 [details]
Comment 2 Toralf Förster gentoo-dev 2020-03-14 17:55:38 UTC
Created attachment 619086 [details]
Comment 3 Toralf Förster gentoo-dev 2020-03-14 17:55:41 UTC
Created attachment 619088 [details]
Comment 4 Toralf Förster gentoo-dev 2020-03-14 17:55:44 UTC
Created attachment 619090 [details]
Comment 5 Toralf Förster gentoo-dev 2020-03-14 17:55:46 UTC
Created attachment 619092 [details]
Comment 6 Toralf Förster gentoo-dev 2020-03-14 17:55:49 UTC
Created attachment 619094 [details]
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:39 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-04 23:05:27 UTC
patch for libressl, I imagine there's a version of the openbsd libraries we can use?
Comment 9 Benda Xu gentoo-dev 2020-04-08 07:58:23 UTC
Sorry, I have don't have a musl environment.

Feel free to fix it or propose a patch for it.
Comment 10 Michael 'veremitz' Everitt 2020-09-05 17:31:29 UTC
musl overlay is carrying a patch for the base64 function needed for this at .

Afaict this works for .190 and .195 and as such I've filed a PR at .

Can we consider incorporating this patch into ::gentoo in future bumps, until such time as it gets accepted upstream?