Re: SSL_connect returns -1 on HPUX

2007-08-30 Thread Andrew Hale
Thanks to the responses I was able to get openssl compiled in debug mode. Once I removed the optimization flag from the make file my compiler error went away. I've since traced through the code and it leaves me pretty much just as puzzled as before. The function ssl3_client_hello in s3_clnt.c is

Re: SSL_connect returns -1 on HPUX

2007-08-30 Thread Marek Marcola
Hello, Thanks to the responses I was able to get openssl compiled in debug mode. Once I removed the optimization flag from the make file my compiler error went away. I've since traced through the code and it leaves me pretty much just as puzzled as before. Without optimization library may

SSL_connect returns -1 on HPUX

2007-08-29 Thread Andrew Hale
I am trying to open a client ssl connection and SSL_connect() is returning -1 on my HPUX port of my code. Note this exact code currently works (connects successfully and can send and receive data) on Linux, SunOS, INTERIX(Windows Services for UNIX). What I know SSL_connect() returns -1 errno is

Re: SSL_connect returns -1 on HPUX

2007-08-29 Thread Jason Proctor
this is exactly the symptom i got when the optimiser on my compiler got a few things confused and SSL_connect() was thinking a simple allocation had failed when it had in fact succeeded. i got round that by building a library without the optimiser flags. can you do a regular ./configure? if

Re: SSL_connect returns -1 on HPUX

2007-08-29 Thread Andrew Hale
Thanks for the quick response. Unfortunately I run into a compilation error when trying to compile in debug mode (I had not compiled the libraries before as I obtained precompiled libraries). Unfortunately I am stuck on gcc 2.8.1 and can't install a new compiler and I'm afraid that may prevent

Re: SSL_connect returns -1 on HPUX

2007-08-29 Thread Jason Proctor
yuck. ok in that case just try getting rid of the optimiser flags? worked for me. that's all i can suggest... Thanks for the quick response. Unfortunately I run into a compilation error when trying to compile in debug mode (I had not compiled the libraries before as I obtained precompiled

Re: SSL_connect returns -1 on HPUX

2007-08-29 Thread Marek Marcola
Hello, Thanks for the quick response. Unfortunately I run into a compilation error when trying to compile in debug mode (I had not compiled the libraries before as I obtained precompiled libraries). Unfortunately I am stuck on gcc 2.8.1 and can't install a new compiler and I'm afraid that

Re: SSL_connect returns -1 on HPUX

2007-08-29 Thread Marek Marcola
Hello, and now to switch to new gcc compiler you should only set: $ export PATH=/usr/local/gcc-4.1.1/bin Should be: $ export PATH=/usr/local/gcc-4.1.1/bin:$PATH Best regards, -- Marek Marcola [EMAIL PROTECTED]