Can not compile LDAP C SDK on open Solaris
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <[email protected]> |
1. Download and install OpenSolaris 2008.05 from http://www.opensolaris.com/get/ which has snv build 86 on an x86 machine.
2. Read and Follow instructions given in release notes http://opensolaris.org/os/project/indiana/resources/rn3/
* $ pfexec pkg refresh
* $ pfexec pkg install [email protected]
* $ pfexec pkg install [email protected]
3. Install these packages
* $sudo pkg install SUNWgmake SUNWhea sunstudio pkg:/[email protected],5.11-0.95 pkg:/[email protected],5.11-0.95 pkg:/[email protected],5.11-0.95 pkg:/[email protected],5.11-0.95 SUNWcvs
(Note you may also need to install pkg:/[email protected],5.11-0.95 in case ld gets ruined.)
4. Checkout and build and install Mozilla LDAP C SDK source code as per http://wiki.mozilla.org/LDAP_C_SDK#Latest_News_-_7.2F5.2F2007
* $ cvs -d :pserver:[email protected]:/cvsroot co -P -rLDAPCSDK_6_0_5_RTM DirectorySDKSourceC
* $ cd mozilla/directory/c-sdk
* $ export PATH=/opt/SunStudioExpress/bin:$PATH
* $ ./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-nss --enable-clu
* $ gmake
It doesn't compile as NSPR's private directory is missing.
The reason being : In SUNWpr package, private directory is missing and obsolete directory has 3 files missing.