Oguz Yilmaz writes:
>
>I am getting the erro belw when I try to run cyradm.
>what could be the wrong thing?
>
>#cyradm
>Can't load
>'/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Cyrus/IMAP/IMAP.so' for
>module Cyrus::IMAP: ld.so.1: perl: fatal: relocation error: file
>/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Cyrus/IMAP/IMAP.so: symbol
>SSL_clear:
>referenced symbol not found at
>/usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line
>169.
>
> at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Cyrus/IMAP/Admin.pm line 43
>BEGIN failed--compilation aborted at
>/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Cyrus/IMAP/Admin.pm line 43.
>BEGIN failed--compilation aborted at
>/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Cyrus/IMAP/Shell.pm line 58.
>BEGIN failed--compilation aborted.
The usual problem is that the IMAP.so file does not contain the correct
run path to find the other shared libraries that it needs, usually the
SASL and SSL libraries. Below is a patch for perl/imap/Makefile that
you can apply and then remake the IMAP.so file. Then, install the
shared libraries in /usr/local/lib, and cyradm should work. You may
need to do the same thing for perl/sieve/acap/Makefile and
perl/sieve/managesieve/Makefile.
*** OMakefile Sat Nov 18 16:35:35 2000
--- Makefile Sat Nov 18 18:22:45 2000
***************
*** 281,289 ****
# See ExtUtils::Liblist for details
#
EXTRALIBS = -L/usr/local/src/cyrus/libsasl-1.5.24/lib -lsasl
! LDLOADLIBS = -L/usr/local/src/cyrus/libsasl-1.5.24/lib -lsasl
BSLOADLIBS =
! LD_RUN_PATH = /usr/local/src/cyrus/libsasl-1.5.24/lib
# --- MakeMaker const_cccmd section:
--- 281,289 ----
# See ExtUtils::Liblist for details
#
EXTRALIBS = -L/usr/local/src/cyrus/libsasl-1.5.24/lib -lsasl
! LDLOADLIBS = -L/usr/local/src/cyrus/libsasl-1.5.24/lib
-L/usr/local/src/OpenSSL/openssl-0.9.5a/lib -lsasl -lssl -lcrypto
BSLOADLIBS =
! LD_RUN_PATH = /usr/local/lib
# --- MakeMaker const_cccmd section:
***************
*** 453,459 ****
INST_DYNAMIC_DEP =
$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists
$(EXPORT_LIST) $(PERL_ARCHIVE) $(INST_DYNAMIC_DEP)
! LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@
-R/usr/local/src/cyrus/libsasl-1.5.24/lib $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS)
$(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(EXPORT_LIST)
$(CHMOD) $(PERM_RWX) $@
--- 453,459 ----
INST_DYNAMIC_DEP =
$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists
$(EXPORT_LIST) $(PERL_ARCHIVE) $(INST_DYNAMIC_DEP)
! LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ $(LDDLFLAGS) $(LDFROM)
$(OTHERLDFLAGS) $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(EXPORT_LIST)
$(CHMOD) $(PERM_RWX) $@
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-