Skip Menu |
 

To: krb5-bugs@mit.edu
From: "Ryan Schmidt" <ryandesign@macports.org>
Subject: make check fails: OSError: AF_UNIX path too long
Date: Sat, 31 Jul 2021 21:00:16 -0500
Attempting to run `make check` fails on macOS:


*** Last command (#50): /opt/local/bin/python3.8 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.19.2/src/tests/kcmserver.py /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.19.2/src/tests/testdir/kcm
*** Output of last command:
Traceback (most recent call last):
File "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.19.2/src/tests/kcmserver.py", line 231, in <module>
server.bind(sys.argv[1])
OSError: AF_UNIX path too long


It seems you are trying to create a socket within the source directory, which fails if the source directory is in a deep path because there is an OS limit on the maximum length of a socket path. Perhaps you should create the socket in /tmp or $TMPDIR instead.
From: ghudson@mit.edu
Subject: git commit

Avoid long socket paths in KCM tests

The build directory path may be too long for a Unix domain socket, so
use a path in a temporary directory instead. Reported by Ryan
Schmidt.

https://github.com/krb5/krb5/commit/35fac31b7645e14d75200d31c631a8530c9b855c
Author: Greg Hudson <ghudson@mit.edu>
Commit: 35fac31b7645e14d75200d31c631a8530c9b855c
Branch: master
src/tests/t_ccache.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)