Closed glassfishrobot closed 13 years ago
@glassfishrobot Commented hyau said: For compile openssl-1.0.0a or openssl-1.0.0c
[1] solaris-sparcv9-gcc
Use the above option when compiling openssl on sparc
You need run for openssl - ./Configure [--prefix=DIR] [--openssldir=OPENSSLDIR] -m32 [1] make make install
rm -rf openssl-1.0.0c httpd-2.2.17 gzip -dc openssl-1.0.0c.tar.gz | tar -xvof - gzip -dc httpd-2.2.17.tar.gz | tar -xvof -
I am taking default location to build both Apache and OpenSSL.
1) Build OpenSSL cd openssl-1.0.0c ./Configure linux-generic32 -m32 make make install
2) Build Apache export CFLAGS="-m32" ./configure --prefix=/export/ha/apache2.2 --enable-ssl --with-ssl=/usr/local/ssl --enable-so --with-included-apr make make install
openssl genrsa -des3 -out server.key 1024 openssl req -new -key server.key -out server.csr cp server.key server.key.org openssl rsa -in server.key.org -out server.key openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
cp server.crt /export/ha/apache2.2/conf/. cp server.key /export/ha/apache2.2/conf/.
Edit
Check the information in
Prepare for LBPlugin installation use. keytool -export -rfc -alias s1as -keystore keystore.jks -file s1as.rfc
java -jar glassfish-lbconfigurator-3_1-b05.jar
Both openssl and httpd are "ELF 32-bit LSB executable".
[root@dragonfish downloads]# file /usr/local/ssl/bin/openssl /usr/local/ssl/bin/openssl: ELF 32-bit LSB executable, Intel 80386, version 1 (S YSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
[root@dragonfish downloads]# file /export/ha/apache2.2/bin/httpd /export/ha/apache2.2/bin/httpd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
@glassfishrobot Commented sfordin said: Instructions added to 3.1 HA Admin Guide.
@glassfishrobot Commented sfordin said: Topic was added to HA Admin Guide, so I've removed the release notes tag.
@glassfishrobot Commented Was assigned to sfordin
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-15602
@glassfishrobot Commented Reported by hyau
@glassfishrobot Commented Marked as fixed on Thursday, March 3rd 2011, 3:32:03 am
Need to provide update documentation information for user to build and configure Apache with Openssl for GlassFish 3.1 HA scenario.
Currently, I have tested with SuSE and it seems to be working. However, when try to build on Solaris Sparc and Solaris x86 using Apache http2.2.17 and openssl-1.0.0a and it failed during "make".
We need update documentation to help user to build apache with ssl support for lbconfigurator to install LBplugin for GlassFish 3.1 to have HA scenario.
Here is the error after ./configure and ./make.
bash-3.00# ./configure --with-ssl=/usr/local/openssl --prefix=/export/ha/apache2.2 --enable-ssl --enable-so --with-included-apr ......
bash-3.00# make Making all in srclib Making all in apr Making all in apr-util Making all in pcre Making all in os Making all in unix Making all in server Making all in mpm Making all in prefork Making all in modules Making all in aaa Making all in filters Making all in loggers Making all in metadata Making all in ssl Making all in http Making all in generators Making all in mappers Making all in support /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/apr/libtool --silent --mode=link gcc -m32 -L/usr/local/openssl/lib -R/usr/local/openssl/lib -L/usr/sfw/lib -L/usr/lib -o ab ab.lo -lm /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/pcre/libpcre.la /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/apr-util/libaprutil-1.la -lexpat /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/srclib/apr/libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl -lpthread -lssl -lcrypto -lsocket -lnsl -ldl Undefined first referenced symbol in file BIO_set_callback .libs/ab.o BIO_set_callback_arg .libs/ab.o BIO_get_callback_arg .libs/ab.o SSL_CTX_set_info_callback .libs/ab.o ld: fatal: Symbol referencing errors. No output written to .libs/ab collect2: ld returned 1 exit status
echo all-recursive|sed s/-recursive//
; \ list=' '; \ for i in $list; do \ if test -d "$i"; then \ target="$otarget"; \ echo "Making $target in $i"; \ if test "$i" = "."; then \ made_local=yes; \ target="local-$target"; \ fi; \ (cd $i && make $target) || exit 1; \ fi; \ done; \ if test "$otarget" = "all" && test -z 'htpasswd htdigest rotatelogs logresolve ab checkgid htdbm htcacheclean httxt2dbm'; then \ made_local=yes; \ fi; \ if test "$made_local" != "yes"; then \ make "local-$otarget" || exit 1; \ fi make: Fatal error: Command failed for target `all-recursive' Current working directory /export/ha/downloads/APACHE_STUFF/httpd-2.2.17/supportecho all-recursive|sed s/-recursive//
; \ list=' srclib os server modules support'; \ for i in $list; do \ if test -d "$i"; then \ target="$otarget"; \ echo "Making $target in $i"; \ if test "$i" = "."; then \ made_local=yes; \ target="local-$target"; \ fi; \ (cd $i && make $target) || exit 1; \ fi; \ done; \ if test "$otarget" = "all" && test -z 'httpd '; then \ made_local=yes; \ fi; \ if test "$made_local" != "yes"; then \ make "local-$otarget" || exit 1; \ fi make: Fatal error: Command failed for target `all-recursive'Environment
Any supported platform
Affected Versions
[3.1_dev]