Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871060 - net-misc/rinetd-0.62-r2 - rinetd.c: error: call to undeclared function close; ISO C99 and later do
Summary: net-misc/rinetd-0.62-r2 - rinetd.c: error: call to undeclared function close;...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 19:47 UTC by Toralf Förster
Modified: 2022-10-07 06:33 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.17 KB, text/plain)
2022-09-17 19:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,171.26 KB, text/plain)
2022-09-17 19:47 UTC, Toralf Förster
Details
environment (environment,56.62 KB, text/plain)
2022-09-17 19:47 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.07 KB, application/x-bzip)
2022-09-17 19:47 UTC, Toralf Förster
Details
net-misc:rinetd-0.62-r2:20220917-193323.log (net-misc:rinetd-0.62-r2:20220917-193323.log,4.56 KB, text/plain)
2022-09-17 19:47 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.62 KB, application/x-bzip)
2022-09-17 19:47 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-17 19:47:03 UTC
>>> Compiling source in /var/tmp/portage/net-misc/rinetd-0.62-r2/work/rinetd ...
make -j4 'CFLAGS=-pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DLINUX' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' 
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DLINUX   -c -o rinetd.o rinetd.c
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DLINUX   -c -o match.o match.c
rinetd.c:34:9: error: call to undeclared function 'close'; 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 78185165c7aea7b08b0daedeff77e4b4059016d4
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 18:31:52 2022 +0000

    2022-09-17 18:31:52 UTC

emerge -qpvO net-misc/rinetd
[ebuild  N    ] net-misc/rinetd-0.62-r2
Comment 1 Toralf Förster gentoo-dev 2022-09-17 19:47:04 UTC
Created attachment 809557 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 19:47:06 UTC
Created attachment 809560 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-17 19:47:07 UTC
Created attachment 809563 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-17 19:47:08 UTC
Created attachment 809566 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-17 19:47:08 UTC
Created attachment 809569 [details]
net-misc:rinetd-0.62-r2:20220917-193323.log
Comment 6 Toralf Förster gentoo-dev 2022-09-17 19:47:09 UTC
Created attachment 809572 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-07 06:33:38 UTC
The bug has been closed via the following commit(s):

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

commit 874b65e9b877024e66d0ed0a753440aafe59afcb
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-10-07 06:29:29 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-10-07 06:33:12 +0000

    net-misc/rinetd: fix build with upcoming clang16
    
    Bit ackward to patch due to weird mix of line terminator types
    within the same file, but this is just missing includes.
    
    Closes: https://bugs.gentoo.org/871060
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 net-misc/rinetd/files/rinetd-0.62-clang16.patch               | 11 +++++++++++
 .../rinetd/{rinetd-0.62-r2.ebuild => rinetd-0.62-r3.ebuild}   |  4 ++++
 2 files changed, 15 insertions(+)