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.
*** 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.