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

Bug 874930

Summary: sys-apps/tcp-wrappers-7.6.31 - tcpdmatch.c: error: call to undeclared library function free with type void (void ); ISO C99 and la
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
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
sys-apps:tcp-wrappers-7.6.31:20221004-003813.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-04 16:26:42 UTC
                     ^
tcpdmatch.c:183:26: warning: passing arguments to 'find_inet_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        if ((hp = find_inet_addr(server)) == 0)
                                ^
tcpdmatch.c:217:2: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
        free((char *) hp);
        ^

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

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

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

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 *
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 45199178c8273e968cb989d06dd6cc948dcb202e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 00:30:15 2022 +0000

    2022-10-04 00:30:14 UTC

emerge -qpvO sys-apps/tcp-wrappers
[ebuild  N    ] sys-apps/tcp-wrappers-7.6.31  USE="(split-usr) -ipv6 -netgroups" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:26:43 UTC
Created attachment 818764 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:26:44 UTC
Created attachment 818767 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:26:45 UTC
Created attachment 818770 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:26:46 UTC
Created attachment 818773 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:26:48 UTC
Created attachment 818776 [details]
sys-apps:tcp-wrappers-7.6.31:20221004-003813.log
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:26:49 UTC
Created attachment 818779 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-07 08:24:18 UTC
The bug has been closed via the following commit(s):

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

commit 8b229644eb2db5b094321228ec2b2474922e53a5
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-10-07 08:24:06 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-10-07 08:24:06 +0000

    sys-apps/tcp-wrappers: fix C99 decls
    
    Closes: https://bugs.gentoo.org/874930
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-apps/tcp-wrappers/Manifest                     |  1 +
 .../files/tcp-wrappers-7.6-redhat-bug11881.patch   | 35 ----------------------
 .../tcp-wrappers-7.6.28-no-external-malloc.patch   | 15 ----------
 sys-apps/tcp-wrappers/tcp-wrappers-7.6.31.ebuild   |  9 +++---
 4 files changed, 5 insertions(+), 55 deletions(-)