[MacPorts] #72518: py313-libdnet fails to build: error: implicit declaration of function 'PyObject_AsReadBuffer'; did you mean 'PyObject_GetBuffer'? [-Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Wed May 21 10:03:20 UTC 2025
#72518: py313-libdnet fails to build: error: implicit declaration of function
'PyObject_AsReadBuffer'; did you mean 'PyObject_GetBuffer'? [-Wimplicit-
function-declaration]
--------------------------+---------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Keywords: | Port: py313-libdnet
--------------------------+---------------------------
{{{
---> Configuring py313-libdnet
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
libdnet/py313-libdnet/work/libdnet-1.18.0" && ./configure
--prefix=/opt/local --with-check=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... powerpc-apple-darwin10.8.0
checking host system type... powerpc-apple-darwin10.8.0
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... /opt/local/bin/gcc-mp-14
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /opt/local/bin/gcc-mp-14 accepts -g... yes
checking for /opt/local/bin/gcc-mp-14 option to enable C11 features...
none needed
checking whether /opt/local/bin/gcc-mp-14 understands -c and -o
together... yes
checking dependency style of /opt/local/bin/gcc-mp-14... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /opt/local/bin/gcc-mp-14... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm
checking the name lister (/opt/local/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert powerpc-apple-darwin10.8.0 file names to powerpc-
apple-darwin10.8.0 format... func_convert_file_noop
checking how to convert powerpc-apple-darwin10.8.0 file names to toolchain
format... func_convert_file_noop
checking for /opt/local/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm output from /opt/local/bin
/gcc-mp-14 object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /opt/local/bin/gcc-mp-14 supports -fno-rtti -fno-exceptions...
no
checking for /opt/local/bin/gcc-mp-14 option to produce PIC... -fno-common
-DPIC
checking if /opt/local/bin/gcc-mp-14 PIC flag -fno-common -DPIC works...
yes
checking if /opt/local/bin/gcc-mp-14 static flag -static works... no
checking if /opt/local/bin/gcc-mp-14 supports -c -o file.o... yes
checking if /opt/local/bin/gcc-mp-14 supports -c -o file.o... (cached) yes
checking whether the /opt/local/bin/gcc-mp-14 linker (/opt/local/bin/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) /opt/local/bin/gcc-mp-14
checking whether the compiler supports GNU C... (cached) yes
checking whether /opt/local/bin/gcc-mp-14 accepts -g... (cached) yes
checking for /opt/local/bin/gcc-mp-14 option to enable C11 features...
(cached) none needed
checking whether /opt/local/bin/gcc-mp-14 understands -c and -o
together... (cached) yes
checking dependency style of /opt/local/bin/gcc-mp-14... (cached) none
checking for Python... checking for gethostbyname... yes
checking for socket... yes
checking for putmsg in -lstr... no
checking for open_mib in -lnm... no
checking for Check... checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
no
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for sys/bufmod.h... no
checking for sys/dlpi.h... no
checking for sys/dlpihdr.h... no
checking for sys/dlpi_ext.h... no
checking for sys/ioctl.h... yes
checking for sys/mib.h... no
checking for sys/ndd_var.h... no
checking for sys/socket.h... yes
checking for sys/sockio.h... yes
checking for sys/sysctl.h... yes
checking for sys/time.h... yes
checking for net/bpf.h... yes
checking for net/if.h... no
checking for net/if_var.h... yes
checking for net/if_arp.h... yes
checking for net/if_dl.h... yes
checking for net/pfilt.h... no
checking for net/pfvar.h... no
checking for net/radix.h... no
checking for net/raw.h... no
checking for net/route.h... yes
checking for netinet/in_var.h... no
checking for net/if_tun.h... no
checking for linux/if_tun.h... no
checking for netinet/ip_fw.h... no
checking for linux/ip_fw.h... no
checking for linux/ip_fwchains.h... no
checking for linux/netfilter_ipv4/ipchains_core.h... no
checking for ip_fil_compat.h... no
checking for netinet/ip_fil_compat.h... no
checking for ip_compat.h... no
checking for netinet/ip_compat.h... no
checking for ip_fil.h... no
checking for netinet/ip_fil.h... no
checking for hpsecurity.h... no
checking for stropts.h... no
checking for bsd/string.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for sockaddr_in6 struct in <netinet/in.h>... yes
checking for sa_len in sockaddr struct... yes
checking for arp_dev in arpreq struct... no
checking for rt_msghdr struct in <net/route.h>... yes
checking for working memcmp... yes
checking for err... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strsep... yes
checking for Berkeley Packet Filter... no
checking for Linux proc filesystem... no
checking for Linux PF_PACKET sockets... no
checking for SNMP MIB2 STREAMS... no
checking for route(7) STREAMS... no
checking for arp(7) ioctls... no
checking for raw IP sockets ip_{len,off} host byte ordering... yes
checking for cooked raw IP sockets... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dnet-config
config.status: creating include/Makefile
config.status: creating include/dnet/Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating python/dnet.pxd
config.status: creating test/Makefile
config.status: creating test/check/Makefile
config.status: creating test/dnet/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
---> Building py313-libdnet
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
libdnet/py313-libdnet/work/libdnet-1.18.0/python" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
-m build --no-isolation --wheel --outdir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-libdnet/py313-libdnet/work
* Getting build dependencies for wheel...
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
warning: dnet.pyx:54:0: Global name __iter_append matched from within
class scope in contradiction to to Python 'class private name' rules. This
may change in a future release.
Compiling ./dnet.pyx because it changed.
[1/1] Cythonizing ./dnet.pyx
running egg_info
creating dnet.egg-info
writing dnet.egg-info/PKG-INFO
writing dependency_links to dnet.egg-info/dependency_links.txt
writing top-level names to dnet.egg-info/top_level.txt
writing manifest file 'dnet.egg-info/SOURCES.txt'
dependency ../include/dnet.h won't be automatically included in the
manifest: the path can't have `..` segments
reading manifest file 'dnet.egg-info/SOURCES.txt'
writing manifest file 'dnet.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_ext
building 'dnet' extension
creating build/temp.macosx-10.6-ppc-cpython-313
/opt/local/bin/gcc-mp-14 -Os -arch ppc -isysroot/ -I../include
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13
-c ./dnet.c -o build/temp.macosx-10.6-ppc-cpython-313/dnet.o
./dnet.c: In function '__pyx_pf_4dnet_12ip_checksum':
./dnet.c:8441:16: error: implicit declaration of function
'PyObject_AsReadBuffer'; did you mean 'PyObject_GetBuffer'? [-Wimplicit-
function-declaration]
8441 | __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_pkt, (&__pyx_v_p),
(&__pyx_v_n)) == 0);
| ^~~~~~~~~~~~~~~~~~~~~
| PyObject_GetBuffer
./dnet.c: In function '__pyx_f_4dnet___intf_callback':
./dnet.c:17643:43: warning: passing argument 1 of
'__pyx_f_4dnet_ifent_to_dict' discards 'const' qualifier from pointer
target type [-Wdiscarded-qualifiers]
17643 | __pyx_t_3 = __pyx_f_4dnet_ifent_to_dict(__pyx_v_entry); if
(unlikely(!__pyx_t_3)) __PYX_ERR(0, 975, __pyx_L1_error)
| ^~~~~~~~~~~~~
./dnet.c:16954:65: note: expected 'struct intf_entry *' but argument is of
type 'const struct intf_entry *'
16954 | static PyObject *__pyx_f_4dnet_ifent_to_dict(struct intf_entry
*__pyx_v_entry) {
|
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
./dnet.c: In function '__pyx_f_4dnet___fw_callback':
./dnet.c:21538:42: warning: passing argument 1 of
'__pyx_f_4dnet_rule_to_dict' discards 'const' qualifier from pointer
target type [-Wdiscarded-qualifiers]
21538 | __pyx_t_3 = __pyx_f_4dnet_rule_to_dict(__pyx_v_rule); if
(unlikely(!__pyx_t_3)) __PYX_ERR(0, 1240, __pyx_L1_error)
| ^~~~~~~~~~~~
./dnet.c:20776:61: note: expected 'struct fw_rule *' but argument is of
type 'const struct fw_rule *'
20776 | static PyObject *__pyx_f_4dnet_rule_to_dict(struct fw_rule
*__pyx_v_rule) {
|
~~~~~~~~~~~~~~~~^~~~~~~~~~~~
error: command '/opt/local/bin/gcc-mp-14' failed with exit code 1
ERROR Backend subprocess exited when trying to invoke build_wheel
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
libdnet/py313-libdnet/work/libdnet-1.18.0/python" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
-m build --no-isolation --wheel --outdir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-libdnet/py313-libdnet/work
Exit code: 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72518>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list