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

Bug 871084

Summary: games-mud/tf-5.0_beta8_p8 - malloc.c: error: call to undeclared library function malloc with type
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
games-mud:tf-5.0_beta8_p8:20220917-203204.log
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-17 20:33:58 UTC
__caddr_t
/usr/include/bits/types.h:204:15: note: '__caddr_t' declared here
typedef char *__caddr_t;
              ^
malloc.c:21:15: error: call to undeclared library function 'malloc' with type
      'void *(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_hardened-j4-20220917-070004

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

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:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit eea4346d3a62953117475d04aa1e943b96144507
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 19:46:48 2022 +0000

    2022-09-17 19:46:47 UTC

emerge -qpvO games-mud/tf
[ebuild  N    ] games-mud/tf-5.0_beta8_p8  USE="atcp gmcp ipv6 option102 ssl -doc"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 20:33:58 UTC
Created attachment 809722 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 20:34:00 UTC
Created attachment 809725 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 20:34:01 UTC
Created attachment 809728 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 20:34:03 UTC
Created attachment 809731 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 20:34:04 UTC
Created attachment 809734 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 20:34:05 UTC
Created attachment 809737 [details]
games-mud:tf-5.0_beta8_p8:20220917-203204.log
Comment 7 Toralf Förster gentoo-dev 2022-09-17 20:34:06 UTC
Created attachment 809740 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-17 20:34:08 UTC
Created attachment 809743 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2022-10-03 00:38:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa

commit 3b16b5c4b1f3c7ff642c408239d9bca6b88bd5fa
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-02 19:33:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-03 00:38:08 +0000

    games-mud/tf: fix implicit function decls. (Clang 16+)
    
    There's other code quality issues but there's so many of these
    bugs that we need to just keep moving forward for now, e.g.
    ```
     * socket.c:2657:27: warning: assignment to ‘String *’ from incompatible pointer type ‘conString *’ [-Wincompatible-pointer-types]
    ```
    
    Closes: https://bugs.gentoo.org/871084
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ta8_p8-Fix-implicit-function-declarations.patch | 26 ++++++++++++++++++++++
 ...0_beta8_p8.ebuild => tf-5.0_beta8_p8-r1.ebuild} |  3 ++-
 2 files changed, 28 insertions(+), 1 deletion(-)