blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks and Monkettes,
I have on many occasions installed Net::SSLeay on
Solaris boxes and this includes Solaris 10. For reasons
I don't understand I can't get it to work this time.
Here's the setup:
| Operating System | Solaris 10 |
| Perl Version | 5.8.8 |
| OpenSSL Version | 0.9.7b |
| gcc version | 3.3.2 |
The first indication that I see that somthing might be a tad wrong is when I run the Makefile.PL I see the following:
This didn't worry me too badly so I plunged on. I'm not sure what in the compiler string it sees that it don't like other than the fact they don't match 100% so I plunged on.*** /usr/local/ssl/bin/openssl appears to be compiled with gcc (gcc -B +/usr/ccs/bin/ -DOPENSSL_SYSNAME_ULTRASPARC -DOPENSSL_THREADS -D_REENT +RANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_ASM -m +64 -mcpu=ultrasparc -O3 -Wall -DB_ENDIAN ) while perl is compiled with gcc -B/usr/ccs/bin. Both must be compile +d with the same compiler and flags. Mixing and matching compilers is +not supported. at ./Makefile.PL line 137.
I ran the make and the only thing that struck me as odd there is:
Now.. that worried me a bit. I'm not sure why that is happening since gcc was used for both Perl and OpenSSL in their compiles. In fact, they were compiled on the same machine!gcc -B/usr/ccs/bin -G -L/usr/local/lib SSLeay.o -o blib/arch/auto/Ne +t/SSLeay/SSLeay.so \ -L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto \ ld: warning: file /usr/local/lib/libssl.a(s2_meth.o): wrong ELF class: + ELFCLASS64 ld: warning: file /usr/local/lib/libcrypto.a(md5_one.o): wrong ELF cla +ss: ELFCLASS64
Predictably (at least to me) when I ran a make test it failed. The error wasn't quite what I expected, but here it is as well:
Can't load 'blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLea +y: ld.so.1: perl: fatal: relocation error: file blib/arch/auto/Net/SS +Leay/SSLeay.so: symbol SSLv23_method: referenced symbol not found at +/usr/local/software/perl-5.8.8/lib/5.8.8/sun4-solaris/DynaLoader.pm l +ine 230. at test.pl line 25 Compilation failed in require at test.pl line 25. BEGIN failed--compilation aborted at test.pl line 25. not ok 1
Anybody out there know what magic incantations I sould be inoking at this point? I'm at my wits end with this one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSLeay + Solaris 10 + OpenSSL v0.9.7b == frustration
by andyford (Curate) on Nov 10, 2006 at 21:29 UTC | |
by djp (Hermit) on Nov 13, 2006 at 02:34 UTC | |
by blue_cowdawg (Monsignor) on Nov 13, 2006 at 14:48 UTC | |
|
Re: Net::SSLeay + Solaris 10 + OpenSSL v0.9.7b == frustration
by blue_cowdawg (Monsignor) on Nov 13, 2006 at 14:40 UTC | |
by andyford (Curate) on Nov 13, 2006 at 15:49 UTC | |
by blue_cowdawg (Monsignor) on Nov 13, 2006 at 15:54 UTC |