Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874462 - games-roguelike/nethack-3.6.6 - ../.../wintty.c: error: call to undeclared function open; ISO C99
Summary: games-roguelike/nethack-3.6.6 - ../.../wintty.c: error: call to undeclared fu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-03 08:00 UTC by Toralf Förster
Modified: 2022-10-16 17:02 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.42 KB, text/plain)
2022-10-03 08:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,61.61 KB, text/plain)
2022-10-03 08:01 UTC, Toralf Förster
Details
environment (environment,94.37 KB, text/plain)
2022-10-03 08:01 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.28 KB, application/x-bzip)
2022-10-03 08:01 UTC, Toralf Förster
Details
games-roguelike:nethack-3.6.6:20221003-003439.log.bz2 (games-roguelike:nethack-3.6.6:20221003-003439.log.bz2,46.35 KB, application/x-bzip)
2022-10-03 08:01 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,70.81 KB, application/x-bzip)
2022-10-03 08:01 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-10-03 08:00:59 UTC
      is deprecated in all versions of C and is not supported in C2x
      [-Wdeprecated-non-prototype]
tty_display_file(fname, complain)
^
../win/tty/wintty.c:2802:27: error: call to undeclared function 'open'; 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_no_multilib-j4-20221002-135637

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

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

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

  HEAD of ::gentoo
commit f0563c90e636da833af43e4a5334c6ebddd3cf6a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 22:16:57 2022 +0000

    2022-10-02 22:16:57 UTC

emerge -qpvO games-roguelike/nethack
[ebuild  N    ] games-roguelike/nethack-3.6.6  USE="X"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 08:01:00 UTC
Created attachment 816742 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 08:01:01 UTC
Created attachment 816748 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-03 08:01:03 UTC
Created attachment 816751 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-03 08:01:03 UTC
Created attachment 816754 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-03 08:01:05 UTC
Created attachment 816757 [details]
games-roguelike:nethack-3.6.6:20221003-003439.log.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 08:01:06 UTC
Created attachment 816760 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-16 17:02:07 UTC
The bug has been closed via the following commit(s):

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

commit 8a3473c6b639d633ba9517468e01e5a268d99b14
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-10-16 16:27:06 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-10-16 16:59:05 +0000

    games-roguelike/nethack: fix build w/ clang16, pass -std=gnu89
    
    wrt -Wno-error, this has the same problem as net-misc/vncrec
    for which there's not much that can reasonably be done about
    here (and is harmless).
    
    Closes: https://bugs.gentoo.org/874462
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../nethack/files/nethack-3.6.6-clang16.patch      | 10 ++++++++++
 ...ethack-3.6.6.ebuild => nethack-3.6.6-r1.ebuild} | 22 +++++++++++++++++-----
 2 files changed, 27 insertions(+), 5 deletions(-)