I'm trying to build cyrus imapd on Mac OS X.

It includes a number of perl based facilities- including cyradm- used to 
manage acl's, mailbox creation, etc.

Cyradm needs access to sasl libs so it can authenticate. Perl doesn't 
seem to be able to find them, though (they're in /usr/local/lib/sasl, 
linked to /usr/lib/sasl)

When I run cyradm, I see this:

> [localhost:~/cyrus/cyrus-imapd-2.0.16] mab9718% cyradm
> dyld: perl Undefined symbols:
> _sasl_client_init
> _sasl_client_new
> _sasl_client_start
> _sasl_client_step
> _sasl_decode
> _sasl_dispose
> _sasl_encode
> _sasl_setprop

....during build, I see this:

> ### Making all in /Volumes/iPod/mab9718/cyrus/cyrus-imapd-2.0.16/perl
> (cd imap; \
>  SASL_LIB="-lsasl" SASL_INC="" CC="cc" \
>    perl Makefile.PL PREFIX=/usr/local)
> Checking if your kit is complete...
> Looks good
> Warning: -L../../lib changed to 
> -L/Volumes/iPod/mab9718/cyrus/cyrus-imapd-2.0.16/perl/imap/../../lib
> Note (probably harmless): No library found for -lsasl
> Writing Makefile for Cyrus::IMAP

and

> ### Making all in /Volumes/iPod/mab9718/cyrus/cyrus-
> imapd-2.0.16/perl/sieve/acap
> Checking if your kit is complete...
> Looks good
> Warning: -L../../../acap/ changed to 
> -L/Volumes/iPod/mab9718/cyrus/cyrus-
> imapd-2.0.16/perl/sieve/acap/../../../acap/
> Note (probably harmless): No library found for -lsasl
> Warning: -L../../../lib/ changed to 
> -L/Volumes/iPod/mab9718/cyrus/cyrus-
> imapd-2.0.16/perl/sieve/acap/../../../lib/


....I've added this to perl/Makefile.pl
>
> LDFLAGS=@LDFLAGS@
> imap/Makefile: imap/Makefile.PL
>        (cd imap; \
>         SASL_LIB="$(SASL_LIB)" SASL_INC="$(SASL_INC)" CC="$(CC)" 
> LDFLAGS="$(LDFLAGS)" \
>           $(PERL) Makefile.PL PREFIX=$(prefix))

and

> my $LDFLAGS  = $ENV{LDFLAGS};
>   'LIBS'      => ["-L../../lib -L/$LDFLAGS -lcyrus $SASL_LIB -lssl 
> -lcrypto"],

to perl/imap/Makefile.PL

and

> my $LDFLAGS  = $ENV{LDFLAGS};
>    'LIBS'      => ["-L../../../acap/ -L/$LDFLAGS -lacap $SASL_LIB 
> -L../../../lib/ -lcyrus -lssl -lcrypto"],   # e.g., '-lm'

to perl/sieve/acap/Makefile.pl and finally:

> my $LDFLAGS  = $ENV{LDFLAGS};
>    'LIBS'      => ["-L../lib/ -L/$LDFLAGS -lisieve $SASL_LIB 
> -L../../../lib/ -lcyrus -lssl -lcrypto"],

to  perl/sieve/managesieve/Makefile.pl

....But no luck. I'm hardly a perl master... I'm wondering if there's an 
obvious solution I'm missing? sasl it's self is working properly- the 
sample client/server works fine.

Thanks!


http://www.4am-media.com
Mac OS X Consulting and Training
Michael Bartosh
[EMAIL PROTECTED]
303.517.0272
Denver, CO


"The surest way to corrupt a youth is to instruct him to hold in higher
regard those who think alike than those who think differently."

- -- Nietzsche

                        Think Different.


Reply via email to