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...
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: 2020-03-14 17:55 UTC by Toralf Förster
Modified: 2020-09-05 17:31 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.40 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,80.20 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
Details
environment (environment,51.01 KB, text/plain)
2020-03-14 17:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.52 KB, application/x-bzip)
2020-03-14 17:55 UTC, Toralf Förster
Details
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
Details
temp.tbz2 (temp.tbz2,13.96 KB, application/x-bzip)
2020-03-14 17:55 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 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/../../../libc.so: 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
/usr/lib/llvm/10
10.0.0
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:

repository:
==> /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]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 17:55:38 UTC
Created attachment 619086 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-14 17:55:41 UTC
Created attachment 619088 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-14 17:55:44 UTC
Created attachment 619090 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-14 17:55:46 UTC
Created attachment 619092 [details]
net-analyzer:openbsd-netcat-1.190:20200314-173739.log
Comment 6 Toralf Förster gentoo-dev 2020-03-14 17:55:49 UTC
Created attachment 619094 [details]
temp.tbz2
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-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?

https://github.com/libressl-portable/portable/commit/a7f031ba55ac4a69263000357eb7f6d7fb88101a
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 https://gitweb.gentoo.org/proj/musl.git/tree/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-b64_ntop.patch .

Afaict this works for .190 and .195 and as such I've filed a PR at https://github.com/gentoo/musl/pull/345 .

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