--On Tuesday, March 06, 2001 10:48 AM +1000 David Richards 
<[EMAIL PROTECTED]> wrote:

> Yep, that seems to do better.  Now I get a problem in 'perl/imap'
> something about Bad object file tmp.a(licyrus.a) Bad file magic number
> .....
>
> Any ideas?
>
> Dave.

Yup :-)

I actually believe this to be a problem with the Perl installation that 
comes
with Compaq, but I am not sure.  I know where to fix it on Compaq, but I 
also
believe that I should *not* do this, and that installing a newer version of
Perl in /usr/local would be the better solution (but not always permitted in
every environment).

So, change to the perl/imap directory and edit Makefile.PL.  Go to line 57.
Change the 2 following lines as follows:

  OLD:

    'OBJECT'    => 'IMAP.o ../../lib/libcyrus.a',
    'LIBS'    => ["$SASL_LIB -lssl -lcrypto"],

  NEW:

     'OBJECT'    => 'IMAP.o',
     'LIBS'    => ["../lib/libcyrus.a $SASL_LIB -lssl -lcrypto"],

The problem on Compaq is that it tries to create a library called tmp.a
that contains 2 files, IMAP.o and libcyrus.a.  However, when linking, the
linker doesn't know what to do with the library within a library issue.
With proper reorganization of the linker line in the Makefile, it can be
made to work with this issue.

However, it would be simpler to just move libcyrus.a to the LIBS section
where it belongs.  There is no reason for it to get dumped into tmp.a.
In addition to the above fix, I tested this on the Solaris platform as well
and the above changes work just fine as well... so I will be sending this
in as a patch as well.

In any the case, I am sure this is the last issue you will be running into.
I was hoping it wouldn't be a problem for you, but apparently it was :-)

Let us know how it goes!

Scott
--
 +-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-+
      Scott W. Adkins                http://www.cns.ohiou.edu/~sadkins/
   UNIX Systems Engineer                  mailto:[EMAIL PROTECTED]
        ICQ 7626282                 Work (740)593-9478 Fax (740)593-1944
 +-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-+
     CNS, HDL Center, Suite 301, Ohio University, Athens, OH 45701-2979

Reply via email to