Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871171 - net-misc/vmnet-0.4 - vmnet.c: error: call to undeclared library function memset with type
Summary: net-misc/vmnet-0.4 - vmnet.c: error: call to undeclared library function mems...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 09:12 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,18.39 KB, text/plain)
2022-09-18 09:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,208.90 KB, text/plain)
2022-09-18 09:12 UTC, Toralf Förster
Details
environment (environment,81.00 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.94 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
net-misc:vmnet-0.4:20220918-084953.log (net-misc:vmnet-0.4:20220918-084953.log,7.07 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.55 KB, application/x-bzip)
2022-09-18 09:13 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 2022-09-18 09:12:57 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/vmnet-0.4/work/vmnet-0.4 ...
make -j4 
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,now  vmnet.c   -o vmnet
vmnet.c:104:2: error: call to undeclared library function 'memset' with type
      'void *(void *, int, unsigned long)'; ISO C99 and later do not support
      implicit function declarations [-Werror,-Wimplicit-function-declaration]

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220915-203738

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 5f2fa9b1a32565dcaa7598b8076fc7af1e205e0b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 08:16:58 2022 +0000

    2022-09-18 08:16:58 UTC

emerge -qpvO net-misc/vmnet
[ebuild  N    ] net-misc/vmnet-0.4
Comment 1 Toralf Förster gentoo-dev 2022-09-18 09:12:58 UTC
Created attachment 810199 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 09:12:59 UTC
Created attachment 810202 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-18 09:13:00 UTC
Created attachment 810205 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-18 09:13:02 UTC
Created attachment 810208 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-18 09:13:02 UTC
Created attachment 810211 [details]
net-misc:vmnet-0.4:20220918-084953.log
Comment 6 Toralf Förster gentoo-dev 2022-09-18 09:13:03 UTC
Created attachment 810214 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-28 17:02:03 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(-)