Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933360 - dev-libs/libdnet-1.18.0-r1 - [gcc-15] ./dnet.c: error: passing argument 2 of PyObject_AsReadBuffer from incompatible pointer type [-Wincompatible-pointer-types
Summary: dev-libs/libdnet-1.18.0-r1 - [gcc-15] ./dnet.c: error: passing argument 2 of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 951700 951719 (view as bug list)
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-06-01 09:49 UTC by Toralf Förster
Modified: 2025-04-10 10:19 UTC (History)
7 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.35 KB, text/plain)
2024-06-01 09:49 UTC, Toralf Förster
Details
dev-libs:libdnet-1.18.0-r1:20240601-091306.log (dev-libs:libdnet-1.18.0-r1:20240601-091306.log,35.63 KB, text/plain)
2024-06-01 09:49 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,102.17 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
environment (environment,175.65 KB, text/plain)
2024-06-01 09:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1020 bytes, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,38.30 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.21 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,103.39 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
emerge --info (emerge_info.txt,7.19 KB, text/plain)
2025-03-25 14:17 UTC, yesi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-06-01 09:49:14 UTC
      |   ^~~~~~~~~
In file included from /usr/include/python3.11/Python.h:100,
                 from ./dnet.c:50:
/usr/include/python3.11/abstract.h:343:17: note: declared here
  343 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
      |                 ^~~~~~~~~~~~~~~~~~~~~
./dnet.c:8455:52: error: passing argument 2 of PyObject_AsReadBuffer from incompatible pointer type [-Wincompatible-pointer-types]
 8455 |   __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_pkt, (&__pyx_v_p), (&__pyx_v_n)) == 0);
      |                                                   ~^~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20240521-204002

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.6
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.78.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.23_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
3)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit 942889d8f9ed0574263415dd7bcf1e1a62ab9fd4
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jun 1 08:21:02 2024 +0000

    2024-06-01 08:21:01 UTC

emerge -qpvO dev-libs/libdnet
[ebuild  N    ] dev-libs/libdnet-1.18.0-r1  USE="python -debug -test" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
Comment 1 Toralf Förster gentoo-dev 2024-06-01 09:49:15 UTC
Created attachment 894858 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-06-01 09:49:16 UTC
Created attachment 894859 [details]
dev-libs:libdnet-1.18.0-r1:20240601-091306.log
Comment 3 Toralf Förster gentoo-dev 2024-06-01 09:49:17 UTC
Created attachment 894860 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-06-01 09:49:18 UTC
Created attachment 894861 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-06-01 09:49:19 UTC
Created attachment 894862 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-06-01 09:49:20 UTC
Created attachment 894863 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-06-01 09:49:21 UTC
Created attachment 894864 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-06-01 09:49:22 UTC
Created attachment 894865 [details]
qlist-info.txt.xz
Comment 9 NHO 2025-02-08 08:12:49 UTC
upstream bug https://github.com/ofalk/libdnet/issues/95
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-21 09:36:19 UTC
*** Bug 951700 has been marked as a duplicate of this bug. ***
Comment 11 Stefan Cristian Brindusa 2025-03-21 09:38:41 UTC
*** Bug 951700 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2025-03-21 11:05:54 UTC
The bug has been closed via the following commit(s):

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

commit e9b545ca3f8003b8d51c0844e9862158a88adc41
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2025-03-21 10:43:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-21 11:05:34 +0000

    dev-libs/libdnet: fix error on incompatible-function-pointer-types
    
    no repsonse from upstream for the PR after 30 days
    
    Closes: https://bugs.gentoo.org/933360
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/41209
    Signed-off-by: Sam James <sam@gentoo.org>

 ...-1.18.0-fix-incompatible-function-pointer.patch | 110 +++++++++++++++++++++
 dev-libs/libdnet/libdnet-1.18.0-r2.ebuild          | 102 +++++++++++++++++++
 2 files changed, 212 insertions(+)
Comment 13 yesi 2025-03-25 14:12:41 UTC
I still have the same issue with:
- dev-libs/libdnet-1.18.0-r1
- dev-libs/libdnet-1.18.0-r2

Dans le fichier inclus depuis ../include/dnet.h:27:
../include/dnet/fw.h:50:38: note: « fw_handler » {alias « int (*)(const struct fw_rule *, void *) »} attendu mais l'argument est de type « int (*)(struct fw_rule *, void *) »
   50 | int      fw_loop(fw_t *f, fw_handler callback, void *arg);
      |                           ~~~~~~~~~~~^~~~~~~~
