I am using CC (from Sun Studio 11)to compile Apache 1.3.36 with mod_ssl on Solaris 10 SPARC and am running in to problems. The Solaris Install is default. Here is the layout of the environment and the compile steps

# uname -a
SunOS pioneer 5.10 Generic_118833-03 sun4u sparc SUNW,Sun-Fire-280R

# env
HOME=/export/home/xxxx
LANG=C
LOGNAME=xxxx
MAIL=/var/mail//xxxx
PATH=/usr/sbin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/sfw/bin/flex:/usr/sfw/bin/openssl
PS1=#
SHELL=/bin/sh
SSH_CLIENT=xxxx
SSH_CONNECTION=xxxx
SSH_TTY=/dev/pts/2
TERM=vt100
TZ=US/Pacific
USER=xxxx
#

# ./configure \
> --with-apache=../apache_1.3.36 \
> --with-ssl=/usr/sfw \
> --enable-module=so \
> --prefix=/usr/local/apache
Configuring mod_ssl/2.8.27 for Apache/1.3.36
+ Apache location: ../apache_1.3.36 (Version 1.3.36)
+ OpenSSL location: /usr/sfw
+ Auxiliary patch tool: ./etc/patch/patch (local) + Applying packages to Apache source tree:
  o Extended API (EAPI)
  o Distribution Documents
  o SSL Module Source
  o SSL Support
  o SSL Configuration Additions
  o SSL Module Documentation
  o Addons
Done: source extension and patches successfully applied.

Configuring for Apache, Version 1.3.36
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Solaris 2100 platform
+ setting C compiler to cc
+ setting C pre-processor to cc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
   o ssl_module uses ConfigStart/End
     + SSL interface: mod_ssl/2.8.27
     + SSL interface build type: OBJ
     + SSL interface compatibility: enabled
     + SSL interface experimental code: disabled
     + SSL interface conservative code: disabled
     + SSL interface vendor extensions: disabled
     + SSL interface plugin: Vendor DBM (libc)
     + SSL library path: /usr/sfw
     + SSL library version: OpenSSL 0.9.7d 17 Mar 2004
     + SSL library type: installed package (stand-alone)
+ enabling Extended API (EAPI)
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/ssl

Now proceed with the following commands:
$ cd ../apache_1.3.36
$ make
$ make certificate
$ make install

# cd ../apache_1.3.36
# make
===> src
===> src/regex
sh ./mkh -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c regfree.c > ../include/hsregex.h cc -I. -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` -DPOSIX_MISTAKE -c regcomp.c cc -I. -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` -DPOSIX_MISTAKE -c regexec.c cc -I. -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` -DPOSIX_MISTAKE -c regerror.c cc -I. -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` -DPOSIX_MISTAKE -c regfree.c
rm -f libregex.a
ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o
ranlib libregex.a
<=== src/regex
===> src/os/unix
cc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` os.c cc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` os-inline.c
rm -f libos.a
ar cr libos.a os.o os-inline.o
ranlib libos.a
<=== src/os/unix
===> src/ap
cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_cpystrn.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_execve.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_fnmatch.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_getpass.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_md5c.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_signal.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_slack.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_snprintf.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_sha1.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_checkpass.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_base64.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_ebcdic.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_strtol.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_hook.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_ctx.c cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` ap_mm.c
rm -f libap.a
ar cr libap.a ap_cpystrn.o ap_execve.o ap_fnmatch.o ap_getpass.o ap_md5c.o ap_signal.o ap_slack.o ap_snprintf.o ap_sha1.o ap_checkpass.o ap_base64.o ap_ebcdic.o ap_strtol.o ap_hook.o ap_ctx.o ap_mm.o
ranlib libap.a
<=== src/ap
===> src/main
cc -c -I../os/unix -I../include -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` gen_test_char.c cc -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci` -L/usr/sfw/lib -o gen_test_char gen_test_char.o -lsocket -lnsl -lpthread -lssl -lcrypto
./gen_test_char >test_char.h
ld.so.1: gen_test_char: fatal: libssl.so.0.9.7: open failed: No such file or directory
*** Error code 137
make: Fatal error: Command failed for target `test_char.h'
Current working directory /usr/local/src/apache_1.3.36/src/main
*** Error code 1
The following command caused the error:
for i in regex os/unix ap main lib modules; do \
       echo "===> src/$i"; \
       case ".Solaris 2100" in \
         .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
*) ( cd $i && make SDP='src/' CC='cc' AUX_CFLAGS=' -DSOLARIS2=2100 -DMOD_SSL=208127 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I./lib/expat-lite `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
       esac; \
       echo "<=== src/$i"; \
done
make: Fatal error: Command failed for target `subdirs'
Current working directory /usr/local/src/apache_1.3.36/src
*** Error code 1
The following command caused the error:
case "xsun4u-sun-solaris2.2100" in \
 x*390*) _C89_STEPS="0xffffffff"; export _C89_STEPS;; \
esac; \
cd ./src; make  SDP=src/ all
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/src/apache_1.3.36
*** Error code 1
The following command caused the error:
make -f ./Makefile  root= build-std
make: Fatal error: Command failed for target `build'
#

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to