Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 712544

Summary: net-analyzer/openbsd-netcat-1.190 : socks.c:(.text+<snip>): undefined reference to b64_ntop
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: heroxbd, opal, sam, vklimovs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 864733    
Bug Blocks:    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-analyzer:openbsd-netcat-1.190:20200314-173739.log
temp.tbz2

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 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?

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?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-10 04:12:41 UTC
commit c66ee6eae7e62e36caad12950a995cfff43fbb0b
Author: Fabian Groffen <grobian@gentoo.org>
Date:   Thu Jun 17 20:43:48 2021 +0200

    net-analyzer/openbsd-netcat-1.195-r1: fix build for musl and Darwin

    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>