#69180 closed defect (fixed)

py-psutil @5.9.7 broken on < 10.13

Reported by: barracuda156 Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sierra, elcapitan, yosemite, mavericks, mountainlion, lion, snowleopard, haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: py310-psutil, py311-psutil, py312-psutil

Description

Fails locally:

/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=597 -DPy_LIMITED_API=0x03060000 -DPSUTIL_OSX=1 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c psutil/arch/osx/net.c -o build/temp.macosx-10.6-ppc-cpython-311/psutil/arch/osx/net.o
In file included from psutil/arch/osx/net.c:12:
//usr/include/net/if_dl.h:90: error: expected specifier-qualifier-list before ‘u_char’
psutil/arch/osx/net.c: In function ‘psutil_net_io_counters’:
psutil/arch/osx/net.c:67: error: ‘struct sockaddr_dl’ has no member named ‘sdl_data’
psutil/arch/osx/net.c:67: error: ‘struct sockaddr_dl’ has no member named ‘sdl_nlen’
psutil/arch/osx/net.c:67: error: ‘struct sockaddr_dl’ has no member named ‘sdl_data’
psutil/arch/osx/net.c:67: error: ‘struct sockaddr_dl’ has no member named ‘sdl_nlen’
psutil/arch/osx/net.c:68: error: ‘struct sockaddr_dl’ has no member named ‘sdl_nlen’
XCode (https://developer.apple.com/xcode/) is not installed
error: command '/usr/bin/gcc-4.2' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

Fails on buildbots: https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/257731/steps/install-port/logs/stdio

Change History (5)

comment:1 Changed 10 months ago by barracuda156

Summary: py-psutil @5.9.7 broken on < 10.12py-psutil @5.9.7 broken on < 10.13

comment:2 Changed 10 months ago by barracuda156

Opened an issue with upstream, since Intel builds are also broken: https://github.com/giampaolo/psutil/issues/2360

comment:3 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

I added a comment upstream and submitted a PR to fix this. There are other build failures after that which I'm looking into.

comment:4 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:5 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In fff32109541d6fd94bae0d5f0abeb9726c1e00ef/macports-ports (master):

py-psutil: Update to 5.9.8 and fix build on old macOS

Closes: #69180

Note: See TracTickets for help on using tickets.