raghu has asked for the wisdom of the Perl Monks concerning the following question:

cpan[1]> force install Crypt::SSLeay CPAN: Storable loaded ok (v2.18) Going to read /root/.cpan/Metadata Database was generated on Thu, 08 Oct 2009 08:28:51 GMT CPAN: YAML loaded ok (v0.70) Going to read /root/.cpan/build/ ...................................................................... +......DONE Found 17 old builds, restored the state of 17 Running install for module 'Crypt::SSLeay' Running make for D/DL/DLAND/Crypt-SSLeay-0.57.tar.gz Has already been unwrapped into directory /root/.cpan/build/Crypt-SS +Leay-0.57-pHXWkj CPAN.pm: Going to build D/DL/DLAND/Crypt-SSLeay-0.57.tar.gz rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so LD_RUN_PATH="/usr/lib" cc -shared -O2 -L/usr/local/lib SSLeay.o -o b +lib/arch/auto/Crypt/SSLeay/SSLeay.so \ -L/usr/lib -lssl -lcrypto \ /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_mul_add_words' +: bn-586.s:(.text+0x0): multiple definition of `bn_mul_add_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x0): first defin +ed here /usr/bin/ld: Warning: size of symbol `bn_mul_add_words' changed from 6 +12 in /usr/local/lib/libcrypto.a(bn_asm.o) to 684 in /usr/local/lib/l +ibcrypto.a(bn86-elf.o) /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_mul_words': bn-586.s:(.text+0x2b0): multiple definition of `bn_mul_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x270): first def +ined here /usr/bin/ld: Warning: size of symbol `bn_mul_words' changed from 460 i +n /usr/local/lib/libcrypto.a(bn_asm.o) to 320 in /usr/local/lib/libcr +ypto.a(bn86-elf.o) /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_sqr_words': bn-586.s:(.text+0x3f0): multiple definition of `bn_sqr_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x440): first def +ined here /usr/bin/ld: Warning: size of symbol `bn_sqr_words' changed from 167 i +n /usr/local/lib/libcrypto.a(bn_asm.o) to 225 in /usr/local/lib/libcr +ypto.a(bn86-elf.o) /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_div_words': bn-586.s:(.text+0x4e0): multiple definition of `bn_div_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x4f0): first def +ined here /usr/bin/ld: Warning: size of symbol `bn_div_words' changed from 89 in + /usr/local/lib/libcrypto.a(bn_asm.o) to 23 in /usr/local/lib/libcryp +to.a(bn86-elf.o) /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_add_words': bn-586.s:(.text+0x500): multiple definition of `bn_add_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x550): first def +ined here /usr/bin/ld: Warning: size of symbol `bn_add_words' changed from 371 i +n /usr/local/lib/libcrypto.a(bn_asm.o) to 428 in /usr/local/lib/libcr +ypto.a(bn86-elf.o) /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_sub_words': bn-586.s:(.text+0x6b0): multiple definition of `bn_sub_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x6d0): first def +ined here /usr/bin/ld: Warning: size of symbol `bn_sub_words' changed from 257 i +n /usr/local/lib/libcrypto.a(bn_asm.o) to 428 in /usr/local/lib/libcr +ypto.a(bn86-elf.o) collect2: ld returned 1 exit status make: *** [blib/arch/auto/Crypt/SSLeay/SSLeay.so] Error 1 DLAND/Crypt-SSLeay-0.57.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: DLAND/Crypt-SSLeay-0.57.tar.gz : make NO

The above mentioned error happened in the CentoS Linux of specification
Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc versio +n 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP

And installed perl version in this machine is of 5.10.0

Replies are listed 'Best First'.
Re: Issue in istalling Crypt::SSLeay
by almut (Canon) on Oct 08, 2009 at 10:41 UTC
    /usr/local/lib/libcrypto.a(bn86-elf.o): In function `bn_mul_add_words' +: bn-586.s:(.text+0x0): multiple definition of `bn_mul_add_words' /usr/local/lib/libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x0): first defin +ed here /usr/bin/ld: Warning: size of symbol `bn_mul_add_words' changed from 6 +12 in /usr/local/lib/libcrypto +.a(bn_asm.o) to 684 in /usr/local/lib/libcrypto.a(bn86-elf.o)

    Your libcrypto.a appears to be broken (internally inconsistent). How did you build it, or where did you get it from?  Maybe try rebuilding OpenSSL from scratch and watch out for any errors during the build.

      Almut,

      Thanks for your information. The libcrypto.a file in /usr/local/lib path in the system is broken as you mentioned. So I used another libcrypto.a file in the path /usr/local/ssl path in the system and the problem got resolved.

      The libcrypto.a file is used in the command, it is being utilised from /usr/local/lib, when I changed the path to /usr/local/ssl the issue got resolved and the module is installed.

      cc -shared -O2 -L/usr/local/lib SSLeay.o -o b +lib/arch/auto/Crypt/SSLeay/SSLeay.so \ -L/usr/lib -lssl -lcrypto \