[MacPorts] #32391: Lion: cyrus-sasl @2.1.23_3+kerberos causes Incompatible library version: LDAP requires version 3.0.0 or later, but libsasl2.2.dylib provides version 0.0.0

MacPorts noreply at macports.org
Sat Mar 17 10:18:42 PDT 2012


#32391: Lion: cyrus-sasl @2.1.23_3+kerberos causes Incompatible library version:
LDAP requires version 3.0.0 or later, but libsasl2.2.dylib provides version
0.0.0
--------------------------------------+-------------------------------------
 Reporter:  nelson.ferreira@…         |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  Normal                    |   Milestone:                                       
Component:  ports                     |     Version:  2.0.3                                
 Keywords:                            |        Port:                                       
--------------------------------------+-------------------------------------

Comment(by kato23@…):

 The error is from the buggy pattern matching of a  {{{case}}}  command in
 {{{cyrus-sasl-2.1.23/config/ltconfig}}}  where (on my machine) {{{case
 "$host_os" in ... darwin[15]* | rhapsody*)}}} unfortunately matches
 {{{i386-apple-darwin10.8.0}}} . The matching expression of the {{{case}}}
 command has to be altered to {{{darwin[15].* | rhapsody*)}}}  to prevent
 this (see http://en.wikipedia.org/wiki/Darwin_(operating_system) for a
 list of Darwin kernel version numbers).

 The same faulty pattern matching code can be found in {{{cyrus-
 sasl-2.1.23/saslauthd/config/ltconfig}}} although it does not seem to
 cause any error there.

 To replace your wrongly versioned {{{libsasl2.dylib}}} with a correctly
 versioned one try the following:

 {{{
 sudo port -f uninstall cyrus-sasl2
 sudo port clean --all cyrus-sasl2
 sudo port extract cyrus-sasl2
 cd "$(port dir cyrus-sasl2)"/work/cyrus-sasl-2.1.23

 /bin/sh config/config.guess  # i386-apple-darwin10.8.0
 sudo /bin/sh -c 'config/ltconfig config/ltmain.sh'

 printf '%s\n' H '/\(darwin\[15\]\)/s//\1./g' wq | sudo ed -s
 config/ltconfig
 printf '%s\n' H '/\(darwin\[15\]\)/s//\1./g' wq | sudo ed -s
 saslauthd/config/ltconfig

 sudo port -f -s install cyrus-sasl2

 otool -L /opt/local/lib/libsasl2.dylib
 # /opt/local/lib/libsasl2.dylib:
 #         /opt/local/lib/libsasl2.2.dylib (compatibility version 3.0.0,
 current version 3.23.0)
 #         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 125.2.11)
 #         /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current
 version 41.1.0)

 # check for further wrongly versioned dylibs
 otool -L /opt/local/lib/*.dylib |
    grep 'compatibility version 0.0.0, current version 0.0.0' | sort -u |
 nl
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/32391#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list