--On Thursday, 2002 March 28 14:33 -0700 Michael Bartosh <[EMAIL PROTECTED]>
wrote:
> After some patching, (patching of patches, actually) I got Cyrus imapd
> 2.0.16 to run on Mac OS X. Testing works with imtest (ie I can
> authenticate).
>
> cyradm fails, though:
>
> [sstout:~] admin% 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
>
> my cyrus stuff is all in
>
> /usr/lib/sasl
>
> ...and postfix, cyrus imapd and ldap seem to be able to use it.
>
> What's up with cyradm?
>
cyradm and perl are the two cesspools for Mac OS X. Some cryptic notes that
migtht help:
The perl stuff fails to link with -lsasl because it doesnt't accept the
LDFLAGS from the
config files.
Changed Makefile.in in perl to have:
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))
Changed Makefile.PL in perl/imap to have:
my $LDFLAGS = $ENV{LDFLAGS};
'LIBS' => ["-L../../lib -L/$LDFLAGS -lcyrus $SASL_LIB -lssl
-lcrypto"],
Changed Makefile.PL in perl/sieve/acap to have:
my $LDFLAGS = $ENV{LDFLAGS};
'LIBS' => ["-L../../../acap/ -L/$LDFLAGS -lacap $SASL_LIB
-L../../../lib/ -lcyrus -lssl -lcrypto"], # e.g., '-lm'
Changed Makefile.PL in perl/sieve/managesieve to have:
my $LDFLAGS = $ENV{LDFLAGS};
'LIBS' => ["-L../lib/ -L/$LDFLAGS -lisieve $SASL_LIB
-L../../../lib/ -lcyrus -lssl -lcrypto"],
This will make cyradm sort of run, but if you try to use perl elsewhere
(say websieve or easysieve), you may run into some other symbol problems.
This was getting old so I did a strip on managesieve.bundle and got rid of
most everything but _boot_Cyrus__SIEVE__managesieve and that hack worked.
Someday I'll look for a better solution.
I also had some minor problems running cyradm, like it wouldn't echo
anything after entering the password and it failed to recognize backspace
characters. This was a fairly simple patch to IMAP.pm to reset the terminal
after the password entry is done.
Hi Denver from Cherry Hills,
Mark
> http://www.4am-media.com
> Mac OS X Consulting and Training
> Michael Bartosh
> [EMAIL PROTECTED]
> 303.517.0272
> Denver, CO