The Mozilla LDAP C SDK
Last Updated: December 19th, 2003|
Contact:
Mark Smith
<MarkCSmithWork@aol.com> Discussion: netscape.public.mozilla.directory
|
Documentation
Checking Out the Source Code
- Get the CVS client and set your computer up mozilla work. Read through the instructions on using CVS. Make sure you have set your CVSROOT environment variable and that you have successfully executed the cvs login command.
- Pull the current LDAP C SDK code (which is located on the
CVS trunk) using this command:
cvs co -P DirectorySDKSourceC
- Pull the code for libraries that LDAP C SDK depends on. Pull NSPR, NSS, and DBM (used by NSS) using these commands:
cvs co -r NSPR_4_2_2_RELEASE mozilla/nsprpub cvs co -r NSS_3_7_7_RTM mozilla/security/coreconf mozilla/security/nss cvs co -r DBM_1_61_RTM mozilla/dbm mozilla/security/dbm
Alternatively, you can download stable binary releases of NSPR and
NSS
and drop them into your source tree under mozilla/dist.
Obtaining Build Tools and Setting Up Your Environment
Follow these instructions to obtain the necessary build tools: Follow these instructions to set up your environment:-
Microsoft Windows
Note that MOZCONFIG is not used for LDAP C SDK builds, so it is safe to leave it unset. - Linix and Unix. No environment variables need to be set.
Building using autoconf (preferred method)
- Build NSPR and NSS (if not using binary releases of those components)
by executing these commands:
cd mozilla/security/nss gmake nss_build_all
Read the NSS Build Instructions and the NSPR Build Instructions if you run into problems. - Build the LDAP C SDK (libraries and tools):
cd mozilla/directory/c-sdk ./configure --with-nss gmake
If your build is successful, the LDAP C SDK libraries, command line tools, and header files will be placed under mozilla/dist/<OSNAME>.OBJ/.
If you like, you can run an acceptance test.
Note that you can build without SSL support by skipping the NSS related build steps and omitting the --with-nss on the configure command. You will still need a binary copy of NSPR or you will need to build NSPR from source.
Building without using autoconf (older method)
- Build NSPR and NSS (if not using binary releases of those components)
by executing these commands:
cd mozilla/security/nss gmake nss_build_all
Read the NSS Build Instructions and the NSPR Build Instructions if you run into problems. - Build the LDAP C SDK (libraries and tools):
cd mozilla/directory gmake buildLdapClientSDK BUILD_CLU=1 COMPS_FROM_OBJDIR=1
Other things can be included on the gmake command line used to build
the LDAP C SDK. Execute a gmake command by itself (without
any targets) to see the list of allowed options.
If your build is successful, the LDAP C SDK libraries, command line tools, and header files will be placed under mozilla/dist/<OSNAME>.OBJ/.
If you like, you can run an acceptance test.
More Information
If you have questions or want to discuss issues about the LDAP C SDK or any of the Mozilla LDAP source products, post a message to the netscape.public.mozilla.directory newsgroup.For more information about the available newsgroups and mailing lists, see the Mozilla community page.