cat Makefile.Linux > src/Makefile.var make[1]: Entering directory '/var/tmp/portage/net-proxy/3proxy-0.9.0/work/3proxy-0.9.0/src' make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER -fPIC -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER common.c common.c:208:2: error: incompatible function pointer types initializing 'int (*)(struct pollfd *, unsigned int, int)' with an expression of type 'int (struct pollfd *, nfds_t, int)' (aka 'int (struct pollfd *, unsigned long, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-j4-20221111-010005 ------------------------------------------------------------------- GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe" GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle" CC=clang CXX=clang++ gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.4 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.4 Python 3.10.8 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.65.0 * The following VMs are available for generation-2: 1) OpenJDK 17.0.5_p8 [openjdk-17] *) Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17] 3) Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8] 4) Eclipse Temurin JRE 17.0.5_p8 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] openjdk-17 [2] openjdk-bin-8 [3] openjdk-bin-17 system-vm [4] openjdk-jre-bin-17 php cli (if any): [1] php8.1 * HEAD of ::gentoo commit 50981ac2023e8bf2fa65fd343cd7a370b3266d4b Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Nov 11 17:46:50 2022 +0000 2022-11-11 17:46:50 UTC emerge -qpvO net-proxy/3proxy [ebuild N ] net-proxy/3proxy-0.9.0
Created attachment 831587 [details] emerge-info.txt
Created attachment 831589 [details] emerge-history.txt
Created attachment 831591 [details] environment
Created attachment 831593 [details] etc.clang.tar.bz2
Created attachment 831595 [details] etc.portage.tar.bz2
Created attachment 831597 [details] net-proxy:3proxy-0.9.0:20221111-185731.log
Created attachment 831599 [details] temp.tar.bz2
Sorry, I've no idea how to reproduce this - on my system it builds okay. Can you please give me some hints about this? At a glance problem might be in using clang instead of gcc, and the error itself looks a bit weird - function pointer types probably shouldn't change because of different compiler (I'm not a C developer, so I might miss something here).
(In reply to Alex Efros from comment #8) > Sorry, I've no idea how to reproduce this - on my system it builds okay. > Can you please give me some hints about this? > > At a glance problem might be in using clang instead of gcc, and the error > itself looks a bit weird - function pointer types probably shouldn't change > because of different compiler (I'm not a C developer, so I might miss > something here). Clang 16 makes -Wincompatible-function-pointer-types an error by default. GCC doesn't have this specific warning, but it does have -Wincompatible-pointer-types.
It's OK to not know how to fix it yourself (I'm working on docs to help folks though), but please report it upstream & cross link the bugs. Thank you!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d962742de92d136470b6a3dd2c4e6727ffa2ff commit 20d962742de92d136470b6a3dd2c4e6727ffa2ff Author: Petr Vaněk <arkamar@atlas.cz> AuthorDate: 2023-03-21 14:02:28 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-22 01:19:09 +0000 net-proxy/3proxy: add 0.9.4 - EAPI bump - update HOMEPAGE and SRC_URI - update gentoo patch - add fix for clang-16 [1,2] - remove src_compile phase, CC is now exported in src_prepare, LN is not needed anymore as it is set to $(CC) by default. [1] https://github.com/3proxy/3proxy/issues/895 [2] https://github.com/3proxy/3proxy/pull/907 Closes: https://bugs.gentoo.org/881015 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/30287 Signed-off-by: Sam James <sam@gentoo.org> net-proxy/3proxy/3proxy-0.9.4.ebuild | 47 ++++++++++++++++++ net-proxy/3proxy/Manifest | 1 + .../files/3proxy-0.9.4-function-pointer-fix.patch | 58 ++++++++++++++++++++++ net-proxy/3proxy/files/3proxy-0.9.4-gentoo.patch | 38 ++++++++++++++ 4 files changed, 144 insertions(+)