error: command '/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
 * ERROR: dev-libs/libdnet-1.18.0-r1::gentoo failed (compile phase):
 *   Wheel build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4074:  Called distutils-r1_src_compile
 *   environment, line 2029:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  733:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3689:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3244:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3242:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1174:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 2011:  Called distutils-r1_python_compile
 *   environment, line 1833:  Called distutils_pep517_install '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/work/libdnet-libdnet-1.18.0-python3_12/install'
 *   environment, line 2361:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libdnet-1.18.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libdnet-1.18.0-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-libs:libdnet-1.18.0-r1:20250325-141014.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/work/libdnet-libdnet-1.18.0/python'
 * S: '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/work/libdnet-libdnet-1.18.0'
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (dev-libs/libdnet-1.18.0-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/dev-libs:libdnet-1.18.0-r1:20250325-141014.log'
 *



/usr/include/python3.12/abstract.h:371:51: note: « Py_ssize_t * » {alias « long int * »} attendu mais l'argument est de type « int * »
  371 |                                       Py_ssize_t *buffer_len);
      |                                       ~~~~~~~~~~~~^~~~~~~~~~
./dnet.c: Dans la fonction « __pyx_pf_4dnet_14ip_cksum_add »:
./dnet.c:8743:3: attention: « PyObject_AsReadBuffer » est obsolète [-Wdeprecated-declarations]
 8743 |   __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_buf, (&__pyx_v_p), (&__pyx_v_n)) == 0);
      |   ^~~~~~~~~
/usr/include/python3.12/abstract.h:369:17: note: déclaré ici
  369 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
      |                 ^~~~~~~~~~~~~~~~~~~~~
./dnet.c:8743:52: erreur: passage de l'argument 2 de « PyObject_AsReadBuffer » depuis un type pointeur incompatible [-Wincompatible-pointer-types]
 8743 |   __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_buf, (&__pyx_v_p), (&__pyx_v_n)) == 0);
      |                                                   ~^~~~~~~~~~~
      |                                                    |
      |                                                    char **
/usr/include/python3.12/abstract.h:370:52: note: « const void ** » attendu mais l'argument est de type « char ** »
  370 |                                       const void **buffer,
      |                                       ~~~~~~~~~~~~~^~~~~~
./dnet.c:8743:66: erreur: passage de l'argument 3 de « PyObject_AsReadBuffer » depuis un type pointeur incompatible [-Wincompatible-pointer-types]
 8743 |   __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_buf, (&__pyx_v_p), (&__pyx_v_n)) == 0);
      |                                                                 ~^~~~~~~~~~~
      |                                                                  |
      |                                                                  int *
/usr/include/python3.12/abstract.h:371:51: note: « Py_ssize_t * » {alias « long int * »} attendu mais l'argument est de type « int * »
  371 |                                       Py_ssize_t *buffer_len);
      |                                       ~~~~~~~~~~~~^~~~~~~~~~
error: command '/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
 * ERROR: dev-libs/libdnet-1.18.0-r2::gentoo failed (compile phase):
 *   Wheel build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4090:  Called distutils-r1_src_compile
 *   environment, line 2045:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  734:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3705:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3260:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3258:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1190:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 2027:  Called distutils-r1_python_compile
 *   environment, line 1849:  Called distutils_pep517_install '/var/tmp/portage/dev-libs/libdnet-1.18.0-r2/work/libdnet-libdnet-1.18.0-python3_12/install'
 *   environment, line 2377:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libdnet-1.18.0-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libdnet-1.18.0-r2::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-libs:libdnet-1.18.0-r2:20250325-133920.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libdnet-1.18.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libdnet-1.18.0-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libdnet-1.18.0-r2/work/libdnet-libdnet-1.18.0/python'
 * S: '/var/tmp/portage/dev-libs/libdnet-1.18.0-r2/work/libdnet-libdnet-1.18.0'
Comment 14 yesi 2025-03-25 14:17:25 UTC
Created attachment 922739 [details]
emerge --info
Comment 15 Zhixu Liu 2025-03-26 03:07:22 UTC
ok, seems I did test with clang only, :(
will try to fix gcc issue
Comment 16 yesi 2025-03-31 10:52:15 UTC
Please change the status of the bug since it is not "RESOLVED FIXED"
Comment 17 Zhixu Liu 2025-04-03 08:35:52 UTC
*** Bug 951719 has been marked as a duplicate of this bug. ***
Comment 18 Zhixu Liu 2025-04-03 08:41:30 UTC
please have a test with PR41442

I did the test with gcc 14 & clang 19 only
Comment 19 yesi 2025-04-04 16:08:10 UTC
=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-14.2.1_p20241221::gentoo was built with the following:
USE="cet (cxx) (default-stack-clash-protection) (default-znow) fortran hardened (multilib) nls openmp (pie) sanitize (ssp) zstd -ada (-custom-cflags) -d -debug -doc (-fixed-point) -go -graphite (-ieee-long-double) -jit (-libssp) -lto -modula2 -objc -objc++ -objc-gc (-pch) -pgo -rust -systemtap -test (-time64) -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-march=alderlake -pipe -O2"
CXXFLAGS="-march=alderlake -pipe -O2"


llvm-core/clang-15.0.7-r3::gentoo was built with the following:
USE="extra (pie) static-analyzer xml -debug (-doc) (-ieee-long-double) -test -verify-sig" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-DirectX) (-LoongArch) (-M68k) (-SPIRV)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"


