PDA

View Full Version : Compiling 4.0.13 With Openssl


skippopotamus
12-20-2010, 09:16 PM
Hi all. I'm trying to compile with SSL on a Solaris x86 machine. I'm having a pretty hard time getting around the, "sorry, unimplemented" and "Can't compile SSL" errors. Anybody gotten around this?

LD_LIBRARY_PATH=/usr/sfw/lib/64:/usr/ccs/lib

./configure --enable-64bit --enable-jni --prefix=/opt/app/resin/resin-pro-4.0.13

conftest.c:1: sorry, unimplemented: 64-bit mode not compiled in
configure: WARNING: Can't compile SSL. Check compilation flags: gcc -DSSL_ENGINE -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -m64 -G -fPIC -D__SOLARIS__ -DHAS_JVMTI -I/usr/local/ssl/include -L/usr/local/ssl/lib -lssl -lcrypto -lnsl -lsocket -lthread

Resin Configuration summary:

RESIN_HOME: /opt/app/resin/resin-pro-4.0.13
root: /opt/app/resin/resin-pro-4.0.13
conf: /opt/app/resin/resin-pro-4.0.13/conf
log : /opt/app/resin/resin-pro-4.0.13/log
init: /etc/init.d/resin
JAVA_HOME: /usr/java

+ 64-bit JNI in -I/usr/java/include -I/usr/java/include/solaris
+ JNI CFLAGS: -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -m64 -G -fPIC -D__SOLARIS__ -DHAS_JVMTI
+ poll() for keepalives
+
OpenSSL include: /usr/local/ssl/include
OpenSSL lib: /usr/local/ssl/lib
OpenSSL libraries: -lssl -lcrypto

skippopotamus
12-21-2010, 10:24 PM
I think I'm getting closer. I'm using the gcc and gmake which are 64 bit and come from Sun. I also compiled my OpenSSL from source and its 64 bit.

Now I'm seeing...
Using openssl include in ... /usr/local/ssl/include
Using openssl lib in ... /usr/local/ssl/lib
Using openssl libraries ... /usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a
configure: WARNING: Can't execute SSL. Check that load version in the library path: /usr/local/ssl/lib matches the expected version.

Anybody know if this means that my version of Openssl is too new? If I compile Resin without specifiying 64 bit I get an ELF class error.

skippopotamus
01-05-2011, 06:51 PM
Got it going on Sparc. x86 is next.

Install OpenSSL so you'll have the 64 bit version. The install is pretty well documented. Use ./Configure solaris64-sparcv9-gcc shared

I compiled as root and I'll chmod the directory to my Resin user.

export LD_LIBRARY_PATH=/usr/sfw/lib/sparcv9:/lib/sparcv9:/usr/lib:/usr/local/lib

exportPATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin;

./configure --with-openssl=/usr/local/ssl --enable-jni --prefix='yer path'