--On Monday, August 23, 2004 6:45 PM +0000 "Derek T. Yarnell" <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] /tmp]# cat test.pl # !/usr/local/bin/perl -w use Net::LDAP; use MIME::Base64; use Authen::SASL; use Socket;
$server='ldap.cs.umd.edu'; my $name = gethostbyaddr(inet_aton($server), AF_INET);
my $ldap = Net::LDAP->new($name, version=>3) || die "$@";
my $slavesasl = Authen::SASL->new(mechanism=>'GSSAPI'); my $mesg = $ldap->bind("uid=derek,ou=people,dc=cs,dc=umd,dc=edu", sasl=>$slavesasl);
$mesg->code && die $mesg->error;
$mesg = $ldap->search(async=>1,filter=>"(uid=derek)",base=>"dc=cs, dc=umd,dc=edu");
@entries = $mesg->entries;
$entry = shift (@entries); $uid = ($entry->get_value("uid")); print "uid $uid\n"; [EMAIL PROTECTED] /tmp]# ./test.pl /usr/local/bin/perl: relocation error: /usr/local/perl-5.8.2/lib/ site_perl/5.8.2/i686-linux/auto/Authen/SASL/Cyrus/Cyrus.so: undefined symbol: sasl_client_init
[EMAIL PROTECTED] /tmp]# ldd /usr/local/perl-5.8.2/lib/site_perl/5.8.2/i686- linux/auto/Authen/SASL/Cyrus/Cyrus.so libc.so.6 => /lib/tls/libc.so.6 (0xb74aa000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
So, what library is sasl_init found in, and is it statically compiled into Cyrus.so?
BTW, I use perl 5.6.1. There was another user on the list having problems with perl 5.8, and I haven't had the time to test 5.8.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
