From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8636484492b7586f,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10f591,8636484492b7586f,start X-Google-Attributes: gid10f591,public From: "R. Scott Butler" Subject: Problem with Net::SSLeay and Digital UNIX Date: 1999/05/17 Message-ID: <37405B91.878D44C6@cdclnm2.email.dupont.com>#1/1 X-Deja-AN: 479305022 Content-Transfer-Encoding: 7bit Organization: DuPont Scientific Computing Division X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.perl.modules,comp.unix.osf.osf1 I'm having trouble getting Net::SSLeay to work on my Digital UNIX workstation and I'm beginning to believe that my problem is with an interaction of DU and PERL. What follows is a listing of what happens. The build goes OK but the test program fails. //Begin listing// [butlerrs@ghidorah .../Net_SSLeay.pm-1.03] ./Makefile.PL -t Checking for SSLeay-0.9.0 or OpenSSL-0.9.1c... You have SSLeay-0.9.0a installed in /usr/local/ssl Writing Makefile for Net::SSLeay cc -c -I/usr/local/ssl/include -std -fprm d -ieee -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__ -O4 -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\" -I/usr/local/lib/perl5/5.00501/alpha-dec_osf/CORE SSLeay.c Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs ar cr tmp.a SSLeay.o : tmp.a LD_RUN_PATH="/usr/local/ssl/lib" ld -o blib/arch/auto/Net/SSLeay/SSLeay.so -shared -expect_unresolved "*" -O4 -msym -s -L/usr/local/lib -all tmp.a -none -L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto chmod 755 blib/arch/auto/Net/SSLeay/SSLeay.so cp SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs chmod 644 blib/arch/auto/Net/SSLeay/SSLeay.bs PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00501/alpha-dec_osf -I/usr/local/lib/perl5/5.00501 test.pl 1..12 Can't load 'blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: Unresolved symbol in blib/arch/auto/Net/SSLeay/SSLeay.so: ASN1_get_object at /usr/local/lib/perl5/5.00501/alpha-dec_osf/DynaLoader.pm line 168. at test.pl line 14 BEGIN failed--compilation aborted at test.pl line 14. not ok 1 make: *** [test_dynamic] Error 2 //End listing// As you can see, the test code fails as a result of an unresolved global 'ASN1_get_object'. I have tried building the PERL module against SSLeay built with both gcc and cc. The example shown above used SSLeay built with cc. If I build against SSLeay built with gcc, the failure is identical except that the unresolved global is 'd2i_RSAPrivatekey_bio'. Both of the unresolved symbols *are* defined in libcrypto.a. I'm clueless as to how the shared library mechansism and the PERL Dynaloader interact. Any suggestions would be appreciated... Version information: Digital UNIX 4.0E with one set of patches cc - whatever you get with DU 4.0E gcc - 2.7.2.3 PERL - version 5.005_01 SSLeay - 0.9.0a (builds cleanly and passes 'make test') R. Scott Butler r-scott.butler@usa.dupont.com