Tuesday September 08, 2009 Building Open Web Server on OpenSolaris SPARC
I tried building Open Web Server on OpenSolaris SPARC.
Install package as given in http://wikis.sun.com/display/wsFOSS/Checkout+and+Build+Instructions
SUNWmozldap, SUNWxercesc, SUNWxalanc in http://src.opensolaris.org/source/xref/webstack/ were probably not built for 64 bit. I have only tested on OpenSolaris x86 32 bit. They do not work on SPARC yet.
Run this script it builds and puts Mozilla LDAP C SDK and puts it in /usr/local/include/mozldap/, /usr/local/lib/mozldap, /usr/local/lib/mozldap/64
#!/bin/sh #building 32 bit
cd
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -P -rLDAPCSDK_6_0_5_RTM DirectorySDKSourceCcd mozilla/directory/c-sdk./configure --with-sasl --with-nspr-inc=/usr/include/mps --with-nspr-lib=/usr/lib/mps --with-nspr --with-nss-inc=/usr/include/mps --with-nss-lib=/usr/lib/mps --with-nssgmakecd ../../dist/sudo mkdir -p /usr/local/include/mozldap /usr/local/lib/mozldapsudo cp public/ldap/* /usr/local/include/mozldap/sudo cp lib/* /usr/local/lib/mozldap/cdmv mozilla mozilla32#building 64 bitcvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -P -rLDAPCSDK_6_0_5_RTM DirectorySDKSourceCcd mozilla/directory/c-sdk./configure --with-sasl --with-nspr-inc=/usr/include/mps --with-nspr-lib=/usr/lib/mps/64 --with-nspr --with-nss-inc=/usr/include/mps --with-nss-lib=/usr/lib/mps/64 --with-nss --enable-64bitgmakecd ../../dist/sudo mkdir -p /usr/local/lib/mozldap/64sudo cp lib/* /usr/local/lib/mozldap/64cdmv mozilla mozilla64
Build Xerces C and Xalan C 32 bit and 64 bit and put it in /usr/local/ area.
Build Xerces C 2.6 from http://xerces.apache.org/xerces-c/build-2.html
Build Xalan C 1.9 from http://xml.apache.org/xalan-c/build_instruct.html
hg clone ssh://anon@hg.opensolaris.org/hg/webstack/webserver
gmake BUILD_VARIANT=OPTIMIZEDIf you want 64 bit support also
gmake BUILD_VARIANT=OPTIMIZED BUILD64=1
gmake BUILD_VARIANT=OPTIMIZED installIf you want 64 bit also
gmake BUILD_VARIANT=OPTIMIZED install BUILD64=1
Go to work/B1/*/https-test/config directory. To run Open Web Server in 64 bit you need to add <platform>64</platfrom> in server.xml "server" element.
If you get error that looks like
ld: fatal: file /usr/lib/64/libsqlite3.so: version `SQLITE_3' does not exist:
required by file /usr/lib/mps/64/libsoftokn3.so
$mv /usr/lib/64/libsqlite3.so /usr/lib/64/libsqlite3.so.BACK
http://wikis.sun.com/display/wsFOSS/Checkout+and+Build+Instructions
http://forums.sun.com/thread.jspa?messageID=10810336#10810336
Posted by meena ( Sep 08 2009, 06:38:35 PM IST ) Permalink Comments [0]This blog copyright 2009 by meena