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
Created attachment 816436 [details] emerge-info.txt
Created attachment 816439 [details] emerge-history.txt
Created attachment 816442 [details] environment
Created attachment 816445 [details] etc.portage.tar.bz2
Created attachment 816448 [details] temp.tar.bz2
Created attachment 816451 [details] www-apache:mod_rpaf-0.8.4:20221002-225822.log
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)
(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.