Hi,
I was trying to install httpd-2.2.25 on Solaris 10 server and I am getting
errors.
Here is my system information;
root@hq1-appcomp-s1 #> uname -a
SunOS hq1-appcomp-s1 5.10 Generic_148888-05 sun4v sparc sun4v
root@hq1-appcomp-s1 #>
openssl (openssl-fips-ecp-2.0.3,openssl-1.0.1e)
--------------------------------------------------------------
OpenSSL> version
OpenSSL 1.0.1e-fips 11 Feb 2013
OpenSSL>
Here is my exisiting config.nice information;
-----------------------------------------------------------------------------------------------
#! /bin/sh
#
# Created by configure
CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -pthreads"; export CFLAGS
"./configure" \
"--prefix=/usr/local/apache" \
"--enable-ssl" \
"--with-ssl=/usr/local/ssl" \
"--enable-mods-shared=ssl" \
"CFLAGS=-mcpu=ultrasparc -mtune=ultrasparc -pthreads" \
"$@"
------------------------------------------------------------------------------------------------
Here is the information of /usr/local/ssl/lib;
----------------------------------------------------------------------------------------------
root@hq1-appcomp-s1 #> ls -la /usr/local/ssl/lib
total 21590
drwxr-xr-x 5 root root 17 Sep 11 20:53 .
drwxr-xr-x 10 root root 11 May 15 18:06 ..
drwx------ 2 root root 8 Sep 11 20:52 backup
drwx------ 2 root root 2 May 15 18:06 engines
-r--r--r-- 1 root root 5418 Apr 25 2012 fips_premain.c
-r--r--r-- 1 root root 68 Apr 25 2012 fips_premain.c.sha1
-r--r--r-- 1 root root 329440 Jan 2 2013 fipscanister.o
-r--r--r-- 1 root root 68 Jan 2 2013 fipscanister.o.sha1
-rw-r--r-- 1 root root 3390856 May 15 18:06 libcrypto.a
-r-x------ 1 root root 1807881 Sep 11 20:53 libcrypto.so
-r-x------ 1 root root 1589020 Sep 11 20:53 libcrypto.so.0.9.8
-r-x------ 1 root root 1807881 Sep 11 20:53 libcrypto.so.1.0.0
-rw-r--r-- 1 root root 536680 May 15 18:06 libssl.a
-r-x------ 1 root root 367049 Sep 11 20:53 libssl.so
-r-x------ 1 root root 332912 Sep 11 20:53 libssl.so.0.9.8
-r-x------ 1 root root 367049 Sep 11 20:53 libssl.so.1.0.0
drwx------ 2 root root 5 May 15 18:06 pkgconfig
root@hq1-appcomp-s1 #>
-------------------------------------------------------------------------------------------------
I was running ./configure.nice without any problem.
I was getting following errors,When I try to run make and make was failing.
-----------------------------------------------------------------------------------------------
ld: warning: global symbol '_END_' has non-global binding:
(file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
(file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_END_' has non-global binding:
(file /usr/local/ssl/lib/libcrypto.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
(file /usr/local/ssl/lib/libcrypto.so value=LOCL);
Undefined first referenced
symbol in file
TLSv1_2_client_method .libs/ab.o
TLSv1_1_client_method .libs/ab.o
ld: fatal: symbol referencing errors. No output written to .libs/ab
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ab'
Current working directory /var/tmp/httpd-2.2.25/support
*** Error code 1
The following command caused the error:
otarget=`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 htdbm htcacheclean httxt2dbm checkgid'; 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 /var/tmp/httpd-2.2.25/support
*** Error code 1
The following command caused the error:
otarget=`echo 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 shared-build '; 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'
------------------------------------------------------------------------------------------------------------
Here is my path information;
/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/sbin:/usr/ccs/bin:/usr/sadm/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/sadm/bin:/usr/sbin:/usr/bin
When I remove the libs (libcrypto.so and libssl.so) from the folder
/usr/local/ssl/lib, and run the "make" again,it was running fine without
showing following errors;
------------------------------------------------------------------------------------------
TLSv1_2_client_method .libs/ab.o
TLSv1_1_client_method .libs/ab.o
ld: fatal: symbol referencing errors. No output written to .libs/ab
collect2: ld returned 1 exit status
-------------------------------------------------------------------------------------------
But,make was failing at mod_ssl.so and When I copy back the above 2 libs and
run the make again,it was running fine and after done the "make install" and
httpd was failing with following error message;
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
[ Sep 11 20:58:22 Executing start method ("/usr/local/apache/bin/apachectl
start") ]
httpd: Syntax error on line 74 of /usr/local/apache/conf/httpd.conf: Syntax
error on line 6 of /usr/local/apache/conf/ssl.conf: Cannot load
/usr/local/apache/modules/mod_ssl.so into server: ld.so.1: httpd: fatal:
relocation error: file /usr/local/apache/modules/mod_ssl.so: symbol
TLSv1_1_client_method: referenced symbol not found
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here is the line 74 of httpd.conf;
---------------------------------------------------
Include conf/ssl.conf
------------------------------------------------------
Here is line 6 of the ssl.conf;
------------------------------------------------------------
LoadModule ssl_module modules/mod_ssl.so
--------------------------------------------------------------
Please let me know,How can I fix these problem.
Please let me know,If You need any information.
Thanks,
Srinivas
Srinivasa Rao Katta(System Administrator),
[email protected],