Open Bug 597596 Opened 14 years ago

Client tools fail to compile if SSL is not present (NSPR only build)

Categories

(Directory :: LDAP Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: nhamer.nmwco, Unassigned)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Build Identifier: 6.0.6

Building the directory C-SDK on windows (MozillaBuild, MSVC9) using the following configuration:

cd /c/mozilla/directory/c-sdk
export MOZ_DEBUG_SYMBOLS=1
./configure --with-nspr-inc=c:/mozilla/nsprpub/target/x86.release/dist/include/nspr --with-nspr-lib=c:/mozilla/nsprpub/target/x86.release/dist/lib --disable-debug --enable-optimize --enable-debug-symbols
make clean; make

Corectly generates a build without SSL support (nsldapssl32v60.dll isn't built)

However, if you "make BUILDCLU=1" the build fails (immediately) because mozilla/directory/c-sdk/ldap/clients/tools/ldaptool.h includes ssl.h

So, in build.mk, DEFNETSSL=-DNET_SSL needs to be inside ifdef USE_NSS (which controls whether nsldapssl32v60 is built)

Once that's fixed, the build fails with numerous errors due to undefined variables in mozilla/directory/c-sdk/ldap/clients/tools/common.c (first error @common.c:443 - isD is undefined)

These are all the result of misplaced or missing #if defined NET_SSL blocks

Reproducible: Always
You need to log in before you can comment on or make changes to this bug.