99.99% positive this is a bug...

Jeff Blaine jblaine at kickflop.net
Tue Feb 6 13:52:48 EST 2007


99% sure this is a bug.  Posting here to make sure:

My '-R' options in LDFLAGS are being ignored at certain link
times.

Quickie proof (details further below):

cyrus-sasl-2.1.22 # ldd /export/home/lib/sasl2/lib*.so | grep 'not found'
         libcrypto.so.0.9.7 =>    (file not found)
         libgssapi_krb5.so.2 =>   (file not found)
         libkrb5.so.3 =>  (file not found)
         libk5crypto.so.3 =>      (file not found)
         libcom_err.so.3 =>       (file not found)
         libkrb5support.so.0 =>   (file not found)
         libdb-4.4.so =>  (file not found)
cyrus-sasl-2.1.22 #
======================================================================
Solaris 9 SPARC
gcc + /usr/ccs/bin/ld
MIT Kerberos 5 1.5.2
OpenSSL 0.9.8d
Cyrus SASL 2.1.22
======================================================================
CPPFLAGS="-I/export/home/include -I/export/k5/include 
-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
export CPPFLAGS

LDFLAGS="-L/export/home/lib -R/export/home/lib -L/export/home/lib/sasl2 
-R/export/home/lib/sasl2 -L/export/k5/lib -R/export/k5/lib"
export LDFLAGS

#
# NOTE here that libgssapi_krb5.so is sitting in /export/k5/lib
# and is included via -L -R above
#

./configure --prefix=/export/home --with-bdb-libdir=/export/home/lib
--with-bdb-incdir=/export/home/include --disable-otp
--with-openssl=/export/home --with-plugindir=/export/home/lib/sasl2
...
checking for gss_unwrap in -lgssapi_krb5... yes   # FOUND IT FINE!
checking GSSAPI... with implementation mit        # YES!
...
make
...
/usr/ccs/bin/ld -G -h libgssapiv2.so.2 -o .libs/libgssapiv2.so.2.0.22 
gssapi.lo gssapiv2_init.lo plugin_common.lo  -L/export/home/lib 
-L/export/home/lib/sasl2 -L/export/k5/lib -lgssapi_krb5 -lkrb5 
-lk5crypto -lcom_err -lkrb5support -lresolv -lresolv -lsocket -lnsl 
-lresolv -lresolv -lsocket -lc
...
make install
======================================================================
imtest[20847]: unable to dlopen /export/home/lib/sasl2/libgssapiv2.so.2: 
ld.so.1: imtest: fatal: libgssapi_krb5.so.2: open failed: No such file 
or directory


More information about the Cyrus-sasl mailing list