現在、当サイト「mozilla.org 日本語版」の和訳文書は更新されておらず、mozilla.org の原文 よりも内容が古くなっている可能性があります。ご不便をお掛けしますが、最新の情報は原文をご確認ください。



本文書は鋭意翻訳中です。

原文 "The Mozilla LDAP C SDK" は mozilla.org をご覧ください。

Mozilla Japan 翻訳部門

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

  1. 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.

  2. Pull the current LDAP C SDK code (which is located on the CVS trunk) using this command:
    cvs co -P DirectorySDKSourceC
  3. 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
    
  4. 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)

  1. 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.

  2. Build the LDAP C SDK (libraries and tools):
    cd mozilla/directory/c-sdk
    ./configure --with-nss
    gmake
  3. 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)

  1. 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.

  2. Build the LDAP C SDK (libraries and tools):
    cd mozilla/directory
    gmake buildLdapClientSDK BUILD_CLU=1 COMPS_FROM_OBJDIR=1
  3. 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.