File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes REISIN: SSL Problems running .configure on 64 bit solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "REISIN: SSL Problems running .configure on 64 bit solaris" Watch "REISIN: SSL Problems running .configure on 64 bit solaris" New topic
Author

REISIN: SSL Problems running .configure on 64 bit solaris

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Hi!

I have a problem using ./configure on resin-pro-3.0.9. There are some errors regarding SSL. However, when doing the same thing with 3.0.7, I have no problems whatsoever. Read on�

I have Solaris 5.9 running on 2 64 bit proccessors. Here�s some info:

bash-2.05# uname -X
System = SunOS
Node = web00
Release = 5.9
KernelID = Generic_112233-11
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2




And I have Java 1.5 running:

bash-2.05# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
bash-2.05#




Also, I have the latest open SSL running:

bash-2.05# pkginfo -l SMCossld
PKGINST: SMCossld
NAME: openssl
CATEGORY: application
ARCH: sparc
VERSION: 0.9.7d
BASEDIR: /usr/local
VENDOR: The OpenSSL Group
PSTAMP: Steve Christensen
INSTDATE: Oct 14 2004 14:20
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 1542 installed pathnames
41 directories
44 executables
19990 blocks used (approx)

Variables JAVA_HOME and RESIN_HOME are set properly

Also, I have resin-pro-3.0.9 � aka the latest




So I unpack resin, everything looks fine. Here�s what happens when I try to run ./configure:

bash-2.05# ./configure
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD-compatible install... automake/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.9 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for JAVA_HOME...
/usr/java
checking for JNI in /usr/java/include/solaris ... found
Using openssl include in ... /usr/local/ssl/include
Using openssl lib in ... /usr/local/ssl/lib
Using openssl libraries in ... -lssl -lcrypto
ld.so.1: ./conftest: fatal: libssl.so.0.9.7: open failed: No such file or directory
./configure: line 9003: 24946 Killed ./conftest
configure: error: Can't execute SSL. Check that load version in the library path: matches the expected version. }
bash-2.05#


So this seems to say something about libssl.so.0.9.7 � where is that supposed to be?




Here�s what I get running ./configure �enable-64bit

bash-2.05# ./configure --enable-64bit
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD-compatible install... automake/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.9 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for JAVA_HOME...
/usr/java
checking for JNI in /usr/java/include/solaris ... found
Using openssl include in ... /usr/local/ssl/include
Using openssl lib in ... /usr/local/ssl/lib
Using openssl libraries in ... -lssl -lcrypto
ld: fatal: file /usr/local/ssl/lib/libssl.so: wrong ELF class: ELFCLASS32
ld: fatal: file /usr/local/ssl/lib/libcrypto.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: error: Can't compile SSL. Check compilation flags: -DSSL_ENGINE -g -O2 -DPOLL -DB64 -m64 -D__SOLARIS__ -I/usr/local/ssl/include -L/usr/local/ssl/lib -lssl -lcrypto
bash-2.05#



So what could be the problem?

CONSIDER: Doing ./configure on resin-3.0.7 goes SMOOTH, like this:

bash-2.05# bash-2.05# ./configure
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for JAVA_HOME...
/usr/java
checking for JNI in /usr/java/include/solaris ... found
Using openssl include in ... /usr/local/ssl/include
Using openssl lib in ... /usr/local/ssl/lib
Using openssl flags in ... -lnsl -lsocket -lthread /usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/wrapper.pl
config.status: creating src/c/plugin/Makefile
config.status: creating src/c/plugin/common/Makefile
config.status: creating src/c/plugin/apache/Makefile
config.status: creating src/c/plugin/apache2/Makefile
config.status: creating src/c/plugin/resin/Makefile
config.status: creating src/c/plugin/resinssl/Makefile
config.status: creating contrib/init.resin
config.status: executing depfiles commands
bash-2.05#
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Very interesting stuff, that I don't understand. Except to not see anything in there regarding Servlets. Since I only understand it is about Resin, i will look to see if there is a forum that supports questions on it.

This should not be posted in the Servlets forum, which is for Servlet questions.

Moving this thread.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: REISIN: SSL Problems running .configure on 64 bit solaris