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

Bug 874417

Summary: www-apache/mod_rpaf-0.8.4 - mod_rpaf.c: error: call to undeclared function apr_inet_addr; ISO C99
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=870004
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2
www-apache:mod_rpaf-0.8.4:20221002-225822.log

Description Toralf Förster gentoo-dev 2022-10-03 07:57:14 UTC
      comparison
        if (mask = ap_strchr(ip, '/')) {
                 ^
                 ==
mod_rpaf.c:209:48: error: call to undeclared function 'apr_inet_addr'; 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 e8e29df7377eeab512ce76c90af9d3b810edc07f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 21:17:02 2022 +0000

    2022-10-02 21:17:02 UTC

emerge -qpvO www-apache/mod_rpaf
[ebuild  N    ] www-apache/mod_rpaf-0.8.4
Comment 1 Toralf Förster gentoo-dev 2022-10-03 07:57:16 UTC
Created attachment 816436 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 07:57:17 UTC
Created attachment 816439 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-03 07:57:18 UTC
Created attachment 816442 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-03 07:57:19 UTC
Created attachment 816445 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-03 07:57:20 UTC
Created attachment 816448 [details]
temp.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 07:57:21 UTC
Created attachment 816451 [details]
www-apache:mod_rpaf-0.8.4:20221002-225822.log
Comment 7 Ionen Wolkens gentoo-dev 2022-10-15 17:42:55 UTC
Haven't dug further into reproducing but think(?) the problem is in dev-libs/apr?

The header should always be included that I can see (through httpd.h), and for this to be missing would need both APR_HAVE_INET_ADDR and APR_HAVE_INET_NETWORK to be unset (likely failed tests).

(reminder need to build apache with clang to use it here, it saves the CC value then)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-16 21:48:35 UTC
(In reply to Ionen Wolkens from comment #7)
> Haven't dug further into reproducing but think(?) the problem is in
> dev-libs/apr?
> 
> The header should always be included that I can see (through httpd.h), and
> for this to be missing would need both APR_HAVE_INET_ADDR and
> APR_HAVE_INET_NETWORK to be unset (likely failed tests).
> 

Yep, both those tests were broken as they were:
1. missing includes;
2. called before the check for arpa/net.h

Fixed now.