Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 31 and Version 32 of BuildingWinNSS


Ignore:
Timestamp:
Aug 16, 2010, 5:48:59 PM (13 years ago)
Author:
bviktor
Comment:

update to nss 3.12.7

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWinNSS

    v31 v32  
    55NSS stands for [http://www.mozilla.org/projects/security/pki/nss/ Network Security Services]. NSS is required to use SSL in Pidgin. NSS depends on NSPR and a [https://wiki.mozilla.org/NSS_Shared_DB shared database] (SQLite since [http://www.mozilla.org/projects/security/pki/nss/nss-3.12/nss-3.12-release-notes.html NSS 3.12]), but you don't have to worry about these, there's and NSS with NSPR package which is compact thus it contains all sources required to build NSS.
    66
    7 '''Note''': at the moment you can't build NSS completely using GCC. It fails at the final stage when linking additional tools. However, you can build all the important libraries successfully. It will hopefully be improved in the future. You can, however, build NSS completely with the Windows Driver Kit. For the instructions, see [http://winbuild.daydreamer.nu/node/3 Building with WDK].
     7'''Note''': at the moment you can't build NSS completely using GCC. It fails at the final stage when linking additional tools. However, you can build all the important libraries successfully. It will hopefully be improved in the future. You can, however, build NSS completely with the Windows Driver Kit, but you'll need the [http://code.google.com/p/xchat-wdk/source/browse/#hg/ext/nss-wdk NSS-WDK patch].
    88
    99== Prerequisites ==
    1010
    11  1. '''Get NSS:'''  Download [http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_6_RTM/src/nss-3.12.6-with-nspr-4.8.4.tar.gz NSS 3.12.6 with NSPR 4.8.4]. Extract it to `c:\devel\pidgin-devel\win32-dev`.
    12  1. '''Get MozillaBuild:'''  Download [http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.4.exe MozillaBuild 1.4] and install it to `c:\devel\mozilla-build`.
     11 1. '''Get NSS:'''  Download [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_7_RTM/src/nss-3.12.7-with-nspr-4.8.6.tar.gz NSS 3.12.7 with NSPR 4.8.6]. Extract it to `c:\devel\pidgin-devel\win32-dev`.
     12 1. '''Get MozillaBuild:'''  Download [ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.5.exe MozillaBuild 1.5] and install it to `c:\devel\mozilla-build`.
    1313 1. '''Get MinGW''':  This assumes that you have MinGW working as described in the [wiki:BuildingWinPidgin#Themanualway Pidgin Building Instructions].
    1414
     
    7070== Patch NSS ==
    7171
    72 There's an error which prevents NSS from building with GCC. Apply the following patch to `c:\devel\pidgin-devel\win32-dev\nss-3.12.6\mozilla\security\nss\lib\freebl\config.mk`:
     72There's an error which prevents NSS from building with GCC. Apply the following patch to `c:\devel\pidgin-devel\win32-dev\nss-3.12.7\mozilla\security\nss\lib\freebl\config.mk`:
    7373
    7474{{{
    7575#!diff
    76 --- config.mk.orig      2009-04-12 00:18:42 +0200
    77 +++ config.mk   2010-02-28 20:19:08 +0100
    78 @@ -85,10 +85,14 @@
    79  RESNAME = freebl.rc
    80 
    81  ifndef WINCE
    82 +ifndef NS_USE_GCC
    83  OS_LIBS += shell32.lib
     76--- config.mk.orig      2010-06-24 19:46:12 +0200
     77+++ config.mk   2010-08-16 19:32:37 +0200
     78@@ -102,6 +102,7 @@
    8479 endif
    85 +endif
    86 
     80 
    8781 ifdef NS_USE_GCC
    88 +OS_LIBS += -lshell32
    89 +DEFINES += -D_WIN32_IE=0x0400
     82+DEFINES += -D_WIN32_IE=0x0501
    9083 EXTRA_SHARED_LIBS += \
    91         -L$(DIST)/lib \
    92         -L$(NSSUTIL_LIB_DIR) \
     84        -L$(DIST)/lib \
     85        -L$(NSSUTIL_LIB_DIR) \
    9386}}}
    9487
     
    119112export PATH
    120113
    121 pushd $NSS_SRC_DIR/nss-3.12.6/mozilla/security/nss
     114pushd $NSS_SRC_DIR/nss-3.12.7/mozilla/security/nss
    122115make nss_build_all
    123116popd
     
    133126The build will likely not complete successfully due to hardcoded library paths and other problems in the build system (it will bail out building `.../cmd/bltest`).  If it gets that far, it has already built the various libraries successfully.
    134127
    135 The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.6\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately.
     128The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.7\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!