[MacPorts] #72017: py313-krb5 @0.7.0: OSError: dlopen(libkrb5.so, 6): image not found (was: py313-krb5 fails to build: OSError: dlopen(libkrb5.so, 6): image not found)

MacPorts noreply at macports.org
Fri Feb 7 23:06:17 UTC 2025


#72017: py313-krb5 @0.7.0: OSError: dlopen(libkrb5.so, 6): image not found
---------------------------+-------------------------
  Reporter:  barracuda156  |      Owner:  petrrr
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:  snowleopard
      Port:  py313-krb5    |
---------------------------+-------------------------
Changes (by ryandesign):

 * keywords:   => snowleopard


Comment:

 libkrb5.dylib is shipped with macOS by Apple. However libkrb5.so doesn't
 appear to be, so indeed it seems like this shouldn't work. And if we were
 to want to use MacPorts libraries, then `dlopen` would have to specify the
 absolute path to the library it's opening.

 We did get this same build failure on the Mac OS X 10.6 i386 buildbot
 worker but it succeeded on macOS 12 arm64 and macOS 13 x86_64 (and was not
 attempted on other builders since the port is marked `platforms {darwin
 any}`) so the build may be going through a different code path on older
 systems.

 In the 10.6 build I see:
 {{{
 Using libkrb5.so as Kerberos module for platform checks
 }}}
 whereas on macOS 12 and 13 I see:
 {{{
 Using /System/Library/PrivateFrameworks/Heimdal.framework/Heimdal as
 Kerberos module for platform checks
 }}}
 This difference probably means that the port shouldn't be `{darwin any}`
 after all. If that's changed, the revision must be increased too.

-- 
Ticket URL: <https://trac.macports.org/ticket/72017#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list