develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [ID 20010725.008]

Thread Previous
From:
H . Merijn Brand
Date:
July 26, 2001 02:16
Subject:
Re: [ID 20010725.008]
Message ID:
20010726110423.5C7B.H.M.BRAND@hccnet.nl
On Thu 26 Jul 2001 08:50, "Gowranga K.H." <gow@mrdg.iisc.ernet.in> wrote:
> Hello,
> 
> I have successfuly compiled and installed perl-5.6.1 on a HP-UX 10.20
> system. However, when I try to compile yet another package:
> cyrus-imapd-2.0.15, I get the following error:
> 
> ### Making all in /usr/cyrus-imapd-2.0.15/perl
> ### Making all in /usr/cyrus-imapd-2.0.15/perl/imap
>         rm -f blib/arch/auto/Cyrus/IMAP/IMAP.sl
> 
> LD_RUN_PATH="/usr/cyrus-imapd-2.0.15/perl/imap/../../lib:/usr/local/lib" ld
> -b +vnocompatwarnings -L/usr/local/lib IMAP.o  -o
> blib/arch/auto/Cyrus/IMAP/IMAP.sl
> -L/usr/cyrus-imapd-2.0.15/perl/imap/../../lib -lcyrus -lsasl -lssl
> -lcrypto  
> ld: Invalid loader fixup for symbol "$002E0019".
> *** Error exit code 1

Normally one gets more info on this error: what object was causing it.

> Stop.
> *** Error exit code 1

From more recent perl ports one could read in README.hpux (or man perlhpux):

--8<---
Some extensions, like DB_File and Compress::Zlib use/require prebuilt
libraries for the perl extensions/modules to work. If these libraries
are built using the default configuration, it might happen that you run
into an error like "invalid loader fixup" during load phase. HP is aware
of this problem and address it at
  http://devresource.hp.com/devresource/Docs/TechTips/cxxTips.html#tip13

A more general approach is to intervene manually, as with an example for
the DB_File module, which requires SleepyCat's libdb.sl:

    # cd .../db-3.2.9/build_unix
    # vi Makefile
    ... add +Z to all cflags to create shared objects
    CFLAGS=         -c $(CPPFLAGS) +Z -Ae +O2 +Onolimit \
                    -I/usr/local/include -I/usr/include/X11R6
    CXXFLAGS=       -c $(CPPFLAGS) +Z -Ae +O2 +Onolimit \
                    -I/usr/local/include -I/usr/include/X11R6

    # make clean
    # make
    # mkdir tmp
    # cd tmp
    # ar x ../libdb.a
    # ld -b -o libdb-3.2.sl *.o
    # mv libdb-3.2.sl /usr/local/lib
    # rm *.o
    # cd /usr/local/lib
    # rm -f libdb.sl
    # ln -s libdb-3.2.sl libdb.sl

    # cd .../DB_File-1.76
    # make distclean
    # perl Makefile.PL
    # make
    # make test
    # make install

-->8---

HTH

-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 628 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About