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

Bug 951719

Summary: dev-libs/libdnet-1.18.0-r2 - [gcc-15] ./dnet.c: error: passing argument 2 of PyObject_AsReadBuffer from incompatible pointer type [-Wincompatible-pointer-types]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED DUPLICATE    
Severity: normal CC: zhixu.liu
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=933360
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: emerge-info.txt
dev-libs:libdnet-1.18.0-r2:20250321-154131.log
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz

Description Toralf Förster gentoo-dev 2025-03-21 16:00:21 UTC
      |   ^~~~~~~~~
In file included from /usr/include/python3.12/Python.h:100,
                 from ./dnet.c:50:
/usr/include/python3.12/abstract.h:369:17: note: declared here
  369 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
      |                 ^~~~~~~~~~~~~~~~~~~~~
./dnet.c:8451:52: error: passing argument 2 of PyObject_AsReadBuffer from incompatible pointer type [-Wincompatible-pointer-types]
 8451 |   __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_hardened_systemd-20250317-083502

  KEYWORDED/UNMASKED

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.0
llvm-config: 20.1.0
Python 3.12.9
go version go1.24.1 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.0
  [2]   rust-bin-1.85.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.26_p4 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 9064919161b3917c145d5e447d0ddec451383c66
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Mar 21 14:35:29 2025 +0000

    2025-03-21 14:35:28 UTC

emerge -qpvO =dev-libs/libdnet-1.18.0-r2
[ebuild  N    ] dev-libs/libdnet-1.18.0-r2  USE="python -debug -test" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2025-03-21 16:00:23 UTC
Created attachment 921543 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-21 16:00:24 UTC
Created attachment 921544 [details]
dev-libs:libdnet-1.18.0-r2:20250321-154131.log
Comment 3 Toralf Förster gentoo-dev 2025-03-21 16:00:25 UTC
Created attachment 921545 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-03-21 16:00:26 UTC
Created attachment 921546 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-03-21 16:00:27 UTC
Created attachment 921547 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-21 16:00:28 UTC
Created attachment 921548 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-21 16:00:29 UTC
Created attachment 921549 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-21 16:00:30 UTC
Created attachment 921550 [details]
qlist-info.txt.xz
Comment 9 Zhixu Liu 2025-04-03 08:35:52 UTC

*** This bug has been marked as a duplicate of bug 933360 ***