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

Bug 871414

Summary: games-misc/sex-1.0-r2 - sex.c: error: call to undeclared library function strcmp with type int
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
emerge-history.txt
environment
etc.portage.tar.bz2
games-misc:sex-1.0-r2:20220918-125216.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-18 13:22:02 UTC
sex.c:243:26: warning: cast to smaller integer type 'short' from 'void *'
      [-Wvoid-pointer-to-int-cast]
        {(char **)NULL,  (short)NULL},
                         ^~~~~~~~~~~
sex.c:261:7: error: call to undeclared library function 'strcmp' with type 'int
      (const char *, const char *)'; 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_desktop_plasma_systemd-j4-20220917-010004

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

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 Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 2678cd1bffd252b660002366133dc53b6a151c18
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 12:31:50 2022 +0000

    2022-09-18 12:31:50 UTC

emerge -qpvO games-misc/sex
[ebuild  N    ] games-misc/sex-1.0-r2
Comment 1 Toralf Förster gentoo-dev 2022-09-18 13:22:03 UTC
Created attachment 811540 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 13:22:05 UTC
Created attachment 811543 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-18 13:22:06 UTC
Created attachment 811546 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-18 13:22:07 UTC
Created attachment 811549 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-18 13:22:08 UTC
Created attachment 811552 [details]
games-misc:sex-1.0-r2:20220918-125216.log
Comment 6 Toralf Förster gentoo-dev 2022-09-18 13:22:09 UTC
Created attachment 811555 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-09-27 22:21:14 UTC
The bug has been closed via the following commit(s):

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

commit ce74c55992aec2610226e83a99eb8b56ce3ca32c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-27 21:51:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-27 21:51:27 +0000

    games-misc/sex: fix implicit function decls
    
    Closes: https://bugs.gentoo.org/871414
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/sex-1.0-Add-missing-string.h-for-strcmp.patch   | 15 +++++++++++++++
 games-misc/sex/{sex-1.0-r2.ebuild => sex-1.0-r3.ebuild}   |  9 +++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)