Ok, first of all

Linux server2.x.net 2.2.12-20 #1 Mon Sep 27 10:25:54 EDT 1999 i586 unknown

gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)


I'm currently running OpenSSL 0.9.4, with little problems. We went to 
install Net:SSLeay and have had nothing but problems. I've poured over 
websites, over mailing lists (including this one) and while I see many 
answers that look like pieces of the trail, it's just not fixing what's 
wrong. So, here's what happens, followed by what I've tried.

[root@server2 Net_SSLeay.pm-1.05]# make test
Writing "Makefile.aperl" for this perl
Checking for OpenSSL-0.9.3a or newer...
I could not find your OpenSSL in `DIR='
Please provide OpenSSL-0.9.3a installation directory (get from
  http://www.openssl.org/ if you don't have it; please note that
  SSLeay is no longer supported, see README) (C-c to abort):
/usr/local/ssl
You have OpenSSL-0.9.4 installed in /usr/local/ssl
That's is newer than what this module was tested with (0.9.3a). You should
consider checking if there is a newer release of this module
available. Everything will probably work OK, though.
Writing Makefile.aperl for Net::SSLeay
make -f Makefile.aperl perl
make[1]: Entering directory `/home/darke/Net_SSLeay.pm-1.05'
Writing perlmain.c
cd . && cc -c  -I/usr/lib/perl5/5.00503/i386-linux/CORE  -Dbool=char 
-DHAS_BOOL -I/usr/local/include -O2 \
    -DVERSION=\"1.05\" \
-DXS_VERSION=\"1.05\" -I/usr/lib/perl5/5.00503/i386-linux/CORE perlmain.c
cat /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/extralibs.ld >> 
blib/arch/auto/Net/SSLeay/extralibs.all
cat blib/arch/auto/Net/SSLeay/extralibs.ld >> 
blib/arch/auto/Net/SSLeay/extralibs.all
cc -L/usr/local/lib -rdynamic -o perl -O2 
./perlmain.o  blib/arch/auto/Net/SSLeay/SSLeay.a 
/usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a 
/usr/lib/perl5/5.00503/i386-linux/CORE/libperl.a `cat 
blib/arch/auto/Net/SSLeay/extralibs.all` -lnsl -ldl -lm -lc -lposix -lcrypt
blib/arch/auto/Net/SSLeay/SSLeay.a(SSLeay.o): In function 
`XS_Net__SSLeay_want':
SSLeay.o(.text+0x71dd): undefined reference to `SSL_want'
blib/arch/auto/Net/SSLeay/SSLeay.a(SSLeay.o): In function 
`XS_Net__SSLeay_SSLeay_add_ssl_algorithms':
SSLeay.o(.text+0x7961): undefined reference to `SSL_library_init'
collect2: ld returned 1 exit status
make[1]: *** [perl] Error 1
make[1]: Leaving directory `/home/darke/Net_SSLeay.pm-1.05'
make: *** [perl] Error 2

This is after multiple attempts to use CPAN, configure it from source, etc. 
I always got the SSL_library_init problem. Undefined symbol. I went through 
the readmes, tried a few things (like the files that are really in 
/usr/local/ssl/include/openssl, etc). No dice. I scanned this mailing list, 
and noticed that someone said that they had this same problem in BSD and 
that it had to do with cc and gcc not playing well together, so I went into 
the makefile manually and altered cc= to gcc and ld= to gcc and the 
LINKTYPE to static, after what I read here, and the above is the output 
after that attempt.

I ran an nm on /usr/local/ssl/include/libssl.a and SSL_library_init is 
indeed in there, but I must confess, I don't really understand that output. 
Nor what I am supposed to do to make sure that the linking is working 
properly.

The truly bizarre thing is that Net::SSLeay on another box of ours installs 
without a hitch with none of these problems on our other server with 
openssl-0.9.3a. And while I am about to go downgrade the box I am currently 
talking about to it to see if that fixes the problem, the main reason I am 
writing in is because according to what I've read, this SHOULD work on 
0.9.4, so I'm confused, I guess. Has anyone encountered this and the 
gcc/static solution didn't work for them? Did you find a solution?

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to