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 libraries). Unfortunately I am stuck on gcc 2.8.1 and can't install a new compiler and I'm afraid that may prevent me from building. Any ideas? The compiler error is below but I have a bad feeling they way to handle it would be to get the latest version of gcc.


gcc -I.. -I../../include -DTHREADS -DDSO_DL -DNO_ASM -D_REENTRANT -O3 -DB_ENDIAN -DBN_DIV2W -c bn_err.c -o bn_err.o gcc -I.. -I../../include -DTHREADS -DDSO_DL -DNO_ASM -D_REENTRANT -O3 -DB_ENDIAN -DBN_DIV2W -c bn_sqr.c -o bn_sqr.o gcc -I.. -I../../include -DTHREADS -DDSO_DL -DNO_ASM -D_REENTRANT -O3 -DB_ENDIAN -DBN_DIV2W -c bn_asm.c -o bn_asm.o
gcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [bn_asm.o] Error 1
make[2]: Leaving directory `/home/andrew/openssl/openssl-0.9.6/crypto/bn'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/andrew/openssl/openssl-0.9.6/crypto'
make: *** [all] Error 1

On 8/29/07, Jason Proctor <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:

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 so, just hack the debug flags
into the makefile directly. on my port, it's line 63 of the makefile,
starts with CFLAG =. slap a -g on the end, and you might want to get
rid of any -O flags for good measure, too. then make clean and make
all.

hth
j


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 0 immediately after that call
ERR_error_string(ERR_get_error(), NULL) yields no error:
error:00000000:lib(0):func(0):reason(0)
SSL_get_error(ssl, success) yields an error of SSL_ERROR_SYSCALL

What are some steps I can take to troubleshoot the client
connection?  I can't do too much to the server and know that it
works fine in the other aforementioned environments.  I was looking
into compiling the ssl libraries in debug mode to step through the
SSL_Connect call but get an unsupported system error when trying to
do a ./configure -d to build the debug libraries.  Any suggestions
on where to start?

If necessary for any system specific gotchas I may be unaware of my
uname output:
HP-UX ------- B.11.00 U 9000/800 --------- unlimited-user license



Thanks

______________________________________________________________________
OpenSSL Project <http://www.openssl.org>http://www.openssl.org User Support Mailing List <mailto:openssl-users@openssl.org>openssl-users@openssl.org Automated List Manager <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]

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

Reply via email to