llvm-core/clang-18.1.8-r6::gentoo was built with the following:
USE="extra (pie) static-analyzer xml -debug -doc (-ieee-long-double) -test -verify-sig" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"


llvm-core/clang-19.1.7::gentoo was built with the following:
USE="extra (pie) static-analyzer xml -debug -doc (-ieee-long-double) -test -verify-sig" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"


In file included from ../include/dnet.h:25:
../include/dnet/intf.h:64:44: note: expected ‘intf_handler’ {aka ‘int (*)(const struct intf_entry *, void *)’} but argument is of type ‘int (*)(struct intf_entry *, void *)’
   64 | int      intf_loop(intf_t *i, intf_handler callback, void *arg);
      |                               ~~~~~~~~~~~~~^~~~~~~~
./dnet.c: In function ‘__pyx_pf_4dnet_5route_8loop’:
./dnet.c:20353:68: error: passing argument 2 of ‘route_loop’ from incompatible pointer type [-Wincompatible-pointer-types]
20353 |   __pyx_t_1 = __Pyx_PyInt_From_int(route_loop(__pyx_v_self->route, __pyx_f_4dnet___route_callback, ((void *)__pyx_v__arg))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1159, __pyx_L1_error)
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                    |
      |                                                                    int (*)(struct route_entry *, void *)
In file included from ../include/dnet.h:26:
../include/dnet/route.h:34:47: note: expected ‘route_handler’ {aka ‘int (*)(const struct route_entry *, void *)’} but argument is of type ‘int (*)(struct route_entry *, void *)’
   34 | int      route_loop(route_t *r, route_handler callback, void *arg);
      |                                 ~~~~~~~~~~~~~~^~~~~~~~
./dnet.c: In function ‘__pyx_pf_4dnet_2fw_6loop’:
./dnet.c:22280:62: error: passing argument 2 of ‘fw_loop’ from incompatible pointer type [-Wincompatible-pointer-types]
22280 |   __pyx_t_1 = __Pyx_PyInt_From_int(fw_loop(__pyx_v_self->fw, __pyx_f_4dnet___fw_callback, ((void *)__pyx_v__arg))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1295, __pyx_L1_error)
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                              |
      |                                                              int (*)(struct fw_rule *, void *)
In file included from ../include/dnet.h:27:
../include/dnet/fw.h:50:38: note: expected ‘fw_handler’ {aka ‘int (*)(const struct fw_rule *, void *)’} but argument is of type ‘int (*)(struct fw_rule *, void *)’
   50 | int      fw_loop(fw_t *f, fw_handler callback, void *arg);
      |                           ~~~~~~~~~~~^~~~~~~~
error: command '/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
 * ERROR: dev-libs/libdnet-1.18.0-r1::gentoo failed (compile phase):
 *   Wheel build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4074:  Called distutils-r1_src_compile
 *   environment, line 2027:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  738:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3689:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3244:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3242:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1179:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 2009:  Called distutils-r1_python_compile
 *   environment, line 1832:  Called distutils_pep517_install '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/work/libdnet-libdnet-1.18.0-python3_12/install'
 *   environment, line 2360:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libdnet-1.18.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libdnet-1.18.0-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-libs:libdnet-1.18.0-r1:20250404-160303.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/work/libdnet-libdnet-1.18.0/python'
 * S: '/var/tmp/portage/dev-libs/libdnet-1.18.0-r1/work/libdnet-libdnet-1.18.0'

>>> Failed to emerge dev-libs/libdnet-1.18.0-r1, Log file:
Comment 20 Zhixu Liu 2025-04-05 03:31:27 UTC
(In reply to yesi from comment #19)
 
> >>> Failed to emerge dev-libs/libdnet-1.18.0-r1, Log file:

plese test with with libdnet-1.18.0-r2, and apply the patch in PR41442 (which is unmerged yet)
Comment 21 yesi 2025-04-07 10:29:28 UTC
> PR41442
With the patch, there's no errors.
Comment 22 Larry the Git Cow gentoo-dev 2025-04-10 10:19:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02082e65bf077083e7aac1214ced4d256c7cd3a2

commit 02082e65bf077083e7aac1214ced4d256c7cd3a2
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2025-04-03 08:32:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-10 10:17:13 +0000

    dev-libs/libdnet: fix errors on -Wincompatible-pointer-types
    
    update last patch which fix -Wincompatible-function-pointer-types for
    clang only
    
    Closes: https://bugs.gentoo.org/933360
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/41442
    Signed-off-by: Sam James <sam@gentoo.org>

 ...-1.18.0-fix-incompatible-function-pointer.patch | 77 +++++++++++++++++++++-
 1 file changed, 75 insertions(+), 2 deletions(-)