in reply to Re^4: MakeMaker failing to locate libs for shared objects
in thread MakeMaker failing to locate libs for shared objects

Weird one huh?

See how I showed how I modified libs? And then I use grep to show the change being made? How about you show how you did that?

  • Comment on Re^5: MakeMaker failing to locate libs for shared objects

Replies are listed 'Best First'.
Re^6: MakeMaker failing to locate libs for shared objects
by houst0n (Novice) on Aug 04, 2010 at 15:41 UTC
    Okay,

    If I do this in the same way as you:

    houston@thebe:Crypt-OpenSSL-Random-0.04 > perl Makefile.PL LIBS=":nosearch -lssl -lcrypto"

    Unrecognized argument in LIBS ignored: ':nosearch'
    Note (probably harmless): No library found for -lssl
    Note (probably harmless): No library found for -lcrypto
    Writing Makefile for Crypt::OpenSSL::Random

    houston@thebe:Crypt-OpenSSL-Random-0.04 > grep lssl Makefile
    # MakeMaker ARGV: (qLIBS=:nosearch -lssl -lcrypto)
    # LIBS => [q-lssl -lcrypto]
    cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL "LIBS=:nosearch -lssl -lcrypto"
    $(PERLRUN) Makefile.PL "LIBS=:nosearch -lssl -lcrypto"
    LIBS=':nosearch -lssl -lcrypto'

    houston@thebe:Crypt-OpenSSL-Random-0.04 > gmake

    ...
    gcc -G -R/opt/bw/lib/i386 -L/opt/bw/lib/i386 -L/opt/bw/lib Random.o -o blib/arch/auto/Crypt/OpenSSL/Random/Random.so
    \
    \

    ...

    And during install:

    PERL_DL_NONLAZY=1 /opt/bw/bin/i386/perl "-Iblib/lib" "-Iblib/arch" test.pl
    1..5
    Can't load 'blib/arch/auto/Crypt/OpenSSL/Random/Random.so' for module Crypt::OpenSSL::Random: ld.so.1: perl: fatal: relocation error: file blib/arch/auto/Crypt/OpenSSL/Random/Random.so: symbol RAND_bytes: referenced symbol not found at /opt/bw/lib/perl/5.12.1/distro/i386/DynaLoader.pm line 200.

    This had worked previously with the exact same 'build recipe' however we have changed the prefix.

    Is there any binary that the build process of perl itself depends on during 'make install' that I might have missed?

    Thanks for the help so far mate!