Hi all,
I've been harassing Tim about OpenSSL support since he's been working on it in master-1.9 anyway. So far it looks pretty good - Thanks Tim! - with a provision that I am using Ubuntu with gcc 4.7.2 my little OpenSSL Cipher encrypt/decrypt script runs as expected.
But our team at Versapay and most of the guys I saw when we visited Gemstone are using Macs. As you may or may not be aware Apple doesn't ship standard gcc anymore, as of I believe Xcode 4.2. I'm on OSX 10.7.5 with Xcode 4.6 and I've got llvm-gcc or clang, and I think clang is the default for 'CC'.
So, my system seems to be defaulting to using clang to attempt to compile the OpenSSL extension which I think is hopeless. Theoretically but probably not practically, llvm-gcc should compile the same input as gcc 4.2, but I don't know how to make the MagLev loading attempt to compile with that instead of clang.
I observe the problem simply by checking out master-1.9, in this case I just completely blew away my GemStone install because it's dev and I don't care. Then I ran ./update.sh and tried to rake maglev:reload and it complains about being able to compile OpenSSL.
Tim added OPENSSL_DIR for me, because the OpenSSL I use is in /opt/local instead of the default OSX one, but in retrospect I think the default Mac OSX openssl should be fine, and I think this issue is because CC=clang and I have no idea how to change that.
Anyone else using a Mac around who knows more about MagLev's guts than me?
cheers,
Jon
jmason@jem-mbp: ~/development/maglev
$ rake1.9 maglev:start
Starting stone with netldi gs64ldi
GEMSTONE => /Users/jmason/development/maglev/gemstone
GEMSTONE_GLOBAL_DIR => /Users/jmason/development/maglev
=== Starting with netldiname gs64ldi
startstone[Info]: GemStone version '3.1.0.2'
startstone[Info]: Server 'maglev' is already running.
jmason@jem-mbp: ~/development/maglev
$ rake1.9 maglev:reload
=== Starting with netldiname gs64ldi
startstone[Info]: GemStone version '3.1.0.2'
startstone[Info]: Starting Stone repository monitor 'maglev'.
startstone[Info]: GEMSTONE is: '/Users/jmason/development/maglev/gemstone'.
startstone[Info]:
GEMSTONE_SYS_CONF=/Users/jmason/development/maglev/etc/conf.d/maglev.conf
GEMSTONE_EXE_CONF=/Users/jmason/development/maglev/maglev.conf
startstone[Info]: Log file is '/Users/jmason/development/maglev/log/maglev/maglev.log'.
startstone[Info]: GemStone server 'maglev' has been started, process 6547 .
Loading Kernel for maglev. This may take a few seconds...
Compiling OpenSSL extension ...
Compiling OpenSSL extension failed. Make sure you have OpenSSL headers installed.
You can set the environment variable OPENSSL_DIR to point to the header directory.
a RubySystemExit occurred (error 2752)
topaz 1> exit