[MacPorts] #59714: py38-gssapi: OSError: dlopen(libgssapi_krb5.so, 6): image not found
MacPorts
noreply at macports.org
Sun Nov 17 16:48:04 UTC 2019
#59714: py38-gssapi: OSError: dlopen(libgssapi_krb5.so, 6): image not found
---------------------------------------+--------------------------
Reporter: ryandesign | Owner: tobypeterson
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Keywords: tiger leopard snowleopard | Port: py-gssapi
---------------------------------------+--------------------------
[https://build.macports.org/builders/ports-10.6_i386-builder/builds/3562/steps
/install-port/logs/stdio py38-gssapi fails to build on 10.6]:
{{{
Building from Cython files...
Traceback (most recent call last):
File "setup.py", line 173, in <module>
GSSAPI_LIB = ctypes.CDLL(os.path.join(main_path, main_lib))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py",
line 369, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libgssapi_krb5.so, 6): image not found
}}}
Ignoring the unusual .so suffix for a moment, what seems to be happening
is that (from setup.py) py-gssapi uses the macOS GSS framework on 10.7 and
later:
{{{
osx_has_gss_framework = False
if sys.platform == 'darwin':
mac_ver = [int(v) for v in platform.mac_ver()[0].split('.')]
osx_has_gss_framework = (mac_ver >= [10, 7, 0])
}}}
{{{
if osx_has_gss_framework:
link_args = ['-framework', 'GSS']
}}}
{{{
else:
link_args = shlex.split(get_output('krb5-config --libs gssapi'))
}}}
So I think this means a dependency on port:kerberos5 should be added if
`{${os.platform} eq "darwin" && ${os.major} < 11}`.
--
Ticket URL: <https://trac.macports.org/ticket/59714>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list