So I was going along compiling IMAP, PHP, Apache, etc.. and start Apache up with SSL enabled and everytime I try to go to an SSL page I see this in the error log:
[Sat Apr 15 22:21:42 2006] [error] mod_ssl: SSL handshake failed (server sungeek.net:443, client 10.0.0.138) (OpenSSL library error follows)
[Sat Apr 15 22:21:42 2006] [error] OpenSSL: error:1408F455:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
To make a long story short, it appears there is a bug in the Sun Studio 11 compilers when compiling OpenSSL. If you are on Solaris x86, you need to have patch 120759-04 installed to fix this problem. (The problem will also show up if you do a make test, you will get an error on the test_evp). For Solaris on Sparc the Patch is 120760-03. Now if it off to recompile all the software again. At least I have gotten everything in 32 bit mode now.
Sun Studio, X2100
Sun Studio, X2100
After reading the entire CC man page for Sun Studio 11, I think I had figured out what was wrong. All was well until I got to compileing OpenSSL.. It appears that OpenSSL does not pay attention to the CFLAGS environment variable. But if you run
instead of the “config” command it will force it to compile it as 32 bit instead of 64 bit which the config command does.
I also set these environment variables to force 32 bit compile on some other stuff:
CC=/opt/SUNWspro/bin/cc
CFLAGS=-fast -xarch=generic
CXXFLAGS=-fast -xarch=generic
Not more than 10 minutes ago while I was doing this, Chris Quenelle posted an Article about 32 versus 64 bit programs that explains some more of the issues..
Solaris, Sun, Sun Studio, X2100
Solaris, Sun, Sun Studio, X2100
Not to long ago, I asked why the Sun Studio Compilers weren’t bundled by default, since they are now free. As Chris Quenelle had mentioned in my post, that the outlook looked good. He posted today that it is coming. Yeah!… Now if I can just figure out the whole 32bit/64 bit thing and why some stuff likes to chose one over the other and how I can force everything to one.
I think that Sun allowing their employees to post stuff to the blogs.sun.com is one of the coolest things. I have found out more about upcoming cool stuff from Sun from the blogs than I have found out from any where else. Keep up the good work Sun!
Solaris, Sun Studio
Solaris, Sun Studio
As I set here upgrading my Laptop from Solaris Express nv16 to nv30, I had the thought, why doesn’t Sun bundle the Sun Studio 11 compilers with the OS? GCC is nice and all, but now that the Studio 11 compilers are “free” why can’t they be bundled either in place of GCC or along with GCC. I like the Sun Compilers/Studio so much better as the code they produce is faster and smaller than the GCC stuff. Another benefit of it, fix the following “error”:
# which cc
/usr/ucb/cc
# cc test.c
/usr/ucb/cc: language optional software package not installed
#
Although it is not really an “error” persay, those new to Solaris are often asking where are the compilers at and why does it always say that they are not installed.
So any one from Sun have any input on this, whether it is planned or even feasible? I would love to be able to install everything from one DVD and all during the initial install.
Technorati Tags: Solaris, Sun Studio, Sun
Solaris, Sun, Sun Studio
Solaris, Sun, Sun Studio