Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712470 - net-misc/vmnet-0.4 : vmnet.c:(.text+<snip>): undefined reference to getpt
Summary: net-misc/vmnet-0.4 : vmnet.c:(.text+<snip>): undefined reference to getpt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-14 09:43 UTC by Toralf Förster
Modified: 2022-10-28 17:02 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.17 KB, text/plain)
2020-03-14 09:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,58.99 KB, text/plain)
2020-03-14 09:43 UTC, Toralf Förster
Details
environment (environment,65.92 KB, text/plain)
2020-03-14 09:43 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.22 KB, application/x-bzip)
2020-03-14 09:43 UTC, Toralf Förster
Details
net-misc:vmnet-0.4:20200314-061530.log (net-misc:vmnet-0.4:20200314-061530.log,5.07 KB, text/plain)
2020-03-14 09:43 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,17.64 KB, application/x-bzip)
2020-03-14 09:43 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 09:43:39 UTC
      |  si_uid
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /var/tmp/portage/net-misc/vmnet-0.4/temp/ccIlJFnC.o: in function open_pty_pair:
vmnet.c:(.text+0x46c): undefined reference to getpt
collect2: error: ld returned 1 exit status
make: *** [<builtin>: vmnet] Error 1
 * ERROR: net-misc/vmnet-0.4::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 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Mar 2020 05:08:51 +0000
emerge -qpvO net-misc/vmnet
[ebuild  N    ] net-misc/vmnet-0.4
Comment 1 Toralf Förster gentoo-dev 2020-03-14 09:43:42 UTC
Created attachment 618816 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 09:43:45 UTC
Created attachment 618818 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-14 09:43:48 UTC
Created attachment 618820 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-14 09:43:51 UTC
Created attachment 618822 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-14 09:43:53 UTC
Created attachment 618824 [details]
net-misc:vmnet-0.4:20200314-061530.log
Comment 6 Toralf Förster gentoo-dev 2020-03-14 09:43:56 UTC
Created attachment 618826 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:45 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 22:12:58 UTC
looks similar to this, getpt could be replaced by posix_openpt() with suitable flags

https://linux-bluetooth.vger.kernel.narkive.com/ANFBPPmE/patch-emulator-serial-c-use-posix-openpt-instead-of-getpt
Comment 9 Larry the Git Cow gentoo-dev 2022-10-28 17:02:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75b201bb72b3f4fde70f4053d11c65e0123de01d

commit 75b201bb72b3f4fde70f4053d11c65e0123de01d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-28 16:18:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-28 17:01:49 +0000

    net-misc/vmnet: fix build w/ Clang 16
    
    Closes: https://bugs.gentoo.org/871171
    Closes: https://bugs.gentoo.org/712470
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/vmnet-0.4-Fix-build-with-Clang-16.patch  | 33 ++++++++++++++++++++++
 .../{vmnet-0.4.ebuild => vmnet-0.4-r1.ebuild}      |  5 ++--
 2 files changed, 36 insertions(+), 2 deletions(-)